-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
90 lines (90 loc) · 2.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
module.exports = {
mode: 'jit',
// purge: [], // use this during development state
purge: ['./src/pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}'], // use this during production state
darkMode: 'class', // or 'media' or 'class'
theme: {
container: {
padding: {
DEFAULT: '1rem',
sm: '1rem',
md: '1rem',
lg: '1rem',
xl: '6rem',
'2xl': '8rem',
},
},
extend: {
borderColor: {
skin: {
base: 'var(--color-text-base)',
dark: 'var(--color-dark)',
gray: 'var(--color-gray)',
darkgray: 'var(--color-darkgray)'
}
},
textColor: {
skin: {
base: 'var(--color-text-base)',
inverted: 'var(--color-text-inverted)',
muted: 'var(--color-text-muted)',
white: 'var(--color-text-white)',
darkgray: 'var(--color-darkgray)'
},
},
// backgrounds and buttons
backgroundColor: {
skin: {
fill: 'var(--color-fill)',
dark: 'var(--color-dark)',
bgdark: 'var(--color-bgdark)',
darkmode: 'var(--color-darkmode)',
'button-accent': 'var(--color-button-accent)',
'button-accent-hover': 'var(--color-button-accent-hover)',
'button-muted': 'var(--color-button-muted)',
}
},
animation: {
Loading: 'Loading 10s cubic-bezier(0.4, 0, 0.6, 1) infinite',
slideIn: 'slideIn 0.4s cubic-bezier(1, 0, 0, 0 )'
// Nothing: 'Loading 10s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
keyframes: {
// loading animation
Loading: {
'0%, 100% ': {
opacity: 0.1,
},
'50%': {
opacity: 0.1,
}
},
// slidein animation
slideIn: {
'75%, 100% ': {
transform: 'scale(1)',
opacity: 1,
},
'0%,50%': {
transform: 'scale(1)',
opacity: 0,
}
},
}
},
},
variants: {
extend: {
filter: ['dark'],
sepia: ['dark'],
grayscale: ['dark'],
opacity: ['dark'],
'animate-none': ['dark'],
},
},
plugins: [
require('tailwind-bootstrap-grid')({
containerMaxWidths: { sm: '540px', md: '720px', lg: '960px', xl: '1140px' },
}),
],
}