-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind-preset.js
90 lines (89 loc) · 1.64 KB
/
tailwind-preset.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
const colors = {
base: {
100: '#FBFBFB',
300: '#F2F2F2',
400: '#D9D9D9',
500: '#C1C1C1',
700: '#767676',
800: '#4D4D4D',
900: '#303030',
},
state: {
error: {
300: '#FED1D6',
500: '#CA1628',
},
success: {
300: '#CBFAD5',
500: '#3EBB59',
},
warning: {
300: '#FFF3D3',
500: '#E6B535',
},
info: {
300: '#D3F5FF',
500: '#1E90FF',
700: '#2d62b1',
900: '#082E6B',
},
},
};
module.exports = {
darkMode: 'class',
theme: {
screens: {
sm: '540px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
fontFamily: {
display: ['Lora', 'serif'],
body: ['Montserrat', 'lato', 'arial', 'sans-serif'],
},
fontSize: {
xxs: '0.625rem',
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
},
lineHeight: {
1: '1rem',
2: '1.25rem',
3: '1.5rem',
4: '1.75rem',
5: '2rem',
6: '2.5rem',
7: '3.125rem',
8: '3.5rem',
9: '5.5rem',
},
colors: {
...colors,
transparent: 'transparent',
current: 'currentColor',
black: '#000',
white: '#FFF',
},
boxShadow: {
none: 'none',
s: '0px 0px 4px rgba(0, 0, 0, 0.12)',
sm: '0px 1px 4px rgba(0, 0, 0, 0.2)',
DEFAULT: '0px 1px 8px rgba(0, 0, 0, 0.1)',
xl: '0px 0px 16px rgba(0, 0, 0, 0.15)',
},
extend: {
ringOffsetWidth: {
3: '3px',
},
},
},
};