-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
153 lines (151 loc) · 4.09 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
const colors = require('tailwindcss/colors');
/** @type {(size: string) => string} */
const rem2px = (size) => `${Number.parseFloat(size) * 16}px`;
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./lib/**/*.{js,ts,jsx,tsx}',
],
theme: {
columns: {
auto: 'auto',
1: '1',
2: '2',
3: '3',
4: '4',
5: '5',
6: '6',
7: '7',
8: '8',
9: '9',
10: '10',
11: '11',
12: '12',
'3xs': rem2px('16rem'),
'2xs': rem2px('18rem'),
xs: rem2px('20rem'),
sm: rem2px('24rem'),
md: rem2px('28rem'),
lg: rem2px('32rem'),
xl: rem2px('36rem'),
'2xl': rem2px('42rem'),
'3xl': rem2px('48rem'),
'4xl': rem2px('56rem'),
'5xl': rem2px('64rem'),
'6xl': rem2px('72rem'),
'7xl': rem2px('80rem'),
},
spacing: {
px: '1px',
0: '0px',
0.5: rem2px('0.125rem'),
1: rem2px('0.25rem'),
1.5: rem2px('0.375rem'),
2: rem2px('0.5rem'),
2.5: rem2px('0.625rem'),
3: rem2px('0.75rem'),
3.5: rem2px('0.875rem'),
4: rem2px('1rem'),
5: rem2px('1.25rem'),
6: rem2px('1.5rem'),
7: rem2px('1.75rem'),
8: rem2px('2rem'),
9: rem2px('2.25rem'),
10: rem2px('2.5rem'),
11: rem2px('2.75rem'),
12: rem2px('3rem'),
14: rem2px('3.5rem'),
16: rem2px('4rem'),
20: rem2px('5rem'),
24: rem2px('6rem'),
28: rem2px('7rem'),
32: rem2px('8rem'),
36: rem2px('9rem'),
40: rem2px('10rem'),
44: rem2px('11rem'),
48: rem2px('12rem'),
52: rem2px('13rem'),
56: rem2px('14rem'),
60: rem2px('15rem'),
64: rem2px('16rem'),
72: rem2px('18rem'),
80: rem2px('20rem'),
96: rem2px('24rem'),
},
borderRadius: {
none: '0px',
sm: rem2px('0.125rem'),
DEFAULT: rem2px('0.25rem'),
md: rem2px('0.375rem'),
lg: rem2px('0.5rem'),
xl: rem2px('0.75rem'),
'2xl': rem2px('1rem'),
'3xl': rem2px('1.5rem'),
full: '9999px',
},
fontSize: {
xs: [rem2px('0.75rem'), { lineHeight: rem2px('1rem') }],
sm: [rem2px('0.875rem'), { lineHeight: rem2px('1.25rem') }],
base: [rem2px('1rem'), { lineHeight: rem2px('1.5rem') }],
lg: [rem2px('1.125rem'), { lineHeight: rem2px('1.75rem') }],
xl: [rem2px('1.25rem'), { lineHeight: rem2px('1.75rem') }],
'2xl': [rem2px('1.5rem'), { lineHeight: rem2px('2rem') }],
'3xl': [rem2px('1.875rem'), { lineHeight: rem2px('2.25rem') }],
'4xl': [rem2px('2.25rem'), { lineHeight: rem2px('2.5rem') }],
'5xl': [rem2px('3rem'), { lineHeight: '1' }],
'6xl': [rem2px('3.75rem'), { lineHeight: '1' }],
'7xl': [rem2px('4.5rem'), { lineHeight: '1' }],
'8xl': [rem2px('6rem'), { lineHeight: '1' }],
'9xl': [rem2px('8rem'), { lineHeight: '1' }],
},
lineHeight: {
none: '1',
tight: '1.25',
snug: '1.375',
normal: '1.5',
relaxed: '1.625',
loose: '2',
3: rem2px('.75rem'),
4: rem2px('1rem'),
5: rem2px('1.25rem'),
6: rem2px('1.5rem'),
7: rem2px('1.75rem'),
8: rem2px('2rem'),
9: rem2px('2.25rem'),
10: rem2px('2.5rem'),
},
maxWidth: ({ theme, breakpoints }) => ({
none: 'none',
0: rem2px('0rem'),
xs: rem2px('20rem'),
sm: rem2px('24rem'),
md: rem2px('28rem'),
lg: rem2px('32rem'),
xl: rem2px('36rem'),
'2xl': rem2px('42rem'),
'3xl': rem2px('48rem'),
'4xl': rem2px('56rem'),
'5xl': rem2px('64rem'),
'6xl': rem2px('72rem'),
'7xl': rem2px('80rem'),
full: '100%',
min: 'min-content',
max: 'max-content',
fit: 'fit-content',
prose: '65ch',
...breakpoints(theme('screens')),
}),
extend: {
colors: {
gray: colors.zinc,
amber: colors.amber,
lime: colors.lime,
violet: colors.violet,
lightBlue: colors.sky,
},
},
},
plugins: [require('@tailwindcss/aspect-ratio')],
};