-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
173 lines (156 loc) · 5.89 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
import { basename } from 'path';
import { fontFamily } from 'tailwindcss/defaultTheme.js';
export default {
darkMode: ['class'],
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '2rem',
lg: '4rem',
xl: '7.5rem',
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1400px',
tall: { raw: '(min-height: 800px)' },
},
},
colors: {
"transparent": "transparent",
"static-black": "var(--static-static-black)",
"static-white": "var(--static-static-white)",
"white": "var(--static-static-white)",
"black": "var(--static-static-black)",
"faded-dark": "var(--state-faded-dark)",
"faded-base": "var(--state-faded-base)",
"faded-light": "var(--state-faded-light)",
"faded-lighter": "var(--state-faded-lighter)",
"information-dark": "var(--state-information-dark)",
"information-base": "var(--state-information-base)",
"information-light": "var(--state-information-light)",
"information-lighter": "var(--state-information-lighter)",
"warning-dark": "var(--state-warning-dark)",
"warning-base": "var(--state-warning-base)",
"warning-light": "var(--state-warning-light)",
"warning-lighter": "var(--state-warning-lighter)",
"error-dark": "var(--state-error-dark)",
"error-base": "var(--state-error-base)",
"error-light": "var(--state-error-light)",
"error-lighter": "var(--state-error-lighter)",
"success-dark": "var(--state-success-dark)",
"success-base": "var(--state-success-base)",
"success-light": "var(--state-success-light)",
"success-lighter": "var(--state-success-lighter)",
"away-dark": "var(--state-away-dark)",
"away-base": "var(--state-away-base)",
"away-light": "var(--state-away-light)",
"away-lighter": "var(--state-away-lighter)",
"feature-dark": "var(--state-feature-dark)",
"feature-base": "var(--state-feature-base)",
"feature-light": "var(--state-feature-light)",
"feature-lighter": "var(--state-feature-lighter)",
"verified-dark": "var(--state-verified-dark)",
"verified-base": "var(--state-verified-base)",
"verified-light": "var(--state-verified-light)",
"verified-lighter": "var(--state-verified-lighter)",
"highlighted-dark": "var(--state-highlighted-dark)",
"highlighted-base": "var(--state-highlighted-base)",
"highlighted-light": "var(--state-highlighted-light)",
"highlighted-lighter": "var(--state-highlighted-lighter)",
"stable-dark": "var(--state-stable-dark)",
"stable-base": "var(--state-stable-base)",
"stable-light": "var(--state-stable-light)",
"stable-lighter": "var(--state-stable-lighter)",
"primary-darker": "var(--primary-darker)",
"primary-dark": "var(--primary-dark)",
"primary-base": "var(--primary-base)",
"primary-alpha-10": "var(--primary-alpha-10)",
"primary-alpha-16": "var(--primary-alpha-16)",
"primary-alpha-24": "var(--primary-alpha-24)",
},
extend: {
backgroundColor: {
"strong": "var(--bg-strong-950)",
"surface": "var(--bg-surface-800)",
"sub": "var(--bg-sub-300)",
"soft": "var(--bg-soft-200)",
"active": "var(--bg-active-100)",
"weak": "var(--bg-weak-50)",
"white": "var(--bg-white-0)",
},
textColor: {
"strong": "var(--text-strong-950)",
"sub": "var(--text-sub-600)",
"soft": "var(--text-soft-400)",
"disabled": "var(--text-disabled-300)",
"white": "var(--text-white-0)"
},
borderColor: {
"strong": "var(--stroke-strong-950)",
"sub": "var(--stroke-sub-300)",
"soft": "var(--stroke-soft-200)",
"white": "var(--stroke-white-0)",
},
transitionProperty: {
height: 'height',
spacing: 'margin, padding',
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
fontFamily: {
sans: ["Inter", ...fontFamily.sans], // TODO: add inter
mono: [...fontFamily.mono],
},
boxShadow: {
strokeImportant: '0 1px 3px 0 var(--tw-shadow-stroke-important)',
strokePrimary: '0 1px 2px 0 var(--tw-shadow-stroke-primary)',
strokeError: '0 1px 2px 0 var(--tw-shadow-stroke-error)',
focusImportant:
'0 0 0 2px var(--tw-shadow-focus-important), 0 0 0 4px var(--tw-shadow-focus-important)',
focusPrimary:
'0 0 0 2px var(--tw-shadow-focus-primary), 0 0 0 4px var(--tw-shadow-focus-primary)',
focusError:
'0 0 0 2px var(--tw-shadow-focus-error), 0 0 0 4px var(--tw-shadow-focus-error)',
outline: 'var(--tw-shadow-stroke-primary) 0 0 0 6px',
'outline-lg': 'var(--tw-shadow-stroke-primary) 0 0 0 8px',
},
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
'collapsible-down': {
from: { height: '0' },
to: { height: 'var(--radix-collapsible-content-height)' },
},
'collapsible-up': {
from: { height: 'var(--radix-collapsible-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'collapsible-down': 'collapsible-down 0.2s ease-out',
'collapsible-up': 'collapsible-up 0.2s ease-out',
},
},
},
plugins: [
require('tailwindcss-animate'),
require('@tailwindcss/container-queries'),
],
};