-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
110 lines (110 loc) · 2.55 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
module.exports = {
content: ['./src/**/**/**.tsx'],
theme: {
screens: {
'minRatio4/3': {
raw: '(min-aspect-ratio: 4/3) ',
},
md: { raw: '(min-width: 768px) and (min-height: 450px)' },
lg: { raw: '(min-width: 1024px)' },
xl: { raw: '(min-width: 1920px)' },
},
colors: {
transparent: 'transparent',
black: '#000',
white: '#FFF',
gray: {
lightest: 'var(--sm-color-gray-lightest)',
light: 'var(--sm-color-gray-light)',
},
primary: {
lightest: 'var(--sm-color-primary-lightest)',
light: 'var(--sm-color-primary-light)',
base: 'var(--sm-color-primary-base)',
dark: 'var(--sm-color-primary-dark)',
text: '#000',
},
secondary: {
base: 'var(--sm-color-secondary-base)',
},
tertiary: {
base: 'var(--sm-color-tertiary-base)',
dark: 'var(--sm-color-tertiary-dark)',
},
},
extend: {
flex: {
2: '2 2 0%',
},
borderWidth: {
1: '1px',
},
borderRadius: {
inherit: 'inherit',
sm: '0.25rem',
},
boxShadow: {
sm: 'var(--sm-box-shadow-sm)',
md: 'var(--sm-box-shadow-md)',
lg: 'var(--sm-box-shadow-lg)',
xl: 'var(--sm-box-shadow-xl)',
},
fontFamily: {
primary: ['var(--sm-font-family-primary)'],
},
maxHeight: {
87: '21.75rem',
137: '34.25rem',
},
height: {
18: '4.5rem',
35: '8.75rem',
43: '10.75rem',
54: '13.5rem',
},
width: {
18: '4.5rem',
35: '8.75rem',
63: '15.75rem',
79: '19.75rem',
88: '22rem',
104: '26rem',
},
maxWidth: {
xs: '17rem',
},
zIndex: {
max: '9999',
},
backdropBlur: {
// Override default as blur(0) causes a slight blur
none: 'none',
},
animation: {
grow: 'grow 1.2s ease-in-out infinite',
spread: 'spread 1.6s ease-in-out infinite',
},
keyframes: {
grow: {
'0%': { transform: 'scaleY(.3)' },
'50%': { transform: 'scaleY(1)' },
'100%': { transform: 'scaleY(.3)' },
},
spread: {
'0%': { columnGap: '2px' },
'50%': { columnGap: '4px' },
'100%': { columnGap: '2px' },
},
},
},
},
plugins: [
function ({ addVariant }) {
addVariant('children', '& > *');
},
],
prefix: 'sm-',
corePlugins: {
preflight: false,
},
};