-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
124 lines (112 loc) · 4.36 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* eslint-disable global-require */
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
// primary blue #3F83F8 (500), #1C64F2 (600)
module.exports = {
purge: ['./**/*.{js,ts,jsx,tsx,mdx,html}'],
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
serif: ['Merriweather', ...defaultTheme.fontFamily.serif],
},
colors: {
gray: colors.blueGray,
blue: colors.lightBlue,
red: colors.rose,
green: colors.teal,
primary: 'var(--color-primary)',
primarySoft: 'var(--color-primarySoft)',
primaryBold: 'var(--color-primaryBold)',
primaryBg: 'var(--color-primaryBg)',
primaryBgSoft: 'var(--color-primaryBgSoft)',
primaryBgSofter: 'var(--color-primaryBgSofter)',
onPrimaryBg: 'var(--color-onPrimaryBg)',
onPrimaryBgSoft: 'var(--color-onPrimaryBgSoft)',
onPrimaryBgSofter: 'var(--color-onPrimaryBgSofter)',
neutralBg: 'var(--color-neutralBg)',
neutralBgSoft: 'var(--color-neutralBgSoft)',
neutralBgSofter: 'var(--color-neutralBgSofter)',
neutral: 'var(--color-neutral)',
neutralBold: 'var(--color-neutralBold)',
neutralSoft: 'var(--color-neutralSoft)',
onNeutralBg: 'var(--color-onNeutralBg)',
onNeutralBgSoft: 'var(--color-onNeutralBgSoft)',
onNeutralBgSofter: 'var(--color-onNeutralBgSofter)',
info: 'var(--color-info)',
infoBold: 'var(--color-infoBold)',
infoBg: 'var(--color-infoBg)',
infoBgSoft: 'var(--color-infoBgSoft)',
onInfoBg: 'var(--color-onInfoBg)',
onInfoBgSoft: 'var(--color-onInfoBgSoft)',
success: 'var(--color-success)',
successBold: 'var(--color-successBold)',
successBg: 'var(--color-successBg)',
successBgSoft: 'var(--color-successBgSoft)',
onSuccessBg: 'var(--color-onSuccessBg)',
onSuccessBgSoft: 'var(--color-onSuccessBgSoft)',
danger: 'var(--color-danger)',
dangerBold: 'var(--color-dangerBold)',
dangerBg: 'var(--color-dangerBg)',
dangerBgSoft: 'var(--color-dangerBgSoft)',
onDangerBg: 'var(--color-onDangerBg)',
onDangerBgSoft: 'var(--color-onDangerBgSoft)',
warning: 'var(--color-warning)',
warningBold: 'var(--color-warningBold)',
warningBg: 'var(--color-warningBg)',
warningBgSoft: 'var(--color-warningBgSoft)',
onWarningBg: 'var(--color-onWarningBg)',
onWarningBgSoft: 'var(--color-onWarningBgSoft)',
cat0: 'var(--color-cat0)',
onCat0: 'var(--color-onCat0)',
cat1: 'var(--color-cat1)',
onCat1: 'var(--color-onCat1)',
cat2: 'var(--color-cat2)',
onCat2: 'var(--color-onCat2)',
cat3: 'var(--color-cat3)',
onCat3: 'var(--color-onCat3)',
footerBg: 'var(--color-footerBg)',
// text
onPrimary: 'var(--color-onPrimary)',
onPrimarySoft: 'var(--color-onPrimarySoft)',
onPrimarySofter: 'var(--color-onPrimarySofter)',
light: 'var(--color-light)',
lightSoft: 'var(--color-primary-100)',
onLight: 'var(--color-onLight)',
onPrimaryBgLink: 'var(--color-onPrimaryBgLink)',
onPrimaryBgLinkHover: 'var(--color-onPrimaryBgLinkHover)',
onNeutralBgLink: 'var(--color-onNeutralBgLink)',
onNeutralBgLinkHover: 'var(--color-onNeutralBgLinkHover)',
},
},
rotate: {
...defaultTheme.rotate,
360: '360deg',
},
},
variants: {
rotate: ['responsive', 'hover', 'focus', 'active'],
flexDirection: ['responsive', 'even', 'odd'],
borderWidth: ['responsive', 'focus', 'hover'],
outline: ['focus', 'active'],
translate: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
scale: ['responsive', 'hover', 'focus', 'active'],
transitionDuration: ['responsive', 'hover', 'focus'],
boxShadow: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
backgroundColor: ['responsive', 'hover', 'focus', 'even', 'disabled'],
margin: ['responsive', 'last', 'first'],
textColor: [
'responsive',
'hover',
'focus',
'active',
'group-hover',
'disabled',
],
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
],
};