-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
209 lines (208 loc) · 8.21 KB
/
Copy pathtailwind.config.js
File metadata and controls
209 lines (208 loc) · 8.21 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
import { tailwindColorScales } from './src/config/themeConfig.ts';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {
colors: {
// ===========================================
// COLOR SCALES - Generated from themeConfig.ts
// To change colors, edit src/config/themeConfig.ts
// ===========================================
primary: tailwindColorScales.primary,
secondary: tailwindColorScales.secondary,
tertiary: tailwindColorScales.tertiary,
accent: tailwindColorScales.accent,
background: {
DEFAULT: 'hsl(var(--background))',
secondary: 'oklch(var(--bg-secondary) / <alpha-value>)',
tertiary: 'oklch(var(--bg-tertiary) / <alpha-value>)'
},
foreground: {
DEFAULT: 'hsl(var(--foreground))',
muted: 'oklch(var(--text-muted) / <alpha-value>)',
secondary: 'oklch(var(--text-secondary) / <alpha-value>)'
},
success: 'oklch(0.70 0.18 150 / <alpha-value>)',
warning: 'oklch(0.75 0.20 80 / <alpha-value>)',
error: 'oklch(0.60 0.25 20 / <alpha-value>)',
syntax: {
keyword: 'oklch(0.65 0.20 330 / <alpha-value>)',
string: 'oklch(0.75 0.15 90 / <alpha-value>)',
number: 'oklch(0.70 0.18 40 / <alpha-value>)',
comment: 'oklch(0.55 0.05 210 / <alpha-value>)'
},
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
1: 'hsl(var(--chart-1))',
2: 'hsl(var(--chart-2))',
3: 'hsl(var(--chart-3))',
4: 'hsl(var(--chart-4))',
5: 'hsl(var(--chart-5))'
}
},
fontFamily: {
sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],
mono: ['JetBrains Mono', 'Courier New', 'monospace']
},
fontSize: {
xs: [
'clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem)',
{
lineHeight: '1.5'
}
],
sm: [
'clamp(0.875rem, 0.8rem + 0.375vw, 1rem)',
{
lineHeight: '1.5'
}
],
base: [
'clamp(1rem, 0.95rem + 0.25vw, 1.125rem)',
{
lineHeight: '1.5'
}
],
lg: [
'clamp(1.125rem, 1rem + 0.625vw, 1.5rem)',
{
lineHeight: '1.5'
}
],
xl: [
'clamp(1.5rem, 1.3rem + 1vw, 2rem)',
{
lineHeight: '1.2'
}
],
'2xl': [
'clamp(2rem, 1.6rem + 2vw, 3rem)',
{
lineHeight: '1.2'
}
],
'3xl': [
'clamp(2.5rem, 2rem + 2.5vw, 4rem)',
{
lineHeight: '1.2'
}
],
'4xl': [
'clamp(3rem, 2.5rem + 2.5vw, 5rem)',
{
lineHeight: '1.2'
}
]
},
spacing: {
1: '0.25rem',
2: '0.5rem',
3: '0.75rem',
4: '1rem',
5: '1.25rem',
6: '1.5rem',
8: '2rem',
10: '2.5rem',
12: '3rem',
16: '4rem',
20: '5rem',
24: '6rem',
32: '8rem'
},
borderRadius: {
xs: '0.25rem', // 4px - small badges, pills
sm: '0.375rem', // 6px - inputs, small buttons
DEFAULT: '0.5rem', // 8px - default
md: '0.5rem', // 8px - buttons, small elements
lg: '0.75rem', // 12px - cards (standard)
xl: '1rem', // 16px - hero sections, featured cards
'2xl': '1.5rem', // 24px - large containers
full: '9999px' // circles
},
scale: {
subtle: '1.02', // cards, previews (standard hover)
medium: '1.05', // buttons, interactive elements
emphasis: '1.1' // icons, CTAs
},
boxShadow: {
sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
DEFAULT: '0 4px 6px -1px rgb(0 0 0 / 0.1)',
md: '0 4px 6px -1px rgb(0 0 0 / 0.1)',
lg: '0 10px 15px -3px rgb(0 0 0 / 0.1)',
xl: '0 20px 25px -5px rgb(0 0 0 / 0.1)',
'2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
glow: '0 0 20px rgb(16 185 129 / 0.3)',
'glow-primary': '0 0 20px oklch(0.55 0.22 160 / 0.3)',
'glow-secondary': '0 0 20px oklch(0.70 0.18 160 / 0.3)',
dropdown: '0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 6px -1px rgb(0 0 0 / 0.05)'
},
transitionDuration: {
fast: '150ms',
base: '300ms',
DEFAULT: '300ms',
slow: '500ms',
slower: '700ms'
},
transitionTimingFunction: {
linear: 'linear',
'ease-in': 'cubic-bezier(0.4, 0, 1, 1)', // elements leaving
'ease-out': 'cubic-bezier(0, 0, 0.2, 1)', // elements entering
'ease-in-out': 'cubic-bezier(0.4, 0, 0.2, 1)', // standard (default)
spring: 'cubic-bezier(0.27, 0.22, 0.44, 1.03)', // bouncy animations
bounce: 'cubic-bezier(0.34, 1.56, 0.64, 1)' // emphasis, success states
},
keyframes: {
slideInDropdown: {
'0%': {
opacity: '0',
transform: 'translateY(-8px) translateX(0)'
},
'100%': {
opacity: '1',
transform: 'translateY(0) translateX(0)'
}
},
slideInDropdownCentered: {
'0%': {
opacity: '0',
translate: '0 -8px'
},
'100%': {
opacity: '1',
translate: '0 0'
}
}
},
animation: {
slideInDropdown: 'slideInDropdown 550ms cubic-bezier(0.17, 0.67, 0.51, 1)',
slideInDropdownCentered: 'slideInDropdownCentered 550ms cubic-bezier(0.17, 0.67, 0.51, 1)'
},
backgroundImage: {
// Radial gradient that works with from-*/via-*/to-* modifiers
'gradient-radial':
'radial-gradient(circle, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to))'
}
}
},
plugins: [require('tailwindcss-animate')]
};