-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtailwind.config.js
111 lines (110 loc) · 2.78 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
const baseColors = {
brandPrimary: 'var(--color-brand-primary)',
brandPrimaryHover: 'var(--color-brand-primary-hover)',
brandSecondary: 'var(--color-brand-secondary)',
brandSecondaryHover: 'var(--color-brand-secondary-hover)',
success: 'var(--color-success)',
error: 'var(--color-error)',
failure: 'var(--color-failure)',
failureHover: 'var(--color-failure-hover)',
warning: 'var(--color-warning)',
increase: 'var(--color-increase)',
decrease: 'var(--color-decrease)',
white: 'var(--color-white)',
black: 'var(--color-black)',
gray: 'var(--color-gray)',
lightgray: 'var(--color-lightgray)',
transparent: 'transparent',
}
module.exports = {
purge: {
enabled: true,
preserveHtmlElements: false,
content: ['./src/**/*.tsx'],
options: {
safelist: ['dark', 'scale'],
},
},
darkMode: 'class',
theme: {
colors: false,
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
textColor: {
...baseColors,
default: 'var(--color-text-default)',
secondary: 'var(--color-text-secondary)',
tertiary: 'var(--color-text-tertiary)',
disabled: 'var(--color-text-disabled)',
input: 'var(--color-text-input)',
inputSecondary: 'var(--color-text-input-secondary)',
},
backgroundColor: {
...baseColors,
disabled: 'var(--color-bg-disabled)',
input: 'var(--color-bg-input)',
default: 'var(--color-bg-default)',
secondary: 'var(--color-bg-secondary)',
tertiary: 'var(--color-bg-tertiary)',
// Extra
header: 'var(--color-bg-header)',
scaffold: 'var(--color-bg-scaffold)',
overlay: 'var(--color-bg-overlay)',
},
borderColor: {
...baseColors,
default: 'var(--color-border-default)',
secondary: 'var(--color-border-secondary)',
gray: 'var(--color-border-gray)',
},
fontFamily: {
sans: ['Manrope', 'Roboto'],
mono: ['ui-monospace', 'monospace'],
},
fontSize: {
xxs: ['10px', '10px'],
xs: ['12px', '12px'],
sm: ['14px', '14px'],
base: ['16px', '16px'],
md: ['18px', '18px'],
mdx: ['20px', '20px'],
lg: ['24px', '24px'],
xl: ['36px', '36px'],
xxl: ['64px', '64px'],
},
extend: {
minWidth: {
rpc: '220px',
},
maxWidth: {
'4xl': '1080px',
card: '496px',
tooltip: '305px',
},
minHeight: {
'70vh': '70vh',
},
maxHeight: {
90: '21rem',
},
width: {
100: '100px',
},
blur: {
xs: 'blur(3px)',
},
shadow: {
card: '0px 2px 2px rgba(0, 0, 0, 0.16)',
},
},
},
variants: {
extend: { boxShadow: ['active'], display: ['dark'] },
},
plugins: [],
}