-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
89 lines (85 loc) · 1.53 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss';
const BASE = 8;
const minWidth = {
sm: '320px',
md: '768px',
lg: '1025px',
xl: '1200px',
};
const spacing = {
0: '0',
'1/2': '4px',
1: '8px',
2: '16px',
3: '24px',
4: '32px',
5: '40px',
6: '48px',
7: '56px',
8: '64px',
};
const config: Config = {
mode: 'jit',
darkMode: 'class',
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
],
safelist: [
{
/**
* @todo adicionar a `safelist` apenas o que for necessário.
*/
pattern: /border-*|bg-*|text-*/,
variants: ['hover'],
}
],
theme: {
spacing,
fontSize: {
xs: '12px',
sm: '14px',
md: '16px',
lg: '18px',
xl: '20px',
'2xl': '24px',
'3xl': '28px',
'4xl': '32px',
'5xl': '56px',
'6xl': '64px',
},
lineHeight: {
xs: '18px',
sm: '20px',
md: '24px',
lg: '28px',
xl: '32px',
'2xl': '36px',
'3xl': '40px',
'4xl': '64px',
'5xl': '72px',
},
borderRadius: {
...spacing,
},
container: {
center: true,
padding: {
DEFAULT: `calc(${BASE}px * 4)`,
xs: `calc(${BASE}px * 4)`,
},
screens: {
...minWidth,
},
},
extend: {
minWidth,
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
},
plugins: [],
}
export default config