forked from leoquack/tailwindshades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
87 lines (87 loc) · 2.54 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
/* eslint-env node */
module.exports = {
content: ['./public/**/*.html', './src/**/*.{js,jsx,ts,tsx,vue}'],
theme: {
container: {
center: true,
},
extend: {
screens: {
'2xl': '1536px',
},
opacity: {
10: 0.1,
20: 0.2,
},
colors: {
theme: {
DEFAULT: 'var(--color-theme)',
lighter: 'var(--color-theme-lighter)',
darker: 'var(--color-theme-darker)',
reverse: 'var(--color-theme-reverse)',
100: 'var(--color-theme-100)',
200: 'var(--color-theme-200)',
300: 'var(--color-theme-300)',
400: 'var(--color-theme-400)',
500: 'var(--color-theme-500)',
600: 'var(--color-theme-600)',
700: 'var(--color-theme-700)',
800: 'var(--color-theme-800)',
900: 'var(--color-theme-900)',
},
blue: {
DEFAULT: '#49BBE9',
100: '#FFFFFF',
200: '#D2EEF9',
300: '#A4DDF4',
400: '#77CCEE',
500: '#49BBE9',
600: '#21ACE4',
700: '#188FBF',
800: '#137196',
900: '#0D526D',
},
},
textColor: {
theme: {
DEFAULT: 'var(--color-text-theme)',
lighter: 'var(--color-text-theme-lighter)',
darker: 'var(--color-text-theme-darker)',
reverse: 'var(--color-text-theme-reverse)',
100: 'var(--color-theme-100)',
200: 'var(--color-theme-200)',
300: 'var(--color-theme-300)',
400: 'var(--color-theme-400)',
500: 'var(--color-theme-500)',
600: 'var(--color-theme-600)',
700: 'var(--color-theme-700)',
800: 'var(--color-theme-800)',
900: 'var(--color-theme-900)',
},
},
},
},
variants: {
borderColor: ['hover', 'focus', 'dark', 'light'],
backgroundColor: ['hover', 'focus', 'dark', 'light'],
textColor: ['hover', 'focus', 'dark', 'light'],
},
plugins: [
// rules that apply only for dark theme
function ({ addVariant, e }) {
addVariant('dark', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.theme-dark .${e(`dark${separator}${className}`)}`
})
})
},
// rules that apply only for light theme
function ({ addVariant, e }) {
addVariant('light', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.theme-light .${e(`light${separator}${className}`)}`
})
})
},
],
}