-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
180 lines (167 loc) · 6.5 KB
/
Copy pathtailwind.config.ts
File metadata and controls
180 lines (167 loc) · 6.5 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
import type { Config } from 'tailwindcss';
const config: Config = {
// Theme provider sets `data-theme="<id>"` on <html> (see lib/theme/theme-provider.tsx),
// NOT the legacy `.dark` class. Bind Tailwind's `dark:` variant to every dark-family
// theme so `dark:` overrides actually fire. `light` is the only light theme.
darkMode: [
'variant',
[
'&:is([data-theme="dark"] *)',
'&:is([data-theme="midnight-blue"] *)',
'&:is([data-theme="graphite"] *)',
'&:is([data-theme="aurora"] *)',
],
],
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./lib/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 4px)',
sm: 'calc(var(--radius) - 6px)',
xl: 'calc(var(--radius) + 4px)',
},
colors: {
// Neutralize the retired cyan brand accent: override Tailwind's
// built-in cyan + teal ramps with a charcoal/ink neutral scale so
// every cyan-*/teal-* utility renders as grey (near-monochrome brand).
cyan: {
50: '#fafafa',
100: '#f4f4f5',
200: '#e4e4e7',
300: '#d4d4d8',
400: '#a1a1aa',
500: '#71717a',
600: '#52525b',
700: '#3f3f46',
800: '#27272a',
900: '#18181b',
950: '#09090b',
},
teal: {
50: '#fafafa',
100: '#f4f4f5',
200: '#e4e4e7',
300: '#d4d4d8',
400: '#a1a1aa',
500: '#71717a',
600: '#52525b',
700: '#3f3f46',
800: '#27272a',
900: '#18181b',
950: '#09090b',
},
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: 'hsl(var(--card))',
'card-foreground': 'hsl(var(--card-foreground))',
popover: 'hsl(var(--popover))',
'popover-foreground': 'hsl(var(--popover-foreground))',
primary: 'hsl(var(--primary))',
'primary-foreground': 'hsl(var(--primary-foreground))',
secondary: 'hsl(var(--secondary))',
'secondary-foreground': 'hsl(var(--secondary-foreground))',
muted: 'hsl(var(--muted))',
'muted-foreground': 'hsl(var(--muted-foreground))',
accent: 'hsl(var(--accent))',
'accent-foreground': 'hsl(var(--accent-foreground))',
destructive: 'hsl(var(--destructive))',
'destructive-foreground': 'hsl(var(--destructive-foreground))',
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
sidebar: 'hsl(var(--sidebar))',
'sidebar-foreground': 'hsl(var(--sidebar-foreground))',
// Marketing surface tokens
'marketing-bg': 'hsl(var(--marketing-bg))',
'marketing-bg-alt': 'hsl(var(--marketing-bg-alt))',
'marketing-surface': 'hsl(var(--marketing-surface))',
'marketing-card': 'hsl(var(--marketing-card))',
// Canvas scale — deep dark backgrounds.
// Use bg-canvas-950 / bg-canvas-850 etc. instead of bg-[#0a0f1c]
canvas: {
950: 'var(--space-950)', // #030509 — deepest
900: 'var(--space-900)', // #060a12
850: 'var(--space-850)', // #080d18
800: 'var(--space-800)', // #0a101f — primary app bg
750: 'var(--space-750)', // #0d1326
700: 'var(--space-700)', // #10162d
650: 'var(--space-650)', // #141b35
600: 'var(--space-600)', // #18203d — subtle elevated surface
},
// Wire/accent primaries — 3 semantic roles.
// Canonical: wire-action, wire-alert, wire-success
// Legacy names kept as aliases so existing code compiles without changes.
wire: {
// Canonical 3
action: 'var(--wire-action)', // cyan #00d4fb — primary action
alert: 'var(--wire-alert)', // rose #f43f5e — risk / danger
success: 'var(--wire-success)', // emerald #10b981 — cleared / done
// Legacy aliases → resolved to the 3 above via CSS variable aliasing
cyan: 'var(--wire-policy-control)',
teal: 'var(--wire-control-evidence)',
violet: 'var(--wire-evidence-audit)',
amber: 'var(--wire-audit-risk)',
rose: 'var(--wire-risk-task)',
emerald: 'var(--wire-task-control)',
},
// Glass surface shorthands.
// Use bg-glass-subtle / bg-glass-strong instead of bg-white/[0.04]
glass: {
subtle: 'var(--glass-bg)', // rgba(255,255,255,0.04)
strong: 'var(--glass-bg-strong)', // rgba(255,255,255,0.08)
border: 'var(--glass-border)', // rgba(255,255,255,0.10)
'border-strong': 'var(--glass-border-strong)', // rgba(255,255,255,0.16)
},
// Surface tier scale — theme-aware elevation lifts.
// Replaces bg-white/5, bg-white/10, bg-white/20 patterns so
// light / dark / midnight-blue / graphite / aurora all render
// consistent surface hierarchy.
surface: {
1: 'var(--surface-1)', // subtle lift (~bg-white/5 intent)
2: 'var(--surface-2)', // medium lift (~bg-white/10 intent)
3: 'var(--surface-3)', // strong lift (~bg-white/20 intent)
},
edge: {
1: 'var(--edge-1)', // ~border-white/5 intent
2: 'var(--edge-2)', // ~border-white/10 intent
3: 'var(--edge-3)', // ~border-white/20 intent
},
// Status semantic tokens
success: 'hsl(var(--success))',
'success-foreground': 'hsl(var(--success-foreground))',
warning: 'hsl(var(--warning))',
'warning-foreground': 'hsl(var(--warning-foreground))',
info: 'hsl(var(--info))',
'info-foreground': 'hsl(var(--info-foreground))',
},
fontFamily: {
sans: ['var(--font-body)'],
display: ['var(--font-display)'],
hero: ['var(--font-hero)'],
mono: ['var(--font-mono)'],
},
spacing: {
xs: 'var(--space-xs)',
sm: 'var(--space-sm)',
md: 'var(--space-md)',
lg: 'var(--space-lg)',
xl: 'var(--space-xl)',
'2xl': 'var(--space-2xl)',
'3xl': 'var(--space-3xl)',
},
boxShadow: {
premium: 'var(--shadow-md)',
'premium-lg': 'var(--shadow-lg)',
'premium-xl': 'var(--shadow-xl)',
'premium-2xl': 'var(--shadow-2xl)',
},
},
},
plugins: [],
};
export default config;