forked from vercel/commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
180 lines (173 loc) · 5.8 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
174
175
176
177
178
179
180
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.tsx'],
darkMode: 'class',
theme: {
container: {
center: true,
padding: {
DEFAULT: '0.75rem',
sm: '2rem',
lg: '2rem',
xl: '2rem',
'2xl': '2rem'
}
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1440px',
'2xl': '1650px'
},
extend: {
colors: {
theme: {
DEFAULT: 'rgb(var(--colors-theme) / <alpha-value>)',
text: 'rgb(var(--colors-theme-text) / <alpha-value>)',
'text-light': 'rgb(var(--colors-theme-text-light) / <alpha-value>)',
hover: 'rgb(var(--colors-theme-hover) / <alpha-value>)',
focus: 'rgb(var(--colors-theme-focus) / <alpha-value>)',
pressed: 'rgb(var(--colors-theme-pressed) / <alpha-value>)',
active: 'rgb(var(--colors-theme-active) / <alpha-value>)',
'text-disabled': 'rgb(var(--colors-theme-text-disabled) / <alpha-value>)',
disabled: 'rgb(var(--colors-theme-disabled) / <alpha-value>)'
},
neutral: {
50: 'rgb(var(--colors-neutral-50) / <alpha-value>)',
100: 'rgb(var(--colors-neutral-100) / <alpha-value>)',
200: 'rgb(var(--colors-neutral-200) / <alpha-value>)',
300: 'rgb(var(--colors-neutral-300) / <alpha-value>)',
400: 'rgb(var(--colors-neutral-400) / <alpha-value>)',
500: 'rgb(var(--colors-neutral-500) / <alpha-value>)',
600: 'rgb(var(--colors-neutral-600) / <alpha-value>)',
700: 'rgb(var(--colors-neutral-700) / <alpha-value>)',
800: 'rgb(var(--colors-neutral-800) / <alpha-value>)',
900: 'rgb(var(--colors-neutral-900) / <alpha-value>)',
950: 'rgb(var(--colors-neutral-950) / <alpha-value>)'
}
},
letterSpacing: {
heading: 'var(--heading-letter-spacing)'
},
ringWidth: {
3: '3px',
global: 'var(--ring-global-width)'
},
ringOffsetWidth: {
global: 'var(--ring-global-offset)'
},
fontWeight: {
button: 'var(--button-font-weight)',
heading: 'var(--heading-font-weight)'
},
fontFamily: {
sans: 'var(--font-sans)',
mono: 'var(--font-mono)',
button: 'var(--button-font)',
heading: 'var(--heading-font)'
},
zIndex: {
header: 'var(--header-z-index)',
'header-safe': 'var(--header-safe-z-index)'
},
height: {
'input-sm': 'var(--input-height-sm)',
input: 'var(--input-height)',
'input-lg': 'var(--input-height-lg)',
textarea: 'var(--textarea-height)',
'button-sm': 'var(--input-height-sm)',
button: 'var(--input-height)',
'button-lg': 'var(--input-height-lg)',
'button-compact-sm': 'var(--button-compact-height-sm)',
'button-compact': 'var(--button-compact-height)',
'button-compact-lg': 'var(--button-compact-height-lg)',
'button-icon-sm': 'var(--button-icon-height-sm)',
'button-icon': 'var(--button-icon-height)',
'button-icon-lg': 'var(--button-icon-height-lg)',
'button-icon-compact-sm': 'var(--button-icon-compact-height-sm)',
'button-icon-compact': 'var(--button-icon-compact-height)',
'button-icon-compact-lg': 'var(--button-icon-compact-height-lg)'
},
width: {
'button-icon-sm': 'var(--button-icon-width-sm)',
'button-icon': 'var(--button-icon-width)',
'button-icon-lg': 'var(--button-icon-width-lg)',
'button-icon-compact-sm': 'var(--button-icon-compact-width-sm)',
'button-icon-compact': 'var(--button-icon-compact-width)',
'button-icon-compact-lg': 'var(--button-icon-compact-width-lg)'
},
spacing: {
4.5: '1.125rem',
5.5: '1.375rem',
10.5: '2.625rem',
'8xl': '84rem',
'drawer-w-xs': 'var(--drawer-w-xs)',
'drawer-w-sm': 'var(--drawer-w-sm)',
'drawer-w': 'var(--drawer-w)',
'drawer-w-lg': 'var(--drawer-w-lg)',
'drawer-w-xl': 'var(--drawer-w-xl)',
'drawer-h-xs': 'var(--drawer-h-xs)',
'drawer-h-sm': 'var(--drawer-h-sm)',
'drawer-h': 'var(--drawer-h)',
'drawer-h-lg': 'var(--drawer-h-lg)',
'drawer-h-xl': 'var(--drawer-h-xl)'
},
strokeWidth: {
icon: 'var(--icon-stroke-width)'
},
borderWidth: {
button: 'var(--button-border-width)',
input: 'var(--input-border-width)'
},
borderRadius: {
card: 'var(--card-border-radius)',
alert: 'var(--alert-border-radius)',
input: 'var(--input-border-radius)',
button: 'var(--button-border-radius)',
'button-icon': 'var(--button-icon-border-radius)',
sm: 'var(--border-radius--sm)',
DEFAULT: 'var(--border-radius)',
md: 'var(--border-radius--md)',
lg: 'var(--border-radius--lg)',
xl: 'var(--border-radius--xl)',
'2xl': 'var(--border-radius--2xl)',
'3xl': 'var(--border-radius--3xl)'
},
lineClamp: {
7: '7',
8: '8',
9: '9',
10: '10'
},
fontSize: {
xs: ['0.8rem', '1rem']
}
}
},
future: {
hoverOnlyWhenSupported: true
},
plugins: [
require('tailwindcss-react-aria-components'),
require('@tailwindcss/container-queries'),
require('tailwindcss-animate'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/typography'),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
'animation-delay': (value) => {
return {
'animation-delay': value
};
}
},
{
values: theme('transitionDelay')
}
);
})
]
};