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
use super::*;
// The shadcn/ui scheme.
//
// The reference the other schemes are measured against: the `new-york` style
// on the neutral base colour, which is what the shadcn CLI writes today.
// A card is a hairline-bordered, softly shadowed surface; a control is a
// 1px-bordered box with an 8px corner; the overlays float on the popover
// surface with their own elevation.
vars! {
pub c_scheme_shadcn {
// ═══════════════════════════════════════════════════════════════════════
// Shape — the radius ladder the reference publishes, derived from
// `--radius: 0.625rem` by its own multiplicative scale.
// ═══════════════════════════════════════════════════════════════════════
radius-xs: "2px";
radius-sm: "6px";
radius-md: "8px";
radius-lg: "10px";
radius-xl: "14px";
radius-2xl: "16px";
radius-full: "50%";
// ═══════════════════════════════════════════════════════════════════════
// Elevation — the shadow ramp the reference inherits from its CSS
// framework, unchanged between the two modes.
// ═══════════════════════════════════════════════════════════════════════
shadow-xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
shadow-sm: "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)";
shadow-md: "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)";
shadow-lg: "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)";
shadow-xl: "0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10)";
// ═══════════════════════════════════════════════════════════════════════
// Lines and Focus
// ═══════════════════════════════════════════════════════════════════════
border-width: "1px";
surface-border-width: "1px";
ring-width: "3px";
ring-offset: "0px";
// ═══════════════════════════════════════════════════════════════════════
// Typography — the system sans stack and the framework's text ramp.
// ═══════════════════════════════════════════════════════════════════════
font-family: "ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'";
font-family-mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace";
font-xs: "0.75rem";
font-sm: "0.875rem";
font-base: "1rem";
font-md: "1.125rem";
font-lg: "1.25rem";
font-xl: "1.5rem";
font-2xl: "1.875rem";
font-3xl: "2.25rem";
font-4xl: "3rem";
font-5xl: "3.75rem";
font-6xl: "4.5rem";
font-weight-normal: "400";
font-weight-medium: "500";
font-weight-semibold: "600";
font-weight-bold: "700";
letter-spacing-tight: "-0.025em";
letter-spacing-normal: "0em";
letter-spacing-wide: "0.05em";
text-transform-none: "none";
text-transform-uppercase: "uppercase";
// ═══════════════════════════════════════════════════════════════════════
// Control Metrics — the default button is a 36px box.
// ═══════════════════════════════════════════════════════════════════════
control-height: "36px";
control-height-sm: "32px";
control-row-pad: "9px";
// ═══════════════════════════════════════════════════════════════════════
// Media Surfaces — a camera feed and the letterbox around a fullscreen
// canvas are black, a drawing preview is white. They are pictures, not
// chrome, so they do not follow the theme.
// ═══════════════════════════════════════════════════════════════════════
surface-media: "#000000";
surface-drawing: "#ffffff";
// ═══════════════════════════════════════════════════════════════════════
// Surfaces — the light half.
// ═══════════════════════════════════════════════════════════════════════
role-background-light: "#ffffff";
role-foreground-light: "#000000";
role-card-light: "#ffffff";
role-card-foreground-light: "#000000";
role-popover-light: "#ffffff";
role-popover-foreground-light: "#000000";
// ═══════════════════════════════════════════════════════════════════════
// Brand and Neutrals — the light half.
// ═══════════════════════════════════════════════════════════════════════
role-primary-light: "#000000";
role-primary-foreground-light: "#fafafa";
role-primary-hover-light: "rgba(0, 0, 0, 0.80)";
role-secondary-light: "#f5f5f5";
role-secondary-foreground-light: "#171717";
role-muted-light: "#f5f5f5";
role-muted-foreground-light: "#737373";
role-accent-light: "#f5f5f5";
role-accent-foreground-light: "#171717";
// ═══════════════════════════════════════════════════════════════════════
// Status — the light half.
// ═══════════════════════════════════════════════════════════════════════
role-destructive-light: "#e7000b";
role-destructive-foreground-light: "#fcf3f3";
role-success-light: "#16a34a";
role-success-foreground-light: "#ffffff";
role-success-container-light: "#dcfce7";
role-warning-light: "#d97706";
role-warning-foreground-light: "#ffffff";
role-warning-container-light: "#fef3c7";
role-error-container-light: "#fee2e2";
// ═══════════════════════════════════════════════════════════════════════
// Lines and Focus — the light half.
// ═══════════════════════════════════════════════════════════════════════
role-border-light: "#e5e5e5";
role-input-light: "#e5e5e5";
role-ring-light: "#a1a1a1";
// ═══════════════════════════════════════════════════════════════════════
// Scrollbar — the light half.
// ═══════════════════════════════════════════════════════════════════════
role-scrollbar-thumb-light: "#d4d4d4";
role-scrollbar-thumb-hover-light: "#a3a3a3";
role-scrollbar-thumb-active-light: "#737373";
// ═══════════════════════════════════════════════════════════════════════
// Surfaces — the dark half.
// ═══════════════════════════════════════════════════════════════════════
role-background-dark: "#0a0a0a";
role-foreground-dark: "#fafafa";
role-card-dark: "#171717";
role-card-foreground-dark: "#fafafa";
role-popover-dark: "#171717";
role-popover-foreground-dark: "#fafafa";
// ═══════════════════════════════════════════════════════════════════════
// Brand and Neutrals — the dark half.
// ═══════════════════════════════════════════════════════════════════════
role-primary-dark: "#e5e5e5";
role-primary-foreground-dark: "#171717";
role-primary-hover-dark: "rgba(229, 229, 229, 0.80)";
role-secondary-dark: "#262626";
role-secondary-foreground-dark: "#fafafa";
role-muted-dark: "#262626";
role-muted-foreground-dark: "#a1a1a1";
role-accent-dark: "#404040";
role-accent-foreground-dark: "#fafafa";
// ═══════════════════════════════════════════════════════════════════════
// Status — the dark half.
// ═══════════════════════════════════════════════════════════════════════
role-destructive-dark: "#ff6467";
role-destructive-foreground-dark: "#df2225";
role-success-dark: "#22c55e";
role-success-foreground-dark: "#052e16";
role-success-container-dark: "#052e16";
role-warning-dark: "#f59e0b";
role-warning-foreground-dark: "#451a03";
role-warning-container-dark: "#451a03";
role-error-container-dark: "#450a0a";
// ═══════════════════════════════════════════════════════════════════════
// Lines and Focus — the dark half.
// ═══════════════════════════════════════════════════════════════════════
role-border-dark: "rgba(255, 255, 255, 0.10)";
role-input-dark: "rgba(255, 255, 255, 0.15)";
role-ring-dark: "#737373";
// ═══════════════════════════════════════════════════════════════════════
// Scrollbar — the dark half.
// ═══════════════════════════════════════════════════════════════════════
role-scrollbar-thumb-dark: "#404040";
role-scrollbar-thumb-hover-dark: "#525252";
role-scrollbar-thumb-active-dark: "#737373";
}
}