Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
160 lines (159 loc) · 5.29 KB
/
Copy pathtailwind.config.js
File metadata and controls
160 lines (159 loc) · 5.29 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
// CSS-variable color that supports opacity modifiers (bg-accent/20). A plain
// 'var(...)' string silently generates NO css for modifier classes, which left
// 300+ authored token tints dead until 2026-07-26.
const varColor = (cssVar) => ({ opacityValue }) =>
opacityValue === undefined
? `var(${cssVar})`
: `color-mix(in srgb, var(${cssVar}) calc(${opacityValue} * 100%), transparent)`;
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{html,js,ts,jsx,tsx}",
],
theme: {
extend: {
screens: {
'3xl': '1920px',
},
colors: {
// Theme-aware colors using CSS variables
background: varColor('--color-background'),
secondary: varColor('--color-background-secondary'),
tertiary: varColor('--color-background-tertiary'),
accent: varColor('--color-accent'),
'accent-hover': varColor('--color-accent-hover'),
'accent-muted': varColor('--color-accent-muted'),
'accent-neon': varColor('--color-accent-neon'),
textPrimary: varColor('--color-text-primary'),
textSecondary: varColor('--color-text-secondary'),
textMuted: varColor('--color-text-muted'),
border: varColor('--color-border'),
borderLight: varColor('--color-border-light'),
borderSubtle: varColor('--color-border-subtle'),
surface: varColor('--color-surface'),
'surface-hover': varColor('--color-surface-hover'),
'surface-active': varColor('--color-surface-active'),
// Semantic colors
success: varColor('--color-success'),
warning: varColor('--color-warning'),
error: varColor('--color-error'),
info: varColor('--color-info'),
// LIVE indicator red: pinned in globals.css, deliberately not themed
live: varColor('--color-live'),
// Glass utility
glass: {
DEFAULT: varColor('--color-surface'),
hover: varColor('--color-surface-hover'),
active: varColor('--color-surface-active'),
},
// Highlight colors
highlight: {
pink: varColor('--color-highlight-pink'),
purple: varColor('--color-highlight-purple'),
blue: varColor('--color-highlight-blue'),
cyan: varColor('--color-highlight-cyan'),
green: varColor('--color-highlight-green'),
yellow: varColor('--color-highlight-yellow'),
orange: varColor('--color-highlight-orange'),
red: varColor('--color-highlight-red'),
},
},
fontFamily: {
// Driven by --app-font (set by applyFont in themes/index.ts) so the
// `font-sans` utility follows the user's Theme > Font choice. The
// static entries are fallbacks if the variable is ever unset.
sans: ['var(--app-font)', 'Satoshi', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'],
},
backdropBlur: {
xs: '2px',
},
keyframes: {
'fade-in': {
'0%': { opacity: '0', transform: 'translateY(-4px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
// Gentle fade + slight grow for overlays/modals so they ease in
// instead of snapping. Pairs with the house spring feel.
'scale-in': {
'0%': { opacity: '0', transform: 'scale(0.96)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
shimmer: {
'0%': { backgroundPosition: '-200% 0' },
'100%': { backgroundPosition: '200% 0' },
},
droplet: {
'0%, 100%': {
transform: 'translateY(-8px)',
opacity: '0'
},
'20%': {
transform: 'translateY(-8px)',
opacity: '1'
},
'40%': {
transform: 'translateY(-8px)',
opacity: '1'
},
'60%': {
transform: 'translateY(8px)',
opacity: '1'
},
'80%': {
transform: 'translateY(12px)',
opacity: '0'
},
},
splash: {
'0%': {
transform: 'scale(0.5)',
opacity: '1'
},
'50%': {
transform: 'scale(1.5)',
opacity: '0.6'
},
'100%': {
transform: 'scale(2.5)',
opacity: '0'
},
},
ripple: {
'0%, 56%': {
transform: 'scale(0.8)',
opacity: '0'
},
'60%': {
transform: 'scale(1.0)',
opacity: '0.5'
},
'68%': {
transform: 'scale(1.3)',
opacity: '0.4'
},
'78%': {
transform: 'scale(1.6)',
opacity: '0.2'
},
'88%': {
transform: 'scale(1.9)',
opacity: '0.1'
},
'100%': {
transform: 'scale(2.2)',
opacity: '0'
},
},
},
animation: {
'fade-in': 'fade-in 0.3s ease-out forwards',
'scale-in': 'scale-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards',
shimmer: 'shimmer 2s ease-in-out infinite',
droplet: 'droplet 2.5s ease-in-out infinite',
splash: 'splash 0.6s ease-out forwards',
ripple: 'ripple 2.5s ease-out infinite',
},
},
},
plugins: [],
}