forked from YangTuanAnh/mythorch-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
109 lines (102 loc) · 2.57 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
primary: "#e8f0f2",
secondary: "#0075ff",
tertiary: "#ccebf7",
s2condNOSTATUSBG: '#C9C9C9',
s2condREVIEWINGBG: '#A5DAE5',
s2condINPROGRESSBG: '#E5D9A5',
s2condCOMPLETEDBG: '#A5E5BF',
s2condNOSTATUS: '#EEEEEE',
s2condREVIEWING: '#9DEBFD',
s2condINPROGRESS: '#FDEA9D',
s2condCOMPLETED: '#9DFDC3',
thirdLOGIN: '#E6F2F7',
thirdWELCOME: '#66C4E8',
fourthBLUE: '#007EAE',
fourthBLUEBG: '#CCEBF7',
fourthBLUEBUTTON: '#009DD9'
},
}
},
plugins: [
({ addVariant }) => {
// based on: https://github.com/tailwindlabs/tailwindcss/blob/f116f9f6648af81bf22e0c28d01a8da015a53180/src/corePlugins.js#L61-L129
[
// Positional
['first', ':first-child'],
['last', ':last-child'],
['only', ':only-child'],
['odd', ':nth-child(odd)'],
['even', ':nth-child(even)'],
'first-of-type',
'last-of-type',
'only-of-type',
// State
'visited',
'target',
['open', '[open]'],
// Forms
'default',
'checked',
'indeterminate',
'placeholder-shown',
'autofill',
'required',
'valid',
'invalid',
'in-range',
'out-of-range',
'read-only',
// Content
'empty',
// Interactive
'focus-within',
'hover',
'focus',
'focus-visible',
'active',
'disabled',
]
.map((variant) =>
Array.isArray(variant) ? variant : [variant, `:${variant}`]
)
.forEach(([variantName, state]) => {
addVariant(`parent-${variantName}`, `:merge(.parent)${state} > &`);
});
}
],
safelist: [
{
pattern: /(bg|text|border)-s2cond(NOSTATUS|NOSTATUSBG|INPROGRESS|INPROGRESSBG|REVIEWING|REVIEWINGBG|COMPLETED|COMPLETEDBG)/
},
{
pattern: /(bg|text|border)-third(LOGIN|WELCOME)/
}, ,
{
pattern: /(bg|text|border)-fourth(BLUE|BLUEBG|BLUEBUTTON)/
},
{
pattern: /(mt|mb|mr|ml|my|mx|px|py|pt|pb|pl|pr)-[0-9]+/
},
{
pattern: /flex-.*/
},
{
pattern: /(bottom|right|top|left)-[0-9]+/
},
{
pattern: /(w|h)-[0-9]+/
}
]
}