-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
211 lines (210 loc) · 5.75 KB
/
tailwind.config.js
File metadata and controls
211 lines (210 loc) · 5.75 KB
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{html,js}",
"./*.html"
],
darkMode: 'class',
theme: {
extend: {
colors: {
// Neo-brutalism color palette
primary: {
50: '#EFF6FF',
100: '#DBEAFE',
200: '#BFDBFE',
300: '#93C5FD',
400: '#60A5FA',
500: '#3B82F6',
600: '#2563EB',
700: '#1D4ED8',
800: '#1E40AF',
900: '#1E3A8A',
},
secondary: {
50: '#F9FAFB',
100: '#F3F4F6',
200: '#E5E7EB',
300: '#D1D5DB',
400: '#9CA3AF',
500: '#6B7280',
600: '#4B5563',
700: '#374151',
800: '#1F2937',
900: '#111827',
},
success: '#10B981',
warning: '#F59E0B',
danger: '#EF4444',
surface: '#F9FAFB',
'surface-2': '#F3F4F6',
border: '#E5E7EB',
'border-strong': '#D1D5DB',
'text-primary': '#111827',
'text-secondary': '#6B7280',
'text-muted': '#9CA3AF',
},
fontFamily: {
sans: ['-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'sans-serif'],
mono: ['SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'monospace'],
},
fontSize: {
xs: '12px',
sm: '14px',
base: '16px',
lg: '18px',
xl: '20px',
'2xl': '24px',
'3xl': '30px',
'4xl': '36px',
'5xl': '48px',
},
fontWeight: {
normal: '400',
medium: '500',
semibold: '600',
bold: '700',
},
spacing: {
'1': '4px',
'2': '8px',
'3': '12px',
'4': '16px',
'5': '20px',
'6': '24px',
'8': '32px',
'10': '40px',
'12': '48px',
'16': '64px',
'20': '80px',
'24': '96px',
'32': '128px',
},
borderRadius: {
'none': '0',
'sm': '4px',
'DEFAULT': '8px',
'lg': '12px',
'xl': '16px',
},
boxShadow: {
'neo-sm': '2px 2px 0 rgba(0, 0, 0, 0.1)',
'neo': '4px 4px 0 rgba(0, 0, 0, 0.1)',
'neo-lg': '6px 6px 0 rgba(0, 0, 0, 0.1)',
'neo-xl': '8px 8px 0 rgba(0, 0, 0, 0.1)',
'neo-2xl': '12px 12px 0 rgba(0, 0, 0, 0.1)',
// Dark mode shadows
'neo-dark-sm': '2px 2px 0 rgba(0, 0, 0, 0.5)',
'neo-dark': '4px 4px 0 rgba(0, 0, 0, 0.5)',
'neo-dark-lg': '6px 6px 0 rgba(0, 0, 0, 0.5)',
'neo-dark-xl': '8px 8px 0 rgba(0, 0, 0, 0.5)',
'neo-dark-2xl': '12px 12px 0 rgba(0, 0, 0, 0.5)',
},
borderWidth: {
'2': '2px',
'3': '3px',
'4': '4px',
},
height: {
'btn': '44px',
'btn-sm': '36px',
'btn-lg': '52px',
'input': '44px',
'input-sm': '36px',
'nav': '64px',
'13': '52px', // For btn-lg
},
transitionDuration: {
'150': '150ms',
'250': '250ms',
'350': '350ms',
},
animation: {
'fade-in': 'fadeIn 250ms ease-out',
'slide-up': 'slideUp 250ms ease-out',
'toast-slide-up': 'toastSlideUp 250ms ease-out',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
slideUp: {
'0%': { opacity: '0', transform: 'translateY(20px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
toastSlideUp: {
'0%': { opacity: '0', transform: 'translate(-50%, 100%)' },
'100%': { opacity: '1', transform: 'translate(-50%, 0)' },
},
},
zIndex: {
'modal': '1000',
'toast': '2000',
},
},
},
plugins: [
// Custom utilities for neo-brutalism
function({ addUtilities, theme }) {
const neoUtilities = {
'.neo-brutalism': {
border: '2px solid',
borderColor: theme('colors.border'),
boxShadow: theme('boxShadow.neo'),
},
'.neo-brutalism-sm': {
border: '2px solid',
borderColor: theme('colors.border'),
boxShadow: theme('boxShadow.neo-sm'),
},
'.neo-brutalism-lg': {
border: '3px solid',
borderColor: theme('colors.border'),
boxShadow: theme('boxShadow.neo-lg'),
},
'.neo-brutalism-xl': {
border: '4px solid',
borderColor: theme('colors.border'),
boxShadow: theme('boxShadow.neo-xl'),
},
'.hover-neo-lift': {
transition: 'all 150ms ease',
'&:hover': {
boxShadow: theme('boxShadow.neo-lg'),
transform: 'translate(-2px, -2px)',
},
'&:active': {
boxShadow: theme('boxShadow.neo-sm'),
transform: 'translate(1px, 1px)',
},
},
'.dark .neo-brutalism': {
borderColor: theme('colors.secondary.700'),
boxShadow: theme('boxShadow.neo-dark'),
},
'.dark .neo-brutalism-sm': {
borderColor: theme('colors.secondary.700'),
boxShadow: theme('boxShadow.neo-dark-sm'),
},
'.dark .neo-brutalism-lg': {
borderColor: theme('colors.secondary.600'),
boxShadow: theme('boxShadow.neo-dark-lg'),
},
'.dark .neo-brutalism-xl': {
borderColor: theme('colors.secondary.600'),
boxShadow: theme('boxShadow.neo-dark-xl'),
},
'.dark .hover-neo-lift': {
'&:hover': {
boxShadow: theme('boxShadow.neo-dark-lg'),
},
'&:active': {
boxShadow: theme('boxShadow.neo-dark-sm'),
},
},
};
addUtilities(neoUtilities);
},
],
}