@vouched-id/ui 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.d.ts +8 -0
- package/dist/Accordion.d.ts.map +1 -0
- package/dist/Accordion.js +20 -0
- package/dist/Accordion.js.map +1 -0
- package/dist/Alert.d.ts +12 -0
- package/dist/Alert.d.ts.map +1 -0
- package/dist/Alert.js +64 -0
- package/dist/Alert.js.map +1 -0
- package/dist/AlertDialog.d.ts +90 -0
- package/dist/AlertDialog.d.ts.map +1 -0
- package/dist/AlertDialog.js +148 -0
- package/dist/AlertDialog.js.map +1 -0
- package/dist/Avatar.d.ts +43 -0
- package/dist/Avatar.d.ts.map +1 -0
- package/dist/Avatar.js +29 -0
- package/dist/Avatar.js.map +1 -0
- package/dist/Badge.d.ts +31 -0
- package/dist/Badge.d.ts.map +1 -0
- package/dist/Badge.js +22 -0
- package/dist/Badge.js.map +1 -0
- package/dist/Banner.d.ts +57 -0
- package/dist/Banner.d.ts.map +1 -0
- package/dist/Banner.js +30 -0
- package/dist/Banner.js.map +1 -0
- package/dist/Button.d.ts +56 -0
- package/dist/Button.d.ts.map +1 -0
- package/dist/Button.js +106 -0
- package/dist/Button.js.map +1 -0
- package/dist/Card.d.ts +79 -0
- package/dist/Card.d.ts.map +1 -0
- package/dist/Card.js +50 -0
- package/dist/Card.js.map +1 -0
- package/dist/Chart.d.ts +63 -0
- package/dist/Chart.d.ts.map +1 -0
- package/dist/Chart.js +120 -0
- package/dist/Chart.js.map +1 -0
- package/dist/Checkbox.d.ts +4 -0
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/Checkbox.js +10 -0
- package/dist/Checkbox.js.map +1 -0
- package/dist/CodeBlock.d.ts +101 -0
- package/dist/CodeBlock.d.ts.map +1 -0
- package/dist/CodeBlock.js +99 -0
- package/dist/CodeBlock.js.map +1 -0
- package/dist/Collapsible.d.ts +6 -0
- package/dist/Collapsible.d.ts.map +1 -0
- package/dist/Collapsible.js +14 -0
- package/dist/Collapsible.js.map +1 -0
- package/dist/DataTable.d.ts +59 -0
- package/dist/DataTable.d.ts.map +1 -0
- package/dist/DataTable.js +162 -0
- package/dist/DataTable.js.map +1 -0
- package/dist/Dialog.d.ts +71 -0
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Dialog.js +185 -0
- package/dist/Dialog.js.map +1 -0
- package/dist/DropdownMenu.d.ts +82 -0
- package/dist/DropdownMenu.d.ts.map +1 -0
- package/dist/DropdownMenu.js +111 -0
- package/dist/DropdownMenu.js.map +1 -0
- package/dist/EditorialHeading.d.ts +42 -0
- package/dist/EditorialHeading.d.ts.map +1 -0
- package/dist/EditorialHeading.js +36 -0
- package/dist/EditorialHeading.js.map +1 -0
- package/dist/EmptyState.d.ts +40 -0
- package/dist/EmptyState.d.ts.map +1 -0
- package/dist/EmptyState.js +7 -0
- package/dist/EmptyState.js.map +1 -0
- package/dist/Eyebrow.d.ts +27 -0
- package/dist/Eyebrow.d.ts.map +1 -0
- package/dist/Eyebrow.js +23 -0
- package/dist/Eyebrow.js.map +1 -0
- package/dist/Field.d.ts +33 -0
- package/dist/Field.d.ts.map +1 -0
- package/dist/Field.js +26 -0
- package/dist/Field.js.map +1 -0
- package/dist/HoverCard.d.ts +7 -0
- package/dist/HoverCard.d.ts.map +1 -0
- package/dist/HoverCard.js +17 -0
- package/dist/HoverCard.js.map +1 -0
- package/dist/Input.d.ts +20 -0
- package/dist/Input.d.ts.map +1 -0
- package/dist/Input.js +17 -0
- package/dist/Input.js.map +1 -0
- package/dist/InstallCommand.d.ts +48 -0
- package/dist/InstallCommand.d.ts.map +1 -0
- package/dist/InstallCommand.js +60 -0
- package/dist/InstallCommand.js.map +1 -0
- package/dist/Kbd.d.ts +23 -0
- package/dist/Kbd.d.ts.map +1 -0
- package/dist/Kbd.js +7 -0
- package/dist/Kbd.js.map +1 -0
- package/dist/Label.d.ts +5 -0
- package/dist/Label.d.ts.map +1 -0
- package/dist/Label.js +9 -0
- package/dist/Label.js.map +1 -0
- package/dist/Popover.d.ts +41 -0
- package/dist/Popover.d.ts.map +1 -0
- package/dist/Popover.js +27 -0
- package/dist/Popover.js.map +1 -0
- package/dist/Progress.d.ts +6 -0
- package/dist/Progress.d.ts.map +1 -0
- package/dist/Progress.js +9 -0
- package/dist/Progress.js.map +1 -0
- package/dist/RadioGroup.d.ts +5 -0
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RadioGroup.js +15 -0
- package/dist/RadioGroup.js.map +1 -0
- package/dist/ScrollArea.d.ts +32 -0
- package/dist/ScrollArea.d.ts.map +1 -0
- package/dist/ScrollArea.js +13 -0
- package/dist/ScrollArea.js.map +1 -0
- package/dist/SegmentedControl.d.ts +37 -0
- package/dist/SegmentedControl.d.ts.map +1 -0
- package/dist/SegmentedControl.js +85 -0
- package/dist/SegmentedControl.js.map +1 -0
- package/dist/Select.d.ts +21 -0
- package/dist/Select.d.ts.map +1 -0
- package/dist/Select.js +52 -0
- package/dist/Select.js.map +1 -0
- package/dist/Separator.d.ts +4 -0
- package/dist/Separator.d.ts.map +1 -0
- package/dist/Separator.js +9 -0
- package/dist/Separator.js.map +1 -0
- package/dist/Sheet.d.ts +71 -0
- package/dist/Sheet.d.ts.map +1 -0
- package/dist/Sheet.js +173 -0
- package/dist/Sheet.js.map +1 -0
- package/dist/Skeleton.d.ts +26 -0
- package/dist/Skeleton.d.ts.map +1 -0
- package/dist/Skeleton.js +9 -0
- package/dist/Skeleton.js.map +1 -0
- package/dist/Slider.d.ts +5 -0
- package/dist/Slider.d.ts.map +1 -0
- package/dist/Slider.js +12 -0
- package/dist/Slider.js.map +1 -0
- package/dist/StatusDot.d.ts +29 -0
- package/dist/StatusDot.d.ts.map +1 -0
- package/dist/StatusDot.js +55 -0
- package/dist/StatusDot.js.map +1 -0
- package/dist/StatusText.d.ts +15 -0
- package/dist/StatusText.d.ts.map +1 -0
- package/dist/StatusText.js +49 -0
- package/dist/StatusText.js.map +1 -0
- package/dist/Switch.d.ts +47 -0
- package/dist/Switch.d.ts.map +1 -0
- package/dist/Switch.js +17 -0
- package/dist/Switch.js.map +1 -0
- package/dist/Table.d.ts +22 -0
- package/dist/Table.d.ts.map +1 -0
- package/dist/Table.js +42 -0
- package/dist/Table.js.map +1 -0
- package/dist/Tabs.d.ts +96 -0
- package/dist/Tabs.d.ts.map +1 -0
- package/dist/Tabs.js +319 -0
- package/dist/Tabs.js.map +1 -0
- package/dist/Tag.d.ts +19 -0
- package/dist/Tag.d.ts.map +1 -0
- package/dist/Tag.js +50 -0
- package/dist/Tag.js.map +1 -0
- package/dist/Textarea.d.ts +32 -0
- package/dist/Textarea.d.ts.map +1 -0
- package/dist/Textarea.js +11 -0
- package/dist/Textarea.js.map +1 -0
- package/dist/Toast.d.ts +47 -0
- package/dist/Toast.d.ts.map +1 -0
- package/dist/Toast.js +110 -0
- package/dist/Toast.js.map +1 -0
- package/dist/ToggleGroup.d.ts +48 -0
- package/dist/ToggleGroup.d.ts.map +1 -0
- package/dist/ToggleGroup.js +27 -0
- package/dist/ToggleGroup.js.map +1 -0
- package/dist/Tooltip.d.ts +8 -0
- package/dist/Tooltip.d.ts.map +1 -0
- package/dist/Tooltip.js +81 -0
- package/dist/Tooltip.js.map +1 -0
- package/dist/VouchedLogo.d.ts +31 -0
- package/dist/VouchedLogo.d.ts.map +1 -0
- package/dist/VouchedLogo.js +215 -0
- package/dist/VouchedLogo.js.map +1 -0
- package/dist/_code-copy-button.d.ts +9 -0
- package/dist/_code-copy-button.d.ts.map +1 -0
- package/dist/_code-copy-button.js +72 -0
- package/dist/_code-copy-button.js.map +1 -0
- package/dist/_code-syntax.d.ts +81 -0
- package/dist/_code-syntax.d.ts.map +1 -0
- package/dist/_code-syntax.js +293 -0
- package/dist/_code-syntax.js.map +1 -0
- package/dist/_status-icons.d.ts +22 -0
- package/dist/_status-icons.d.ts.map +1 -0
- package/dist/_status-icons.js +40 -0
- package/dist/_status-icons.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/format-numbers.d.ts +51 -0
- package/dist/lib/format-numbers.d.ts.map +1 -0
- package/dist/lib/format-numbers.js +158 -0
- package/dist/lib/format-numbers.js.map +1 -0
- package/dist/lib/utils.d.ts +20 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +23 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/public.d.ts +62 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.js +66 -0
- package/dist/public.js.map +1 -0
- package/dist/theme-scope.d.ts +55 -0
- package/dist/theme-scope.d.ts.map +1 -0
- package/dist/theme-scope.js +90 -0
- package/dist/theme-scope.js.map +1 -0
- package/dist/tokens.generated.d.ts +335 -0
- package/dist/tokens.generated.d.ts.map +1 -0
- package/dist/tokens.generated.js +349 -0
- package/dist/tokens.generated.js.map +1 -0
- package/package.json +100 -3
- package/styles/README.md +106 -0
- package/styles/base.css +301 -0
- package/styles/canvas.css +147 -0
- package/styles/colors_and_type.css +136 -0
- package/styles/component-contracts.css +471 -0
- package/styles/fonts.css +28 -0
- package/styles/package.css +6 -0
- package/styles/primitive-skins.css +104 -0
- package/styles/semantic-bindings.css +119 -0
- package/styles/shell.css +50 -0
- package/styles/source.css +4 -0
- package/styles/tailwind-bridge.css +255 -0
- package/styles/theme.css +15 -0
- package/styles/tokens.css +1281 -0
- package/styles/vouched-logo.css +336 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1281 @@
|
|
|
1
|
+
/* ==============================================================
|
|
2
|
+
Checkpoint Design System — Tokens
|
|
3
|
+
──────────────────────────────────────────────────────────────
|
|
4
|
+
Source: checkpoint-design-system/project/tokens.css
|
|
5
|
+
(Claude Design handoff, Phase 2 follow-up).
|
|
6
|
+
|
|
7
|
+
The single source of every design token. Each one is declared here,
|
|
8
|
+
inside `@layer base`, so no unlayered sheet can override it by
|
|
9
|
+
accident. semantic-bindings.css maps the shadcn vocabulary and the
|
|
10
|
+
app's component names onto these tokens, and tailwind-bridge.css
|
|
11
|
+
maps them to utility names.
|
|
12
|
+
|
|
13
|
+
Two layers:
|
|
14
|
+
Layer 1 · PRIMITIVES — Tailwind v4 `@theme`-shaped raw scales.
|
|
15
|
+
`--color-*`, `--text-*`, `--spacing-*`, `--radius-*`,
|
|
16
|
+
`--font-*`, `--shadow-*`, `--ease-*`.
|
|
17
|
+
Layer 2 · SEMANTICS — brand vocabulary. Pages should reference
|
|
18
|
+
these (`--bg-canvas`, `--fg-primary`, `--signal` …),
|
|
19
|
+
never the raw primitives.
|
|
20
|
+
|
|
21
|
+
Naming (docs/design-system/rule-book-tokens.md, "Naming"):
|
|
22
|
+
surfaces --bg-canvas / --bg-surface / --bg-elevated
|
|
23
|
+
ink --fg-primary / --fg-secondary / --fg-tertiary / --fg-muted
|
|
24
|
+
hairlines --border-subtle / --border-default / --border-strong
|
|
25
|
+
roles R (solid fill), R-hover, R-soft (tint background),
|
|
26
|
+
R-line (border, glow), R-text (text and icons, 4.5:1 on
|
|
27
|
+
canvas, surface and elevated in both themes) and on-R
|
|
28
|
+
(text on the solid R fill).
|
|
29
|
+
|
|
30
|
+
Scope (theme and mode):
|
|
31
|
+
· Theme and mode are two stamps. `data-theme` names the theme
|
|
32
|
+
(`checkpoint`); the `.dark` or `.light` class picks the mode, the
|
|
33
|
+
way next-themes' `attribute="class"` sets it on <html>. COLOR
|
|
34
|
+
primitives and the LIGHT/DARK semantic layers are defined at
|
|
35
|
+
`:root`, `.light` and `.dark`, so every surface consumes the design
|
|
36
|
+
system, and light is the default when no mode class is set.
|
|
37
|
+
· A subtree that forces a theme or a mode carries both stamps on one
|
|
38
|
+
element (the Checkpoint shell, portaled menus, hi-ai, /dashboard/ds).
|
|
39
|
+
The mode blocks re-declare every role on any element with a mode
|
|
40
|
+
class, so the roles there resolve from that element's own bases.
|
|
41
|
+
· `[data-theme*='checkpoint']` gates Checkpoint's own stylesheets
|
|
42
|
+
(checkpoint.css et al.) to its surfaces, in either mode.
|
|
43
|
+
· Deprecated stamps that fold the mode into the theme name still
|
|
44
|
+
resolve: `data-theme='checkpoint'` with no mode class is dark, and
|
|
45
|
+
`data-theme='checkpoint-light'` is light.
|
|
46
|
+
· METRIC primitives (`--text-*`, `--spacing-*` steps,
|
|
47
|
+
`--radius-*` steps, weights, tracking) are GLOBAL (`:root`)
|
|
48
|
+
as of the flow-step-3 metric promotion. They share names
|
|
49
|
+
with Tailwind v4 theme variables ON PURPOSE: this base-layer
|
|
50
|
+
block beats the theme layer, so compiled `text-4xl` /
|
|
51
|
+
`tracking-tight` utilities and `var()` consumers both
|
|
52
|
+
resolve the DS ladder app-wide. Only the bare `--spacing`
|
|
53
|
+
base unit remains dashboard-scoped (see its in-place note).
|
|
54
|
+
· Four ramps (violet/amber/rose/orange) collide with Tailwind's
|
|
55
|
+
own palette names, so their global form is `--ck-*`; the
|
|
56
|
+
scoped block aliases the canonical `--color-*` names back to
|
|
57
|
+
them for in-dashboard consumers. White and black are
|
|
58
|
+
`--ck-white` / `--ck-black` for the same reason;
|
|
59
|
+
tailwind-bridge.css points Tailwind's `--color-white` /
|
|
60
|
+
`--color-black` at them.
|
|
61
|
+
|
|
62
|
+
Doctrine (the five rules):
|
|
63
|
+
01 · Mint is the single signal color. Live state, identity,
|
|
64
|
+
focus. Never a primary CTA fill.
|
|
65
|
+
02 · Violet is the action. Primary CTAs are brand-violet
|
|
66
|
+
(`--brand` / `--on-brand`); there is no white primary
|
|
67
|
+
button (Decision B, 2026-07). The `--action-*` token pair
|
|
68
|
+
is retained only for the remaining NON-button surfaces that
|
|
69
|
+
still consume it (see semantic-bindings.css); it is
|
|
70
|
+
deprecated for CTAs.
|
|
71
|
+
03 · Hairlines, not shadows. 7% white border carries the
|
|
72
|
+
weight.
|
|
73
|
+
04 · Hard corners on data — `--radius-xs` (2px) on tables, code,
|
|
74
|
+
kbd, dots. Soft corners on interactive controls (chips,
|
|
75
|
+
buttons, inputs): `--radius-md` (8px). Cards and editorial:
|
|
76
|
+
`--radius-lg` (12px).
|
|
77
|
+
05 · 12px floor / 16px default. No 11/13/15 in product chrome.
|
|
78
|
+
============================================================== */
|
|
79
|
+
|
|
80
|
+
@layer base {
|
|
81
|
+
/* ============================================================
|
|
82
|
+
LAYER 1 · PRIMITIVES — GLOBAL
|
|
83
|
+
Raw color ramps, motion curves, and mode-invariant shadows.
|
|
84
|
+
Defined at `:root` so the whole app (marketing, auth, docs,
|
|
85
|
+
legacy dashboard chrome, portals) can resolve the design system.
|
|
86
|
+
Ramp names that Tailwind v4 does NOT ship (ink/mint/iris/
|
|
87
|
+
cream/peach/brass) keep their canonical `--color-*` names;
|
|
88
|
+
the four ramps Tailwind DOES ship (violet/amber/rose/orange)
|
|
89
|
+
are namespaced `--ck-*` here so 339+ existing `text-amber-*`
|
|
90
|
+
-style utility usages outside Checkpoint keep Tailwind's palette.
|
|
91
|
+
NEVER reference `var(--color-violet-*)` (or amber/rose/
|
|
92
|
+
orange) from a `:root`/`.dark` block — at that scope those
|
|
93
|
+
names resolve to TAILWIND's palette, not the brand.
|
|
94
|
+
============================================================ */
|
|
95
|
+
:root {
|
|
96
|
+
/* ---------- Color · Ink (cool neutral grayscale) ---------- */
|
|
97
|
+
--color-ink-50: #f5f6f8;
|
|
98
|
+
--color-ink-100: #e7eaee;
|
|
99
|
+
--color-ink-200: #c9ced6;
|
|
100
|
+
--color-ink-300: #a3aab5;
|
|
101
|
+
--color-ink-400: #777f8d;
|
|
102
|
+
--color-ink-500: #555b67;
|
|
103
|
+
--color-ink-600: #3a3f48;
|
|
104
|
+
--color-ink-700: #262a31;
|
|
105
|
+
--color-ink-800: #161a20;
|
|
106
|
+
--color-ink-900: #0e1116;
|
|
107
|
+
--color-ink-950: #0a0d12;
|
|
108
|
+
--color-ink-1000: #06080b;
|
|
109
|
+
|
|
110
|
+
/* ---------- Color · Mint (signal) ---------- */
|
|
111
|
+
--color-mint-300: #b6ffd9;
|
|
112
|
+
--color-mint-400: #7fffbd; /* canonical signal hue */
|
|
113
|
+
--color-mint-500: #4eeaa0;
|
|
114
|
+
--color-mint-600: #2bcc83;
|
|
115
|
+
|
|
116
|
+
/* ---------- Color · Iris (info / data) ---------- */
|
|
117
|
+
--color-iris-300: #c8cdff;
|
|
118
|
+
--color-iris-400: #9aa3ff;
|
|
119
|
+
--color-iris-500: #7079f0;
|
|
120
|
+
|
|
121
|
+
/* ---------- Color · Cream (highlight tier) ----------
|
|
122
|
+
The brightest, rarest accent in the warm family. ONE element
|
|
123
|
+
per view — hero accent word, hero numeric, single watch-point
|
|
124
|
+
border. Cream-on-dark only; light mode swaps this role to
|
|
125
|
+
brass via the `--highlight` semantic alias. */
|
|
126
|
+
--color-cream-300: #fff1d9;
|
|
127
|
+
--color-cream-400: #ffe8c7;
|
|
128
|
+
--color-cream-500: #ffd8a3;
|
|
129
|
+
|
|
130
|
+
/* ---------- Color · Vouched (Vouched brand) ----------
|
|
131
|
+
Ramp around the Vouched logo colour (brand guidelines 2026),
|
|
132
|
+
500 = the logo. Steps hold the logo's OKLCH hue (264.6) and walk
|
|
133
|
+
lightness, so every tint reads as the same ultramarine. The light
|
|
134
|
+
theme's logo and highlight come from 500; 400 is the lightest step
|
|
135
|
+
that still holds 4.5:1 on every paper step, a hovered row
|
|
136
|
+
included. */
|
|
137
|
+
--color-vouched-50: #f3f7ff;
|
|
138
|
+
--color-vouched-100: #e5edfe;
|
|
139
|
+
--color-vouched-200: #cadbfe;
|
|
140
|
+
--color-vouched-300: #81a8fe;
|
|
141
|
+
--color-vouched-400: #2358ff;
|
|
142
|
+
--color-vouched-500: #0810fe;
|
|
143
|
+
--color-vouched-600: #0603d7;
|
|
144
|
+
--color-vouched-700: #0401ad;
|
|
145
|
+
--color-vouched-800: #020185;
|
|
146
|
+
--color-vouched-900: #010059;
|
|
147
|
+
--color-vouched-blue: var(--color-vouched-500);
|
|
148
|
+
|
|
149
|
+
/* ---------- Color · Vouched brand-art hues ----------
|
|
150
|
+
The five hues behind the chevrons in the Vouched brand art
|
|
151
|
+
(vouched.id hero), clockwise from the ring's lower right. Only
|
|
152
|
+
the rail lockup's hover sweep uses them. Decorative: never text,
|
|
153
|
+
never state. */
|
|
154
|
+
--color-vouched-violet: #7a3cf5;
|
|
155
|
+
--color-vouched-magenta: #c632e0;
|
|
156
|
+
--color-vouched-pink: #ee4fa4;
|
|
157
|
+
--color-vouched-sun: #f7a23b;
|
|
158
|
+
|
|
159
|
+
/* Vouched logo fill outside a Checkpoint theme scope (blog, hosted
|
|
160
|
+
consent, /connect): blue, as on paper. The theme blocks below set
|
|
161
|
+
it per theme. */
|
|
162
|
+
--kya-mark: var(--color-vouched-blue);
|
|
163
|
+
|
|
164
|
+
/* ---------- Color · Peach (warm callout) ----------
|
|
165
|
+
Recurring functional warmth: active nav state, watch-point
|
|
166
|
+
borders. Pairs with cream as a 2-tier warm system. */
|
|
167
|
+
--color-peach-300: #ffd1a3;
|
|
168
|
+
--color-peach-400: #ffb870;
|
|
169
|
+
--color-peach-500: #ff9b47;
|
|
170
|
+
|
|
171
|
+
/* ---------- Color · Brass (editorial) ---------- */
|
|
172
|
+
--color-brass-300: #e8c597;
|
|
173
|
+
--color-brass-400: #d4a574;
|
|
174
|
+
--color-brass-500: #a87a45;
|
|
175
|
+
|
|
176
|
+
/* ---------- Color · Violet (PRODUCT brand) — `--ck-*` ----------
|
|
177
|
+
Anchors product identity. Reserved for: brand mark, primary
|
|
178
|
+
CTA send-button rest state, nav active glow, hover halos,
|
|
179
|
+
data fills in charts. Never used as a state color — that's
|
|
180
|
+
`--signal` / `--allow` / `--deny`. */
|
|
181
|
+
--ck-violet-50: #f4effb;
|
|
182
|
+
--ck-violet-100: #eadff6;
|
|
183
|
+
--ck-violet-200: #d7c5ef;
|
|
184
|
+
--ck-violet-300: #b79dec;
|
|
185
|
+
--ck-violet-400: #7340e0;
|
|
186
|
+
--ck-violet-500: #5527b8;
|
|
187
|
+
--ck-violet-600: #3a1b82;
|
|
188
|
+
--ck-violet-900: #160828;
|
|
189
|
+
|
|
190
|
+
/* ---------- Color · Amber (warn) — `--ck-*` ---------- */
|
|
191
|
+
--ck-amber-300: #ffd98a;
|
|
192
|
+
--ck-amber-400: #ffc14d;
|
|
193
|
+
--ck-amber-500: #f5a623;
|
|
194
|
+
|
|
195
|
+
/* ---------- Color · Rose (deny) — `--ck-*` ---------- */
|
|
196
|
+
--ck-rose-300: #ff8da4;
|
|
197
|
+
--ck-rose-400: #ff5f7d;
|
|
198
|
+
--ck-rose-500: #ff3860;
|
|
199
|
+
|
|
200
|
+
/* ---------- Color · Orange (interactive fire) — `--ck-*` ----------
|
|
201
|
+
The "firing" state of interactive elements — send-button
|
|
202
|
+
hover, composer focus accent, primary CTA hover when warm
|
|
203
|
+
is in the palette. */
|
|
204
|
+
--ck-orange-400: #ff8a3d;
|
|
205
|
+
--ck-orange-500: #f26b14;
|
|
206
|
+
|
|
207
|
+
/* ---------- Color · Theme primitives (`--ck-*`) ----------
|
|
208
|
+
Every literal colour the two theme blocks below use lives here,
|
|
209
|
+
so a semantic or role token is always a var() of a primitive or a
|
|
210
|
+
color-mix() of one, and a theme that swaps the primitives reaches
|
|
211
|
+
every token. Names follow the hue and a lightness step; `paper`
|
|
212
|
+
marks the deeper steps tuned to clear AA on the light ground. */
|
|
213
|
+
--ck-white: #ffffff;
|
|
214
|
+
--ck-black: #000000;
|
|
215
|
+
/* Dark-theme ink; the dark fg ladder is alphas of it. */
|
|
216
|
+
--ck-fog-100: #ececec;
|
|
217
|
+
/* Light-theme ink and grounds. */
|
|
218
|
+
--ck-navy-950: #0e1024;
|
|
219
|
+
--ck-paper-100: #f7f8fb;
|
|
220
|
+
--ck-paper-200: #f1f3f8;
|
|
221
|
+
--ck-paper-300: #eaedf4;
|
|
222
|
+
/* Preview-stage well (dark). */
|
|
223
|
+
--ck-stone-900: #151210;
|
|
224
|
+
--ck-stone-950: #0c0a09;
|
|
225
|
+
--ck-stone-1000: #0a0908;
|
|
226
|
+
/* Glyph on the bright mint live-check disc. */
|
|
227
|
+
--ck-mint-950: #06241a;
|
|
228
|
+
/* Paper hues: brand, signal, status, editorial and actor steps. */
|
|
229
|
+
--ck-paper-violet-500: #6041d8;
|
|
230
|
+
--ck-paper-violet-600: #5a28e1;
|
|
231
|
+
--ck-paper-violet-700: #4515b6;
|
|
232
|
+
--ck-paper-green-700: #006d3f;
|
|
233
|
+
--ck-paper-green-800: #005a34;
|
|
234
|
+
--ck-paper-jade-600: #1f8a63;
|
|
235
|
+
--ck-paper-amber-700: #965000;
|
|
236
|
+
--ck-paper-rose-600: #c01f3c;
|
|
237
|
+
--ck-paper-rose-700: #a3192f;
|
|
238
|
+
--ck-paper-cyan-700: #0e6b8f;
|
|
239
|
+
--ck-paper-brass-700: #905814;
|
|
240
|
+
--ck-paper-brass-800: #7d4f16;
|
|
241
|
+
--ck-paper-orange-700: #c2570f;
|
|
242
|
+
--ck-paper-indigo-600: #3f47b5;
|
|
243
|
+
/* Actor hues shared with Tailwind's emerald and violet steps. */
|
|
244
|
+
--ck-emerald-400: #34d399;
|
|
245
|
+
--ck-emerald-700: #047857;
|
|
246
|
+
--ck-purple-400: #a78bfa;
|
|
247
|
+
--ck-purple-500: #8b5cf6;
|
|
248
|
+
/* Lilac: the IdentiClaw accent (500, Checkpoint's styles/checkpoint/product-tokens.css)
|
|
249
|
+
and the brand-purple wash. */
|
|
250
|
+
--ck-lilac-200: #ccc8ff;
|
|
251
|
+
--ck-lilac-500: #827aff;
|
|
252
|
+
--ck-lilac-900: #3d3680;
|
|
253
|
+
/* Detection indicator steps (strong red, moderate yellow,
|
|
254
|
+
potential blue): text steps and their washes per theme, read by
|
|
255
|
+
Checkpoint's styles/checkpoint/product-tokens.css. */
|
|
256
|
+
--ck-red-50: #fef2f2;
|
|
257
|
+
--ck-red-400: #f87171;
|
|
258
|
+
--ck-red-600: #dc2626;
|
|
259
|
+
--ck-red-950: #450a0a;
|
|
260
|
+
--ck-yellow-50: #fefce8;
|
|
261
|
+
--ck-yellow-400: #facc15;
|
|
262
|
+
--ck-yellow-600: #ca8a04;
|
|
263
|
+
--ck-yellow-950: #422006;
|
|
264
|
+
--ck-blue-50: #eff6ff;
|
|
265
|
+
--ck-blue-400: #60a5fa;
|
|
266
|
+
--ck-blue-600: #2563eb;
|
|
267
|
+
--ck-blue-950: #172554;
|
|
268
|
+
/* Categorical chart palette, one set per theme. */
|
|
269
|
+
--ck-chart-paper-1: hsl(12 76% 61%);
|
|
270
|
+
--ck-chart-paper-2: hsl(173 58% 39%);
|
|
271
|
+
--ck-chart-paper-3: hsl(197 37% 24%);
|
|
272
|
+
--ck-chart-paper-4: hsl(43 74% 66%);
|
|
273
|
+
--ck-chart-paper-5: hsl(27 87% 67%);
|
|
274
|
+
--ck-chart-ink-1: hsl(225 67% 98%);
|
|
275
|
+
--ck-chart-ink-2: hsl(160 60% 45%);
|
|
276
|
+
--ck-chart-ink-3: hsl(207 80% 55%);
|
|
277
|
+
--ck-chart-ink-4: hsl(271 70% 60%);
|
|
278
|
+
--ck-chart-ink-5: hsl(197 60% 50%);
|
|
279
|
+
|
|
280
|
+
/* ---------- Blur ----------
|
|
281
|
+
Single modal-grade blur token consumed by Dialog + Sheet
|
|
282
|
+
overlays (and any future modal-class chrome). 12 px per the
|
|
283
|
+
v5 SSOT. */
|
|
284
|
+
--blur-modal: 12px;
|
|
285
|
+
|
|
286
|
+
/* ---------- Motion · timing curves ----------
|
|
287
|
+
NOTE: `--ease-out` / `--ease-in-out` intentionally override
|
|
288
|
+
Tailwind v4's default theme values — the DS curves are the
|
|
289
|
+
app-wide motion language. */
|
|
290
|
+
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
291
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
292
|
+
/* Spring with slight overshoot — used by the settle entry
|
|
293
|
+
gesture so lists/cards land with a small bounce rather than a
|
|
294
|
+
flat ease. */
|
|
295
|
+
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
296
|
+
/* Apple-sheet settle; deliberate, not --ease-out — chosen for the
|
|
297
|
+
"settles into place" panel feel (see Sheet.tsx chrome notes). */
|
|
298
|
+
--ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
|
|
299
|
+
/* Full-bleed takeover curve — a long, near-flat hold then a decisive
|
|
300
|
+
arrival. Deliberately heavier than --ease-sheet: a takeover replaces
|
|
301
|
+
the whole surface, so the motion has to read as the page itself
|
|
302
|
+
moving, not a panel sliding over it. Shared by every fullscreen
|
|
303
|
+
takeover (the branded consent/success/auth editors alias it as
|
|
304
|
+
--ease-flip; /activity's focus mode uses it directly) so the one
|
|
305
|
+
curve that defines the gesture lives in one place. */
|
|
306
|
+
--ease-takeover: cubic-bezier(0.7, 0, 0.16, 1);
|
|
307
|
+
/* Snap: an exponential out. Nearly all of the move lands in the first
|
|
308
|
+
fifth, then it settles long and soft, so motion reads swift without
|
|
309
|
+
looking cut off. The rail mark's attacks and its checkmark draw.
|
|
310
|
+
Not --ease-out: its attack is sharper on purpose (more of the move in
|
|
311
|
+
the first frames), which is what makes a short loop read as quick. */
|
|
312
|
+
--ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
|
|
313
|
+
/* Exit: accelerating, for what leaves or retracts, so it gathers speed
|
|
314
|
+
and gets out of the way. Gentler than a true mirror of --ease-snap,
|
|
315
|
+
whose start is so slow a short retract reads as a hitch. Named exit,
|
|
316
|
+
not in: Tailwind v4 already defines --ease-in. */
|
|
317
|
+
--ease-exit: cubic-bezier(0.55, 0, 0.75, 0.25);
|
|
318
|
+
|
|
319
|
+
/* ---------- Motion · durations (v5 canonical) ----------
|
|
320
|
+
Five rungs, strictly monotonic — `instant < fast < base <
|
|
321
|
+
medium < slow`. */
|
|
322
|
+
--duration-instant: 0.08s;
|
|
323
|
+
--duration-fast: 0.14s;
|
|
324
|
+
--duration-base: 0.18s;
|
|
325
|
+
--duration-medium: 0.26s;
|
|
326
|
+
--duration-slow: 0.45s;
|
|
327
|
+
/* Sheet slide gesture — outside the five rungs above because the
|
|
328
|
+
pair is asymmetric on purpose: slower settle-in, quicker
|
|
329
|
+
dismiss. Consumed by the checkpoint Sheet with --ease-sheet. */
|
|
330
|
+
--duration-sheet-open: 0.3s;
|
|
331
|
+
--duration-sheet-close: 0.2s;
|
|
332
|
+
/* Loop periods: the Skeleton shimmer pass and the canvas drift. */
|
|
333
|
+
--duration-shimmer: 1.6s;
|
|
334
|
+
--duration-drift: 48s;
|
|
335
|
+
|
|
336
|
+
/* ---------- Motion · named gestures (v5) ----------
|
|
337
|
+
Six gestures cover everything Checkpoint animates. Each gets
|
|
338
|
+
a timing token AND a matching .m-* utility class in
|
|
339
|
+
checkpoint.css (still dashboard-scoped). */
|
|
340
|
+
--motion-settle: 550ms var(--ease-spring); /* entry — list/card rise-in */
|
|
341
|
+
--motion-halo: 220ms var(--ease-out); /* focus ring */
|
|
342
|
+
--motion-commit: 1000ms var(--ease-out); /* CTA fires-to-white */
|
|
343
|
+
--motion-lift: 220ms var(--ease-out); /* row/card hover lift */
|
|
344
|
+
--motion-reveal: 320ms var(--ease-out); /* modal/sheet entry */
|
|
345
|
+
--motion-pulse: 1.8s var(--ease-in-out) infinite; /* live heartbeat */
|
|
346
|
+
|
|
347
|
+
/* ---------- Borders ---------- */
|
|
348
|
+
--border-width: 1px;
|
|
349
|
+
|
|
350
|
+
/* ---------- Radius — the v5 SSOT curve (GLOBAL) ----------
|
|
351
|
+
Adopted from the canonical standalone (ds.html) per Dylan,
|
|
352
|
+
superseding the earlier in-repo "hard corners" hold (which kept
|
|
353
|
+
sm 3 / md 6 / lg 10 while v5 shipped softer steps). Data
|
|
354
|
+
surfaces that want hard corners use `--radius-xs` explicitly
|
|
355
|
+
(tables, code, kbd — Rule 04). These beat Tailwind's derived
|
|
356
|
+
`--radius-sm/md/lg` (theme layer loses to this base-layer
|
|
357
|
+
:root); `rounded-xl` resolves via the @theme literal in
|
|
358
|
+
tailwind-bridge.css (16px). */
|
|
359
|
+
--radius-none: 0;
|
|
360
|
+
--radius-xs: 2px; /* hard data corners — tables, code, kbd, dots */
|
|
361
|
+
--radius-sm: 4px;
|
|
362
|
+
--radius-md: 8px; /* soft controls (chips, buttons, inputs) */
|
|
363
|
+
--radius-lg: 12px; /* cards, editorial */
|
|
364
|
+
--radius-full: 999px;
|
|
365
|
+
/* Chrome buttons — the ONE radius the SSOT `.btn` (checkpoint.css §4)
|
|
366
|
+
and the checkpoint <Button> primitive both consume, so the masthead
|
|
367
|
+
actions and the top-nav New button can never drift apart. 8px per
|
|
368
|
+
the 2026-05-21 product call: clearly rounded at 32px height without
|
|
369
|
+
reading pill-y. Promoted to :root here alongside the other radius
|
|
370
|
+
steps (was a scoped token on main). Points at --radius-md so the
|
|
371
|
+
button follows the control radius. It resolves here at :root, so
|
|
372
|
+
a subtree that changes only --radius-md keeps 8px buttons; set
|
|
373
|
+
--radius-btn there too. */
|
|
374
|
+
--radius-btn: var(--radius-md);
|
|
375
|
+
/* shadcn's base radius. The `rounded-sm/md/lg` utilities derive from
|
|
376
|
+
it (tailwind-bridge.css): 8px, 10px and 12px. 0.75rem is the
|
|
377
|
+
--radius-lg step at the default root size. */
|
|
378
|
+
--radius: 0.75rem;
|
|
379
|
+
|
|
380
|
+
/* ---------- Shadows · mode-invariant ----------
|
|
381
|
+
The xs–lg ladder is mode-dependent and lives in the LIGHT /
|
|
382
|
+
DARK semantic blocks below. `--shadow-xl` aliases `lg` for
|
|
383
|
+
legacy `var(--shadow-xl)` consumers. */
|
|
384
|
+
--shadow-none: none;
|
|
385
|
+
--shadow-glow: 0 0 8px currentColor; /* the only glow that ships */
|
|
386
|
+
--shadow-xl: var(--shadow-lg);
|
|
387
|
+
|
|
388
|
+
/* ---------- Type · families ----------
|
|
389
|
+
An app that loads its faces with next/font sets --font-ui (Inter),
|
|
390
|
+
--font-display (Manrope) and --font-geist-mono on <body> (Checkpoint's
|
|
391
|
+
app/layout.tsx does), which outranks these values on every element
|
|
392
|
+
below it. These are the stacks a page uses when nothing has set them. */
|
|
393
|
+
--font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
394
|
+
--font-display: var(--font-ui);
|
|
395
|
+
--font-mono: var(
|
|
396
|
+
--font-geist-mono,
|
|
397
|
+
'Geist Mono',
|
|
398
|
+
ui-monospace,
|
|
399
|
+
SFMono-Regular,
|
|
400
|
+
'SF Mono',
|
|
401
|
+
Menlo,
|
|
402
|
+
Consolas,
|
|
403
|
+
monospace
|
|
404
|
+
);
|
|
405
|
+
--font-editorial: var(--font-serif, 'Instrument Serif', Georgia, serif);
|
|
406
|
+
|
|
407
|
+
/* ---------- Type · sizes (Tailwind v4 --text-*) ----------
|
|
408
|
+
12px floor / 16px default (doctrine Rule 05) — display 56 /
|
|
409
|
+
h1 32 / h2 22 / body 16 / sm 14 / eyebrow 11. Promoted to
|
|
410
|
+
:root (flow step 3): these intentionally override Tailwind's
|
|
411
|
+
theme values for BOTH `var()` consumers and compiled `text-*`
|
|
412
|
+
utilities app-wide (this base-layer block beats the theme
|
|
413
|
+
layer at :root). Tailwind's --text-5xl/6xl/7xl are NOT
|
|
414
|
+
redefined. */
|
|
415
|
+
--text-xs: 12px;
|
|
416
|
+
--text-xs--line-height: 1.4;
|
|
417
|
+
--text-sm: 14px; /* body-small — matches Tailwind text-sm(14) */
|
|
418
|
+
--text-sm--line-height: 1.45; /* tabular data only */
|
|
419
|
+
--text-base: 16px; /* SSOT body default (Rule 05) — was 15 */
|
|
420
|
+
--text-base--line-height: 1.6; /* was 1.55 */
|
|
421
|
+
--text-md: 16px;
|
|
422
|
+
--text-md--line-height: 1.55;
|
|
423
|
+
--text-lg: 18px;
|
|
424
|
+
--text-lg--line-height: 1.4;
|
|
425
|
+
--text-xl: 22px;
|
|
426
|
+
--text-xl--line-height: 1.3;
|
|
427
|
+
--text-2xl: 32px; /* SSOT h1 — was 28 */
|
|
428
|
+
--text-2xl--line-height: 1.1; /* was 1.2 */
|
|
429
|
+
--text-3xl: 38px;
|
|
430
|
+
--text-3xl--line-height: 1.1;
|
|
431
|
+
--text-4xl: 56px; /* SSOT display — was 44 */
|
|
432
|
+
--text-4xl--line-height: 1.02; /* was 1.05 */
|
|
433
|
+
|
|
434
|
+
/* Chrome labels — mono caps. */
|
|
435
|
+
--text-eyebrow: 11px; /* SSOT — was 10 */
|
|
436
|
+
--text-pill: 9px;
|
|
437
|
+
/* The mono caps chips: HumanTier, IdTier and HumanAssurance. */
|
|
438
|
+
--text-chip: 9.5px;
|
|
439
|
+
|
|
440
|
+
/* Role steps between and around the ladder rungs above.
|
|
441
|
+
Mono: mono metadata (Tooltip text, Kbd, the Popover path, a tab
|
|
442
|
+
count, the table header). A product surface may lift the eyebrow
|
|
443
|
+
for its own pages; mono is the step to read where 11px must hold.
|
|
444
|
+
Control: the label of a Button, Label, Field, Select,
|
|
445
|
+
Switch, SegmentedControl or Textarea; the line height is
|
|
446
|
+
Textarea's, and the xs Button and Tag read control-xs. Caption:
|
|
447
|
+
the small line of a floating surface (the Popover title, the Toast
|
|
448
|
+
description). Stat: a Card's big number. Code: inline code,
|
|
449
|
+
relative to the text around it. */
|
|
450
|
+
--text-mono: 11px;
|
|
451
|
+
--text-control: 13px;
|
|
452
|
+
--text-control--line-height: 1.55;
|
|
453
|
+
--text-control-xs: 11px;
|
|
454
|
+
--text-caption: 12.5px;
|
|
455
|
+
--text-caption--line-height: 1.45;
|
|
456
|
+
--text-stat: 24px;
|
|
457
|
+
--text-code: 0.875em;
|
|
458
|
+
|
|
459
|
+
/* Marketing-only fluid sizes (kept for editorial callers). */
|
|
460
|
+
--text-marketing-display: clamp(48px, 6.5vw, 88px);
|
|
461
|
+
--text-marketing-h1: clamp(36px, 4.4vw, 56px);
|
|
462
|
+
/* EditorialHeading: 40px to 72px. */
|
|
463
|
+
--text-editorial: clamp(2.5rem, 5vw, 4.5rem);
|
|
464
|
+
--text-editorial--line-height: 1.02;
|
|
465
|
+
|
|
466
|
+
/* ---------- Type · weights ---------- */
|
|
467
|
+
--font-weight-thin: 300;
|
|
468
|
+
--font-weight-regular: 400;
|
|
469
|
+
--font-weight-book: 450;
|
|
470
|
+
--font-weight-medium: 500;
|
|
471
|
+
--font-weight-semi: 600;
|
|
472
|
+
|
|
473
|
+
/* ---------- Type · tracking ----------
|
|
474
|
+
Aligned with v4 SSOT spec: display -0.028, h1 -0.022, h2/h3
|
|
475
|
+
-0.012, body -0.005, eyebrow 0.18, pill 0.22. The earlier
|
|
476
|
+
`--tracking-display: -0.025` was a sub-spec value from the
|
|
477
|
+
pre-parity scale; bumped to -0.028 to match SSOT. `h1` gets
|
|
478
|
+
its own token now since it sits between `--tracking-display`
|
|
479
|
+
and `--tracking-tight`. */
|
|
480
|
+
--tracking-display: -0.028em; /* SSOT — was -0.025 */
|
|
481
|
+
--tracking-h1: -0.022em; /* SSOT — new */
|
|
482
|
+
--tracking-tight: -0.012em;
|
|
483
|
+
--tracking-body: -0.005em;
|
|
484
|
+
--tracking-normal: 0em;
|
|
485
|
+
--tracking-wide: 0.06em;
|
|
486
|
+
--tracking-eyebrow: 0.18em;
|
|
487
|
+
--tracking-pill: 0.22em;
|
|
488
|
+
/* Mono metadata (Tooltip text, Avatar initials), mono caps section
|
|
489
|
+
labels (CardLabel, the DropdownMenu label) and a Card's stat. */
|
|
490
|
+
--tracking-mono: 0.04em;
|
|
491
|
+
--tracking-label: 0.14em;
|
|
492
|
+
--tracking-stat: -0.015em;
|
|
493
|
+
|
|
494
|
+
/* ---------- Type · leading ----------
|
|
495
|
+
Tailwind's leading-* utilities cover the body steps. Code wells
|
|
496
|
+
(CodeBlock, InstallCommand) set their lines looser. */
|
|
497
|
+
--leading-code: 1.7;
|
|
498
|
+
|
|
499
|
+
/* ---------- Spacing · 4px grid (Tailwind --spacing-*) ----------
|
|
500
|
+
Numbered steps only. The bare `--spacing` base unit stays
|
|
501
|
+
dashboard-scoped: Tailwind's spacing utilities compile to
|
|
502
|
+
`calc(var(--spacing) * N)`, and overriding the global unit
|
|
503
|
+
with a px value would silently flip every padding/margin
|
|
504
|
+
utility from rem-based to px-based (breaking user font-size
|
|
505
|
+
scaling) for zero visual gain at default settings. */
|
|
506
|
+
--spacing-0: 0px; /* with its unit, so calc() can add it to a length */
|
|
507
|
+
--spacing-1: 4px;
|
|
508
|
+
--spacing-2: 8px;
|
|
509
|
+
--spacing-3: 12px;
|
|
510
|
+
--spacing-4: 16px;
|
|
511
|
+
--spacing-5: 20px;
|
|
512
|
+
--spacing-6: 24px;
|
|
513
|
+
--spacing-8: 32px;
|
|
514
|
+
--spacing-10: 40px;
|
|
515
|
+
--spacing-12: 48px;
|
|
516
|
+
--spacing-14: 56px;
|
|
517
|
+
--spacing-16: 64px;
|
|
518
|
+
--spacing-20: 80px;
|
|
519
|
+
|
|
520
|
+
/* ---------- Component · mode-invariant ----------
|
|
521
|
+
Values the shipped pieces read in both themes: the canvas
|
|
522
|
+
texture hues (canvas.css), the Switch thumb and the Badge warn
|
|
523
|
+
count. The registry theme ships this sheet, so a consumer gets
|
|
524
|
+
them with the primitives. */
|
|
525
|
+
/* Canvas texture hues. Each layer's alpha is a --tex-* knob
|
|
526
|
+
the bg tier sets per theme; these are the hues it scales. Aurora:
|
|
527
|
+
violet, lavender and peach radials screened over the canvas. Wisps:
|
|
528
|
+
iris and indigo corner washes. Glow: the warm brass floor. */
|
|
529
|
+
--tex-hue-aurora-a: var(--ck-violet-400);
|
|
530
|
+
--tex-hue-aurora-b: var(--ck-purple-400);
|
|
531
|
+
--tex-hue-aurora-c: var(--color-cream-500);
|
|
532
|
+
--tex-hue-wisp-a: var(--color-iris-400);
|
|
533
|
+
--tex-hue-wisp-b: color-mix(in srgb, var(--ck-violet-400) 70%, var(--color-vouched-400));
|
|
534
|
+
--tex-hue-glow: color-mix(in srgb, var(--color-brass-300) 50%, var(--color-brass-400));
|
|
535
|
+
--tex-hue-vignette: var(--ck-black);
|
|
536
|
+
--tex-hue-dots: var(--ck-white);
|
|
537
|
+
|
|
538
|
+
/* ---------- Switch thumb ----------
|
|
539
|
+
The thumb is white on both the brand-filled and the off track, in
|
|
540
|
+
both themes, with a soft drop under it. */
|
|
541
|
+
--switch-thumb: var(--ck-white);
|
|
542
|
+
--switch-thumb-shadow: 0 1px 2px color-mix(in srgb, var(--ck-black) 30%, transparent);
|
|
543
|
+
|
|
544
|
+
/* ---------- Notification badge · warn tone ----------
|
|
545
|
+
The count is bright amber with ink digits in both themes (12.40:1).
|
|
546
|
+
The theme --warn fill goes deep amber on paper, where ink digits read
|
|
547
|
+
3.12:1, so the count does not follow it. The bare dot keeps --warn. */
|
|
548
|
+
--badge-warn-fill: var(--ck-amber-400);
|
|
549
|
+
--badge-warn-ink: var(--color-ink-1000);
|
|
550
|
+
|
|
551
|
+
/* ---------- Component · sizes ----------
|
|
552
|
+
Sizes one shipped piece reads that sit off the shared type,
|
|
553
|
+
tracking and spacing ladders. A design pass can move any of them
|
|
554
|
+
onto a ladder step by changing its value here. */
|
|
555
|
+
/* Avatar initials, one per avatar size (22, 32 and 40px). */
|
|
556
|
+
--avatar-text-sm: 9.5px;
|
|
557
|
+
--avatar-text-md: 11.5px;
|
|
558
|
+
--avatar-text-lg: 13px;
|
|
559
|
+
/* The Badge count and the Forge level pill: inline padding. The
|
|
560
|
+
Badge count's size. */
|
|
561
|
+
--chip-pad-x: 5px;
|
|
562
|
+
--badge-count-text: 10.5px;
|
|
563
|
+
/* The gap between a chip's mark and its label: Forge, HumanTier,
|
|
564
|
+
IdTier and HumanAssurance. Forge's tracking. */
|
|
565
|
+
--chip-gap: 5px;
|
|
566
|
+
--forge-tracking: 0.05em;
|
|
567
|
+
/* The Popover's mono caps footer. */
|
|
568
|
+
--popover-meta-text: 10px;
|
|
569
|
+
--popover-meta-tracking: 0.08em;
|
|
570
|
+
/* The tabs-trigger contract (component-contracts.css): its label
|
|
571
|
+
and the bottom padding that seats the 2px underline. */
|
|
572
|
+
--tab-trigger-text: 15px;
|
|
573
|
+
--tab-trigger-pad-bottom: 13px;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* ============================================================
|
|
577
|
+
LAYER 1b · PRIMITIVES — DASHBOARD-SCOPED
|
|
578
|
+
What stays scoped: the colliding color-ramp aliases (back to the
|
|
579
|
+
global `--ck-*` definitions) and the bare `--spacing` base unit.
|
|
580
|
+
The metric scales (type/spacing steps/radius/weights/tracking)
|
|
581
|
+
live in the GLOBAL primitives block above.
|
|
582
|
+
============================================================ */
|
|
583
|
+
[data-theme*='checkpoint'] {
|
|
584
|
+
/* ---------- Colliding ramp aliases → global `--ck-*` ---------- */
|
|
585
|
+
--color-violet-50: var(--ck-violet-50);
|
|
586
|
+
--color-violet-100: var(--ck-violet-100);
|
|
587
|
+
--color-violet-200: var(--ck-violet-200);
|
|
588
|
+
--color-violet-300: var(--ck-violet-300);
|
|
589
|
+
--color-violet-400: var(--ck-violet-400);
|
|
590
|
+
--color-violet-500: var(--ck-violet-500);
|
|
591
|
+
--color-violet-600: var(--ck-violet-600);
|
|
592
|
+
--color-violet-900: var(--ck-violet-900);
|
|
593
|
+
--color-amber-300: var(--ck-amber-300);
|
|
594
|
+
--color-amber-400: var(--ck-amber-400);
|
|
595
|
+
--color-amber-500: var(--ck-amber-500);
|
|
596
|
+
--color-rose-300: var(--ck-rose-300);
|
|
597
|
+
--color-rose-400: var(--ck-rose-400);
|
|
598
|
+
--color-rose-500: var(--ck-rose-500);
|
|
599
|
+
--color-orange-400: var(--ck-orange-400);
|
|
600
|
+
--color-orange-500: var(--ck-orange-500);
|
|
601
|
+
|
|
602
|
+
/* ---------- Type · families ----------
|
|
603
|
+
The font families are global (LAYER 1). Do not redeclare
|
|
604
|
+
--font-display or --font-ui here: a `var()` fallback that names
|
|
605
|
+
the same property in the same scope is a guaranteed-invalid cycle
|
|
606
|
+
(Cursor-flagged in PR #2507 review). */
|
|
607
|
+
|
|
608
|
+
/* ---------- Spacing · base unit ----------
|
|
609
|
+
Kept scoped on purpose (see the promoted `--spacing-*` note
|
|
610
|
+
in the GLOBAL primitives block): globally it would re-base
|
|
611
|
+
every Tailwind spacing utility from rem to px. */
|
|
612
|
+
--spacing: 4px; /* base unit (Tailwind v4 style) */
|
|
613
|
+
|
|
614
|
+
/* ---------- Type sizes / weights / tracking / spacing steps ----------
|
|
615
|
+
Promoted to :root with the metric pass (flow step 3) — see the
|
|
616
|
+
GLOBAL primitives block above. Nothing redefined here; scoped
|
|
617
|
+
consumers inherit the same steps. */
|
|
618
|
+
|
|
619
|
+
/* ---------- Radius ----------
|
|
620
|
+
Promoted to :root in step 3 (global element/metric pass) —
|
|
621
|
+
see the GLOBAL primitives block above. Nothing redefined
|
|
622
|
+
here; scoped consumers inherit the same steps. */
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* ============================================================
|
|
626
|
+
LAYER 2 · SEMANTICS — DARK
|
|
627
|
+
Dark mode: the `.dark` class, on <html> from next-themes or on any
|
|
628
|
+
element that forces dark for its subtree. Pages consume these, not
|
|
629
|
+
the primitives.
|
|
630
|
+
|
|
631
|
+
Cascade note: the LIGHT block below also matches <html> through
|
|
632
|
+
`:root` at the same (0,1,0) specificity, so `:root.dark` is listed to
|
|
633
|
+
win on <html class="dark"> whatever the source order. The last two
|
|
634
|
+
selectors are the deprecated stamp, `data-theme='checkpoint'` with no
|
|
635
|
+
mode class; `:where()` keeps their specificity that of the attribute
|
|
636
|
+
alone.
|
|
637
|
+
|
|
638
|
+
Derived washes: most -soft, -faint, -line, -glow and -bg alphas
|
|
639
|
+
below are color-mix() of their base, so a theme retunes them by
|
|
640
|
+
setting the base. var() resolves on the element this block
|
|
641
|
+
matches, so set the base on the element that carries the theme
|
|
642
|
+
scope. A base set on a plain descendant does not reach the washes
|
|
643
|
+
that descendant inherits; re-declare them there too.
|
|
644
|
+
============================================================ */
|
|
645
|
+
.dark,
|
|
646
|
+
:root.dark,
|
|
647
|
+
[data-theme='checkpoint']:where(:not(.light)),
|
|
648
|
+
:root[data-theme='checkpoint']:where(:not(.light)) {
|
|
649
|
+
color-scheme: dark;
|
|
650
|
+
|
|
651
|
+
/* ---------- Surface ladder ----------
|
|
652
|
+
canvas → surface → elevated → hover. Each step is a real
|
|
653
|
+
shift, not a hairline. */
|
|
654
|
+
--bg-canvas: var(--color-ink-1000);
|
|
655
|
+
--bg-surface: var(--color-ink-950);
|
|
656
|
+
--bg-elevated: var(--color-ink-900);
|
|
657
|
+
--bg-hover: var(--color-ink-800);
|
|
658
|
+
--bg-input: color-mix(in srgb, var(--ck-white) 2.5%, transparent);
|
|
659
|
+
|
|
660
|
+
/* ---------- Foreground (text/icon) ladder ---------- */
|
|
661
|
+
--fg-primary: var(--ck-fog-100);
|
|
662
|
+
/* Vouched lockup fill: brand rule is blue on light, white on dark. */
|
|
663
|
+
--kya-mark: var(--ck-white);
|
|
664
|
+
--fg-secondary: color-mix(in srgb, var(--ck-fog-100) 78%, transparent);
|
|
665
|
+
--fg-tertiary: color-mix(in srgb, var(--ck-fog-100) 56%, transparent);
|
|
666
|
+
/* 49% is the lowest alpha that clears 4.5:1 on canvas, surface and
|
|
667
|
+
elevated (4.52:1 at worst, against 5.59:1 for --fg-tertiary). Only
|
|
668
|
+
a disabled control drops below it, to --fg-disabled. */
|
|
669
|
+
--fg-muted: color-mix(in srgb, var(--ck-fog-100) 49%, transparent);
|
|
670
|
+
--fg-disabled: color-mix(in srgb, var(--ck-fog-100) 20%, transparent);
|
|
671
|
+
/* Active table-sort markers stay warm/cream on ink. */
|
|
672
|
+
--table-sort-active: var(--highlight);
|
|
673
|
+
|
|
674
|
+
/* ---------- Borders ---------- */
|
|
675
|
+
--border-subtle: color-mix(in srgb, var(--ck-white) 7%, transparent);
|
|
676
|
+
--border-default: color-mix(in srgb, var(--ck-white) 13%, transparent);
|
|
677
|
+
--border-strong: color-mix(in srgb, var(--ck-white) 22%, transparent);
|
|
678
|
+
--border-focus: color-mix(in srgb, var(--ck-white) 55%, transparent);
|
|
679
|
+
/* Keyboard focus, and nothing else: the outline every control draws on
|
|
680
|
+
:focus-visible. It takes the brand's text step: a focus outline needs
|
|
681
|
+
3:1 (non-text contrast) on canvas, card and elevated grounds, and the
|
|
682
|
+
text step holds 4.5:1 there in both themes. */
|
|
683
|
+
--ring: var(--brand-text);
|
|
684
|
+
|
|
685
|
+
/* ---------- Tooltip semantics ---------- */
|
|
686
|
+
--tooltip-bg: var(--bg-elevated);
|
|
687
|
+
--tooltip-text: var(--fg-primary);
|
|
688
|
+
--tooltip-border: var(--border-default);
|
|
689
|
+
|
|
690
|
+
/* ---------- Tinted surfaces (subtle accents) ---------- */
|
|
691
|
+
--surface-subtle: color-mix(in srgb, var(--ck-white) 2.5%, transparent);
|
|
692
|
+
--surface-default: color-mix(in srgb, var(--ck-white) 4.5%, transparent);
|
|
693
|
+
--surface-strong: color-mix(in srgb, var(--ck-white) 7%, transparent);
|
|
694
|
+
|
|
695
|
+
/* ---------- Action (@deprecated for CTAs — Decision B) ----------
|
|
696
|
+
Was "primary CTA = white-on-ink". Primary CTAs are now brand-violet
|
|
697
|
+
(`--brand`); this pair is retained ONLY for the remaining non-button
|
|
698
|
+
consumers (surface washes, non-button tokens). Do not use for buttons. */
|
|
699
|
+
--action-bg: var(--ck-white);
|
|
700
|
+
--action-fg: var(--color-ink-1000);
|
|
701
|
+
--action-bg-hover: color-mix(in srgb, var(--action-bg) 92%, transparent);
|
|
702
|
+
/* Derived from --action-bg so a theme retunes it by setting the base. */
|
|
703
|
+
--action-bg-soft: color-mix(in srgb, var(--action-bg) 6%, transparent);
|
|
704
|
+
--action-line: color-mix(in srgb, var(--action-bg) 22%, transparent);
|
|
705
|
+
|
|
706
|
+
/* Vouched byline raster (CheckpointWordmark lockup): the PNG can't
|
|
707
|
+
ride the --cp-* fill vars, so on ink it's flattened to a white
|
|
708
|
+
silhouette (brightness(0) collapses the palette, invert lifts it)
|
|
709
|
+
and muted to match the byline's 70% "by". The mute lives in the
|
|
710
|
+
filter, not on the row, so paper keeps the mark full-strength. */
|
|
711
|
+
--cp-byline-filter: brightness(0) invert(1) opacity(0.7);
|
|
712
|
+
|
|
713
|
+
/* ---------- Signal — mint, brand state color ---------- */
|
|
714
|
+
--signal: var(--color-mint-400);
|
|
715
|
+
--signal-hover: var(--color-mint-300);
|
|
716
|
+
/* Washes derive from --signal so a theme retunes them by setting the base. */
|
|
717
|
+
--signal-soft: color-mix(in srgb, var(--signal) 10%, transparent);
|
|
718
|
+
--signal-line: color-mix(in srgb, var(--signal) 40%, transparent);
|
|
719
|
+
--signal-text: var(--signal);
|
|
720
|
+
--on-signal: var(--color-ink-1000);
|
|
721
|
+
|
|
722
|
+
/* ---------- Signature — proof/key fingerprint hue ----------
|
|
723
|
+
Deep mint matching the "Signed Audit" design. Its own token so the
|
|
724
|
+
proof-waveform hue can be retuned without disturbing --signal/--allow. */
|
|
725
|
+
--signature: var(--color-mint-500);
|
|
726
|
+
--signature-text: var(--signature);
|
|
727
|
+
|
|
728
|
+
/* ---------- Live-check disc — deploy flow "<name> is live" checkmark ----------
|
|
729
|
+
Dark keeps the original bright mint-300→mint-500 gradient + near-black
|
|
730
|
+
glyph verbatim (approved look); the light override below swaps to the
|
|
731
|
+
DS success wash instead of letting this bright gradient leak onto paper. */
|
|
732
|
+
--live-check-bg: linear-gradient(to bottom right, var(--color-mint-300), var(--color-mint-500));
|
|
733
|
+
--live-check-fg: var(--ck-mint-950);
|
|
734
|
+
|
|
735
|
+
/* ---------- Status — exactly four ---------- */
|
|
736
|
+
/* Each -soft / -line derives from its status base so a theme
|
|
737
|
+
retunes the pair by setting the base. */
|
|
738
|
+
--allow: var(--color-mint-400);
|
|
739
|
+
--allow-soft: color-mix(in srgb, var(--allow) 10%, transparent);
|
|
740
|
+
--allow-line: color-mix(in srgb, var(--allow) 40%, transparent);
|
|
741
|
+
/* Each status base is text-safe on ink (5.3:1 or more on canvas,
|
|
742
|
+
surface and elevated), so its text step is the base. */
|
|
743
|
+
--allow-text: var(--allow);
|
|
744
|
+
|
|
745
|
+
--warn: var(--ck-amber-400);
|
|
746
|
+
--warn-soft: color-mix(in srgb, var(--warn) 12%, transparent);
|
|
747
|
+
--warn-line: color-mix(in srgb, var(--warn) 42%, transparent);
|
|
748
|
+
--warn-text: var(--warn);
|
|
749
|
+
|
|
750
|
+
--deny: var(--ck-rose-500);
|
|
751
|
+
--deny-soft: color-mix(in srgb, var(--deny) 12%, transparent);
|
|
752
|
+
--deny-line: color-mix(in srgb, var(--deny) 40%, transparent);
|
|
753
|
+
--deny-text: var(--deny);
|
|
754
|
+
/* Text on a solid deny fill + the hover step (rose-400, one
|
|
755
|
+
step lighter — same convention as --signal-hover). Added for
|
|
756
|
+
the global shadcn `--destructive*` mapping in semantic-bindings.css. */
|
|
757
|
+
--on-deny: var(--ck-white);
|
|
758
|
+
--deny-hover: var(--ck-rose-400);
|
|
759
|
+
/* The surface for a solid deny fill that carries --on-deny text (Button
|
|
760
|
+
danger, the Badge count). White on --deny reads 3.51:1, under AA, so
|
|
761
|
+
the fill mixes in 20% of the ink canvas: about #cd2e4f, where white
|
|
762
|
+
reads 5.1:1. --deny stays the deny text, glyph and border color. The
|
|
763
|
+
light value sits in its own rule after this block. */
|
|
764
|
+
--deny-fill: color-mix(in srgb, var(--deny) 80%, var(--color-ink-1000));
|
|
765
|
+
|
|
766
|
+
--info: var(--color-iris-400);
|
|
767
|
+
--info-soft: color-mix(in srgb, var(--info) 12%, transparent);
|
|
768
|
+
--info-line: color-mix(in srgb, var(--info) 40%, transparent);
|
|
769
|
+
--info-text: var(--info);
|
|
770
|
+
|
|
771
|
+
/* ---------- Editorial brass ---------- */
|
|
772
|
+
--brass: var(--color-brass-400);
|
|
773
|
+
/* The lighter brass step, for editorial text: 11.6:1 on ink. */
|
|
774
|
+
--brass-text: var(--color-brass-300);
|
|
775
|
+
/* Kept as literals, not derived: hi-ai re-points --brass to
|
|
776
|
+
--highlight on its root, which also carries this scope, so a
|
|
777
|
+
derived --brass-line would turn cream there. */
|
|
778
|
+
--brass-soft: color-mix(in srgb, var(--color-brass-400) 10%, transparent);
|
|
779
|
+
--brass-line: color-mix(in srgb, var(--color-brass-400) 32%, transparent);
|
|
780
|
+
|
|
781
|
+
/* ---------- Brand · PRODUCT-context only (Rule 03) ----------
|
|
782
|
+
The supernova violet system. Active in dashboard / app
|
|
783
|
+
surfaces. Distinct from `--signal`: signal is state ("this is
|
|
784
|
+
live"), brand is identity ("this is Checkpoint"). Both can
|
|
785
|
+
sit on the same page without conflict because they answer
|
|
786
|
+
different questions. */
|
|
787
|
+
--brand: var(--ck-violet-500);
|
|
788
|
+
--brand-hover: var(--ck-violet-400);
|
|
789
|
+
/* Brand text and icons: --brand (#5527b8) reads 2.3:1 on ink and
|
|
790
|
+
--brand-hover (#7340e0) 3.4:1; violet-300 reads 8.1:1 or more on
|
|
791
|
+
canvas, surface and elevated. */
|
|
792
|
+
--brand-text: var(--ck-violet-300);
|
|
793
|
+
/* Soft, faint and glow derive from --brand so a theme retunes them
|
|
794
|
+
by setting the base. --brand-line stays a literal (see below). */
|
|
795
|
+
--brand-soft: color-mix(in srgb, var(--brand) 18%, transparent);
|
|
796
|
+
--brand-faint: color-mix(in srgb, var(--brand) 10%, transparent);
|
|
797
|
+
/* Intentionally derived from --brand-hover (#7340e0 = rgb 115, 64,
|
|
798
|
+
224), NOT from --brand. Used for focus rings + hover borders,
|
|
799
|
+
which sit on the dark canvas alongside a translucent --brand-
|
|
800
|
+
soft halo — the LIGHTER violet variant carries better visual
|
|
801
|
+
weight against ink than --brand's deeper hue would.
|
|
802
|
+
Mirrors v5 SSOT verbatim; the light-mode `--brand-line` below
|
|
803
|
+
swaps to --brand's RGB for the symmetric reason (deeper on
|
|
804
|
+
paper). Documented because cursor bugbot flags the RGB drift
|
|
805
|
+
against the other --brand-* family members. */
|
|
806
|
+
--brand-line: color-mix(in srgb, var(--ck-violet-400) 34%, transparent);
|
|
807
|
+
--brand-glow: color-mix(in srgb, var(--brand) 55%, transparent);
|
|
808
|
+
--on-brand: var(--ck-white);
|
|
809
|
+
|
|
810
|
+
/* Accent: emphasis that isn't an action, such as a selected item, a
|
|
811
|
+
count or a highlighted label. It is the brand family in every scope;
|
|
812
|
+
the main action is --primary and keyboard focus is --ring. shadcn
|
|
813
|
+
names the same token, so this family is its definition too. */
|
|
814
|
+
--accent: var(--brand);
|
|
815
|
+
--accent-hover: var(--brand-hover);
|
|
816
|
+
--accent-soft: var(--brand-soft);
|
|
817
|
+
--accent-line: var(--brand-line);
|
|
818
|
+
--accent-glow: var(--brand-glow);
|
|
819
|
+
--accent-text: var(--brand-text);
|
|
820
|
+
--on-accent: var(--on-brand);
|
|
821
|
+
|
|
822
|
+
/* Link text: the brand's text step on ink. */
|
|
823
|
+
--link: var(--brand-text);
|
|
824
|
+
|
|
825
|
+
/* ---------- Inline `<code>` chip ----------
|
|
826
|
+
Moved here from globals.css's legacy `.dark`-class-only block: this
|
|
827
|
+
trio is consumed via `var()` indirection (--brand-text/-faint/-line), and
|
|
828
|
+
CSS resolves those nested references using the value cascaded to
|
|
829
|
+
whichever element the *declaring* rule matches. Declared only on
|
|
830
|
+
<html>, they would freeze to its mode, so a `<code>` chip inside a
|
|
831
|
+
scope whose mode differs from <html> (the pre-hydration window in
|
|
832
|
+
shell/theme.ts, or any surface that forces a mode) would render
|
|
833
|
+
light-mode text on a dark-mode wash. Declaring them here, alongside
|
|
834
|
+
the rest of the DS vocabulary, makes them resolve against the
|
|
835
|
+
nearest scope like everything else. */
|
|
836
|
+
--code-bg: var(--brand-faint);
|
|
837
|
+
--code-text: var(--brand-text);
|
|
838
|
+
--code-border: var(--brand-line);
|
|
839
|
+
|
|
840
|
+
/* ---------- Code well steps ----------
|
|
841
|
+
The part of the --code-block-* family each theme block declares (the
|
|
842
|
+
rest, hover included, is LAYER 2.6 below). ink-800 lifts about 1.15:1
|
|
843
|
+
off the ink-1000 canvas, the separation the shared Default code block
|
|
844
|
+
has. Hover (ink-700) and surface step one and two ink steps lighter.
|
|
845
|
+
The light block declares the same two steps, so the well is one dark
|
|
846
|
+
block in both themes. Both theme blocks declare these because the
|
|
847
|
+
light block's :root also matches <html class="dark">, so a light-only
|
|
848
|
+
value would reach dark. */
|
|
849
|
+
--code-block-bg: var(--color-ink-800);
|
|
850
|
+
--code-block-surface: var(--color-ink-600);
|
|
851
|
+
|
|
852
|
+
/* ---------- Bare <pre> well ----------
|
|
853
|
+
What the unlayered bare-`pre` rules in Checkpoint's globals.css and
|
|
854
|
+
component-contracts.css paint onto every pre that is not a code
|
|
855
|
+
component of its own. In dark it IS the code well (the --code-block-*
|
|
856
|
+
family, above and in LAYER 2.6 below), so a bare pre and a DS
|
|
857
|
+
CodeBlock share one well and one soft hairline. The light block
|
|
858
|
+
gives it a pale well instead, because most bare pres (JSON dumps, error
|
|
859
|
+
stacks, admin viewers) carry light-theme text that would vanish on the
|
|
860
|
+
dark code well. A pre that is part of a --code-block-* panel opts back
|
|
861
|
+
into the code well by setting this pair to the family, e.g.
|
|
862
|
+
`[--pre-well-bg:var(--code-block-bg)]`. */
|
|
863
|
+
--pre-well-bg: var(--code-block-bg);
|
|
864
|
+
--pre-well-border: var(--code-block-border);
|
|
865
|
+
|
|
866
|
+
/* ---------- Highlight · cream, single "hero" accent (Rule 04) ----------
|
|
867
|
+
ONE placement per view — the hero accent word, the hero
|
|
868
|
+
numeric, the watch-point border on a critical callout. If it
|
|
869
|
+
appears three times on a page, it's no longer a highlight.
|
|
870
|
+
Light mode swaps the role to brass via the override block. */
|
|
871
|
+
--highlight: var(--color-cream-400);
|
|
872
|
+
/* Washes derive from --highlight so a theme retunes them by setting the base. */
|
|
873
|
+
--highlight-soft: color-mix(in srgb, var(--highlight) 10%, transparent);
|
|
874
|
+
--highlight-line: color-mix(in srgb, var(--highlight) 32%, transparent);
|
|
875
|
+
--highlight-text: var(--highlight);
|
|
876
|
+
|
|
877
|
+
/* ---------- Tab underline · the moving active-tab indicator ----------
|
|
878
|
+
Cream on dark / violet on light (set in the light override block).
|
|
879
|
+
A dedicated token because no existing single token resolves to that
|
|
880
|
+
pair — --highlight goes brass on light, --brand is violet on both. */
|
|
881
|
+
--tab-underline: var(--highlight);
|
|
882
|
+
|
|
883
|
+
/* ---------- Warm · peach + orange, recurring callouts ----------
|
|
884
|
+
Functional warm pair. Peach = static (active nav icon,
|
|
885
|
+
watch-point left border). Orange = interactive ("firing":
|
|
886
|
+
send-button hover, composer focus). */
|
|
887
|
+
--warm: var(--color-peach-400);
|
|
888
|
+
--warm-strong: var(--ck-orange-400);
|
|
889
|
+
/* Washes derive from --warm so a theme retunes them by setting the base. */
|
|
890
|
+
--warm-soft: color-mix(in srgb, var(--warm) 14%, transparent);
|
|
891
|
+
--warm-line: color-mix(in srgb, var(--warm) 38%, transparent);
|
|
892
|
+
--warm-text: var(--warm);
|
|
893
|
+
|
|
894
|
+
/* ---------- Data series ----------
|
|
895
|
+
The five categorical hues behind the shadcn --chart-1 … --chart-5
|
|
896
|
+
names (semantic-bindings.css). */
|
|
897
|
+
--series-1: var(--ck-chart-ink-1);
|
|
898
|
+
--series-2: var(--ck-chart-ink-2);
|
|
899
|
+
--series-3: var(--ck-chart-ink-3);
|
|
900
|
+
--series-4: var(--ck-chart-ink-4);
|
|
901
|
+
--series-5: var(--ck-chart-ink-5);
|
|
902
|
+
|
|
903
|
+
/* ---------- Shadows — flat by default (dark ladder) ---------- */
|
|
904
|
+
--shadow-xs: 0 1px 0 color-mix(in srgb, var(--ck-black) 40%, transparent);
|
|
905
|
+
--shadow-sm: 0 2px 6px -2px color-mix(in srgb, var(--ck-black) 35%, transparent);
|
|
906
|
+
--shadow-md: 0 8px 24px -12px color-mix(in srgb, var(--ck-black) 55%, transparent);
|
|
907
|
+
--shadow-lg: 0 32px 80px -30px color-mix(in srgb, var(--ck-black) 85%, transparent);
|
|
908
|
+
|
|
909
|
+
/* ---------- Overlay scrim (modal/sheet backdrop) ----------
|
|
910
|
+
Ink veil + --blur-modal behind floating chrome (P2 of the
|
|
911
|
+
token-architecture plan). Replaces shadcn's bg-black/50. */
|
|
912
|
+
--overlay-scrim: color-mix(in srgb, var(--color-ink-1000) 62%, transparent);
|
|
913
|
+
|
|
914
|
+
/* ---------- Preview stage ----------
|
|
915
|
+
The well a customer-screen preview sits in (the Auth page's consent
|
|
916
|
+
and success cards, and the screen editor canvas), plus the glass
|
|
917
|
+
behind the status pill floating on it. The screen inside keeps its
|
|
918
|
+
own paper palette; only the stage follows the theme. */
|
|
919
|
+
--preview-stage: linear-gradient(180deg, var(--ck-stone-950) 0%, var(--ck-stone-900) 100%);
|
|
920
|
+
--preview-stage-glass: color-mix(in srgb, var(--ck-stone-1000) 70%, transparent);
|
|
921
|
+
|
|
922
|
+
/* ---------- Texture knobs (per [data-bg-tier]) ---------- */
|
|
923
|
+
--tex-grain: 0.07;
|
|
924
|
+
--tex-dots: 0.125;
|
|
925
|
+
--tex-wisp-a: 0.04;
|
|
926
|
+
--tex-wisp-b: 0.045;
|
|
927
|
+
--tex-glow: 0.078;
|
|
928
|
+
--tex-vignette: 0.55;
|
|
929
|
+
--tex-scanline: 0.18;
|
|
930
|
+
--tex-band: 0;
|
|
931
|
+
/* Aurora is OPT-IN — default off. Only a surface that raises --tex-aurora
|
|
932
|
+
(the dashboard aurora routes, stamped by the shell) paints the aurora
|
|
933
|
+
radials defined in checkpoint.css; the `aurora` bg-tier
|
|
934
|
+
(Checkpoint's styles/checkpoint/product-tokens.css) raises it. */
|
|
935
|
+
--tex-aurora: 0;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/* --deny-fill, LIGHT. A rule of its own so the LIGHT block below is left
|
|
939
|
+
as it is. It takes that block's selector and, like that block, comes
|
|
940
|
+
after the DARK one, so it applies exactly where the LIGHT semantics do.
|
|
941
|
+
On the light --deny (#c01f3c) white already reads 6.0:1, and --on-deny
|
|
942
|
+
(--bg-surface, #ffffff) the same 6.0:1, so the fill is --deny unchanged. */
|
|
943
|
+
:root,
|
|
944
|
+
[data-theme='checkpoint']:where(.light),
|
|
945
|
+
[data-theme='checkpoint-light'] {
|
|
946
|
+
--deny-fill: var(--deny);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/* ============================================================
|
|
950
|
+
LAYER 2.5 · STRUCTURE (theme-invariant)
|
|
951
|
+
Dimensions that are the same in dark and light live under
|
|
952
|
+
[data-theme*='checkpoint'], which matches every checkpoint scope
|
|
953
|
+
(the theme name with either mode class, and the deprecated
|
|
954
|
+
'checkpoint-light' stamp), so no mode leaves them undefined.
|
|
955
|
+
============================================================ */
|
|
956
|
+
[data-theme*='checkpoint'] {
|
|
957
|
+
/* Detail-sheet locked width (parity-spec locked rhythm) — the one
|
|
958
|
+
max-width every side-anchored checkpoint Sheet snaps to.
|
|
959
|
+
Consumed as `w-full max-w-[var(--sheet-width)]` so sub-540px
|
|
960
|
+
viewports still get a full-bleed panel. */
|
|
961
|
+
--sheet-width: 540px;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* ============================================================
|
|
965
|
+
LAYER 2.6 · CODE WELL (theme-invariant, GLOBAL)
|
|
966
|
+
The code block is a dark block in light and dark: code reads as code
|
|
967
|
+
on any page. Everything in the --code-block-* and --code-token-*
|
|
968
|
+
families except the well and its surface is the same in both themes,
|
|
969
|
+
so it is declared once, here at :root, and every scope inherits it.
|
|
970
|
+
Every value is a global primitive (or a literal), never a
|
|
971
|
+
theme-varying semantic, which is what lets one :root declaration
|
|
972
|
+
resolve the same under `.dark`, `.light` and their deprecated
|
|
973
|
+
`data-theme` forms alike. --code-block-bg and
|
|
974
|
+
--code-block-surface sit in the two theme blocks, which both declare
|
|
975
|
+
the ink-800 well and its ink-600 surface.
|
|
976
|
+
|
|
977
|
+
Declare these here and in those theme blocks ONLY. An unlayered copy
|
|
978
|
+
in a consumer's sheets (Checkpoint's globals.css) beats these layered blocks
|
|
979
|
+
regardless of specificity (cursor-bot on PR #4437 caught one
|
|
980
|
+
stranding the foreground). Consumers that put code-token text
|
|
981
|
+
somewhere other than the well, or light-theme text on it, are the
|
|
982
|
+
ones to check when the well changes.
|
|
983
|
+
Checkpoint's tests/unit/design-system/code-block-contrast.test.ts
|
|
984
|
+
enforces all of it from this sheet.
|
|
985
|
+
============================================================ */
|
|
986
|
+
:root {
|
|
987
|
+
/* ---------- Hover, the well's washes and frame ----------
|
|
988
|
+
Hover sits one ink step lighter than the ink-800 well, on ink-700, in
|
|
989
|
+
both themes. The header and button washes are
|
|
990
|
+
translucent white, so they stay one step above whichever well step
|
|
991
|
+
they land on.
|
|
992
|
+
|
|
993
|
+
The frame is the dark theme's soft violet --brand-line hairline,
|
|
994
|
+
written as the same violet-400 mix rather than var(--brand-line)
|
|
995
|
+
because --brand-line itself re-points per theme (paper gets a
|
|
996
|
+
deeper violet); the contrast test pins the two equal. It stays soft on purpose, near
|
|
997
|
+
1.3:1 against the dark page. On paper the well stands about 16:1 off
|
|
998
|
+
the page on its own, so the block needs no help from its frame. */
|
|
999
|
+
--code-block-bg-hover: var(--color-ink-700);
|
|
1000
|
+
--code-block-foreground: var(--color-ink-100);
|
|
1001
|
+
--code-block-header-bg: color-mix(in srgb, var(--ck-white) 3%, transparent);
|
|
1002
|
+
--code-block-button-bg: color-mix(in srgb, var(--ck-white) 10%, transparent);
|
|
1003
|
+
--code-block-button-bg-hover: color-mix(in srgb, var(--ck-white) 20%, transparent);
|
|
1004
|
+
--code-block-button-foreground: var(--color-ink-50);
|
|
1005
|
+
--code-block-border: color-mix(in srgb, var(--ck-violet-400) 34%, transparent);
|
|
1006
|
+
/* Focus on the well. The well is dark in both themes, so a control on
|
|
1007
|
+
it takes the dark theme's --ring step in both: the paper --ring
|
|
1008
|
+
(#6041d8) reads only 2.70:1 against the ink-800 well, 1.64:1 on its
|
|
1009
|
+
ink-600 surface.
|
|
1010
|
+
component-contracts.css points --ring at this inside the DS wells. */
|
|
1011
|
+
--code-block-ring: var(--ck-violet-300);
|
|
1012
|
+
|
|
1013
|
+
/* ---------- Code syntax spans ----------
|
|
1014
|
+
Consumed by the DS CodeBlock's <CodeToken> spans (data-code-token) and
|
|
1015
|
+
by its language label / line-number gutter. Keyword/string ride the
|
|
1016
|
+
same peach/cream accents as the chat code block's, keeping one warm
|
|
1017
|
+
visual family on ink.
|
|
1018
|
+
|
|
1019
|
+
Every role here is body text in 12px mono, so each one holds 4.5:1 on
|
|
1020
|
+
every well step in both themes (ink-800 to ink-600); being the
|
|
1021
|
+
quietest role does not exempt punctuation. The surface, ink-600, is
|
|
1022
|
+
the tight one: exactly four ink steps clear the floor on it, and
|
|
1023
|
+
there are four neutral text roles, so each takes one and they keep a
|
|
1024
|
+
distinct, ordered ladder: property (ink-50) loudest, then the plain
|
|
1025
|
+
foreground (ink-100, --code-block-foreground above), then comment
|
|
1026
|
+
(ink-200), then punctuation (ink-300) at 4.52:1, the dimmest step
|
|
1027
|
+
that still clears 4.5:1 (ink-400 reaches only 4.33:1 on ink-800).
|
|
1028
|
+
These are pale steps: they belong on the well only, never on a
|
|
1029
|
+
paper surface. */
|
|
1030
|
+
--code-token-keyword: var(--color-peach-400);
|
|
1031
|
+
--code-token-string: var(--color-cream-400);
|
|
1032
|
+
--code-token-number: var(--color-cream-500);
|
|
1033
|
+
--code-token-comment: var(--color-ink-200);
|
|
1034
|
+
--code-token-property: var(--color-ink-50);
|
|
1035
|
+
--code-token-punctuation: var(--color-ink-300);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/* The DS wells are dark in both themes, so focus inside them takes the
|
|
1039
|
+
well's ring step. Rebinding --ring on the well re-points every
|
|
1040
|
+
outline-ring inside it, and the theme's default :focus-visible outline
|
|
1041
|
+
with them. */
|
|
1042
|
+
[data-slot='code-block'],
|
|
1043
|
+
[data-slot='install-command'] {
|
|
1044
|
+
--ring: var(--code-block-ring);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/* ============================================================
|
|
1048
|
+
LAYER 2 · SEMANTICS — LIGHT
|
|
1049
|
+
The default (`:root`): marketing and legal are forced light by
|
|
1050
|
+
providers.tsx, the auth surface resolves the user or system theme, and
|
|
1051
|
+
operator surfaces resolve light here unless next-themes adds `.dark`.
|
|
1052
|
+
`data-theme='checkpoint'` with the `.light` class forces light for a
|
|
1053
|
+
subtree; `data-theme='checkpoint-light'` is its deprecated form. A bare
|
|
1054
|
+
`.light` does not count: libraries put one on their own roots (React
|
|
1055
|
+
Flow does on every canvas).
|
|
1056
|
+
The dark block above wins on <html class="dark"> through `:root.dark`.
|
|
1057
|
+
On a subtree, the element that carries a mode class declares its own
|
|
1058
|
+
roles, so the nearest one wins.
|
|
1059
|
+
============================================================ */
|
|
1060
|
+
:root,
|
|
1061
|
+
[data-theme='checkpoint']:where(.light),
|
|
1062
|
+
[data-theme='checkpoint-light'] {
|
|
1063
|
+
color-scheme: light;
|
|
1064
|
+
|
|
1065
|
+
/* Paper: a cool near-white carrying a breath of the Vouched hue
|
|
1066
|
+
(OKLCH hue about 270, chroma at most 0.01), so the paper sits with
|
|
1067
|
+
the blue logo instead of against it. Surface stays pure white so
|
|
1068
|
+
cards and the rail lift off the canvas. */
|
|
1069
|
+
--bg-canvas: var(--ck-paper-100);
|
|
1070
|
+
--bg-surface: var(--ck-white);
|
|
1071
|
+
--bg-elevated: var(--ck-paper-200);
|
|
1072
|
+
--bg-hover: var(--ck-paper-300);
|
|
1073
|
+
|
|
1074
|
+
/* Ink: a blue-black. Every text, border, wash and shadow step below is
|
|
1075
|
+
mixed from it, so retuning the ink retunes the whole ladder. */
|
|
1076
|
+
--fg-primary: var(--ck-navy-950);
|
|
1077
|
+
/* Vouched lockup fill: Vouched Blue on light (brand guidelines 2026). */
|
|
1078
|
+
--kya-mark: var(--color-vouched-500);
|
|
1079
|
+
/* On the canvas: secondary 9.9:1, tertiary 5.6:1, muted 4.8:1. Muted
|
|
1080
|
+
was 0.55 (4.1:1, under AA for the small meta text it carries). */
|
|
1081
|
+
--fg-secondary: color-mix(in srgb, var(--fg-primary) 80%, transparent);
|
|
1082
|
+
--fg-tertiary: color-mix(in srgb, var(--fg-primary) 64%, transparent);
|
|
1083
|
+
--fg-muted: color-mix(in srgb, var(--fg-primary) 60%, transparent);
|
|
1084
|
+
--fg-disabled: color-mix(in srgb, var(--fg-primary) 34%, transparent);
|
|
1085
|
+
/* Paper keeps the brand sort affordance, in the deeper hover step. */
|
|
1086
|
+
--table-sort-active: var(--brand-hover);
|
|
1087
|
+
|
|
1088
|
+
--border-subtle: color-mix(in srgb, var(--fg-primary) 8%, transparent);
|
|
1089
|
+
--border-default: color-mix(in srgb, var(--fg-primary) 18%, transparent);
|
|
1090
|
+
--border-strong: color-mix(in srgb, var(--fg-primary) 30%, transparent);
|
|
1091
|
+
--border-focus: color-mix(in srgb, var(--fg-primary) 55%, transparent);
|
|
1092
|
+
/* Focus only; see the dark block. */
|
|
1093
|
+
--ring: var(--brand-text);
|
|
1094
|
+
|
|
1095
|
+
/* Tooltip semantics. */
|
|
1096
|
+
--tooltip-bg: var(--bg-elevated);
|
|
1097
|
+
--tooltip-text: var(--fg-primary);
|
|
1098
|
+
--tooltip-border: var(--border-default);
|
|
1099
|
+
|
|
1100
|
+
--bg-input: color-mix(in srgb, var(--fg-primary) 2%, transparent);
|
|
1101
|
+
--surface-subtle: color-mix(in srgb, var(--fg-primary) 2%, transparent);
|
|
1102
|
+
--surface-default: color-mix(in srgb, var(--fg-primary) 4%, transparent);
|
|
1103
|
+
--surface-strong: color-mix(in srgb, var(--fg-primary) 6%, transparent);
|
|
1104
|
+
|
|
1105
|
+
/* On paper, action ink is the page ink. */
|
|
1106
|
+
--action-bg: var(--fg-primary);
|
|
1107
|
+
--action-fg: var(--bg-surface);
|
|
1108
|
+
--action-bg-hover: color-mix(in srgb, var(--fg-primary) 90%, var(--bg-surface));
|
|
1109
|
+
--action-bg-soft: color-mix(in srgb, var(--fg-primary) 6%, transparent);
|
|
1110
|
+
--action-line: color-mix(in srgb, var(--fg-primary) 30%, transparent);
|
|
1111
|
+
|
|
1112
|
+
/* Vouched byline raster: native brand colors read on paper. */
|
|
1113
|
+
--cp-byline-filter: none;
|
|
1114
|
+
|
|
1115
|
+
/* Status: emerald, amber, crimson and ocean, each holding 4.5:1 as
|
|
1116
|
+
text on every paper step (a hovered row included) and on its own
|
|
1117
|
+
10% wash over the canvas, a white card and an elevated panel (the
|
|
1118
|
+
tightest pair is --deny on its wash over --bg-elevated, 4.61:1).
|
|
1119
|
+
--signal and --warn sit a step deeper than the first paper palette
|
|
1120
|
+
because a wash over --bg-elevated took them under 4.5:1. Info leans
|
|
1121
|
+
ocean, not the dark theme's iris, so it never reads as the Vouched
|
|
1122
|
+
Blue brand. */
|
|
1123
|
+
--signal: var(--ck-paper-green-700);
|
|
1124
|
+
/* Hover deepens on paper, one step away from the page (the dark
|
|
1125
|
+
theme brightens toward its glow instead): 1.3:1 off --signal, and
|
|
1126
|
+
--on-signal holds 8.4:1 on it. */
|
|
1127
|
+
--signal-hover: var(--ck-paper-green-800);
|
|
1128
|
+
--signal-soft: color-mix(in srgb, var(--signal) 10%, transparent);
|
|
1129
|
+
--signal-line: color-mix(in srgb, var(--signal) 34%, transparent);
|
|
1130
|
+
--signal-text: var(--signal);
|
|
1131
|
+
--on-signal: var(--bg-surface);
|
|
1132
|
+
|
|
1133
|
+
/* Deepened teal-mint for legibility on paper, per the light-theme
|
|
1134
|
+
philosophy — same proof-fingerprint family as the dark --signature. */
|
|
1135
|
+
--signature: var(--ck-paper-jade-600);
|
|
1136
|
+
/* #1f8a63 reads 3.9:1 on an elevated panel; a fifth of the page ink
|
|
1137
|
+
takes it to 5.3:1 and keeps the hue. */
|
|
1138
|
+
--signature-text: color-mix(in srgb, var(--signature) 80%, var(--fg-primary));
|
|
1139
|
+
|
|
1140
|
+
--allow: var(--signal);
|
|
1141
|
+
--allow-soft: color-mix(in srgb, var(--allow) 10%, transparent);
|
|
1142
|
+
--allow-line: color-mix(in srgb, var(--allow) 34%, transparent);
|
|
1143
|
+
/* The status bases are text-safe on paper (see above), so each text
|
|
1144
|
+
step is its base. */
|
|
1145
|
+
--allow-text: var(--allow);
|
|
1146
|
+
|
|
1147
|
+
/* Live-check disc — solid --allow fill (a soft-wash background read as
|
|
1148
|
+
too faint for this hero moment) with --on-signal as the contrasting
|
|
1149
|
+
glyph color, the same "text on a solid fill" pairing --on-signal
|
|
1150
|
+
already exists for. Instead of the dark theme's bright mint-on-mint
|
|
1151
|
+
gradient, which reads as neon on paper. */
|
|
1152
|
+
--live-check-bg: var(--allow);
|
|
1153
|
+
--live-check-fg: var(--on-signal);
|
|
1154
|
+
|
|
1155
|
+
--warn: var(--ck-paper-amber-700);
|
|
1156
|
+
--warn-soft: color-mix(in srgb, var(--warn) 10%, transparent);
|
|
1157
|
+
--warn-line: color-mix(in srgb, var(--warn) 30%, transparent);
|
|
1158
|
+
--warn-text: var(--warn);
|
|
1159
|
+
|
|
1160
|
+
--deny: var(--ck-paper-rose-600);
|
|
1161
|
+
--deny-soft: color-mix(in srgb, var(--deny) 10%, transparent);
|
|
1162
|
+
--deny-line: color-mix(in srgb, var(--deny) 30%, transparent);
|
|
1163
|
+
--deny-text: var(--deny);
|
|
1164
|
+
/* Text on a solid deny fill + the hover step (one step deeper, the
|
|
1165
|
+
same convention as --signal-hover). */
|
|
1166
|
+
--on-deny: var(--bg-surface);
|
|
1167
|
+
--deny-hover: var(--ck-paper-rose-700);
|
|
1168
|
+
|
|
1169
|
+
--info: var(--ck-paper-cyan-700);
|
|
1170
|
+
--info-soft: color-mix(in srgb, var(--info) 10%, transparent);
|
|
1171
|
+
--info-line: color-mix(in srgb, var(--info) 30%, transparent);
|
|
1172
|
+
--info-text: var(--info);
|
|
1173
|
+
|
|
1174
|
+
--brass: var(--ck-paper-brass-800);
|
|
1175
|
+
/* Editorial text on paper: 5.3:1 on an elevated panel, 4.6:1 on the
|
|
1176
|
+
brass wash over it. */
|
|
1177
|
+
--brass-text: var(--ck-paper-brass-700);
|
|
1178
|
+
--brass-soft: color-mix(in srgb, var(--brass) 10%, transparent);
|
|
1179
|
+
--brass-line: color-mix(in srgb, var(--brass) 30%, transparent);
|
|
1180
|
+
|
|
1181
|
+
/* Brand on paper is a refined violet (OKLCH hue 284): the product
|
|
1182
|
+
violet the dark theme keeps, turned a few degrees toward the Vouched
|
|
1183
|
+
Blue logo and cleaned of its gray, so the primary action, the active
|
|
1184
|
+
nav and the chart fills read as Checkpoint while sitting beside the
|
|
1185
|
+
blue mark. --brand-hover steps deeper (hover on paper, 1.4:1 off
|
|
1186
|
+
--brand), --brand-text lighter; all three hold 4.5:1 on every paper
|
|
1187
|
+
step, a hovered row included (--brand-text is the tightest, 5.5:1 on
|
|
1188
|
+
--bg-hover), and --on-brand holds 7.4:1 on --brand. --brand-text is
|
|
1189
|
+
also the text on a --brand-soft wash (the info tag), where it holds
|
|
1190
|
+
5.1:1 over an elevated panel. */
|
|
1191
|
+
--brand: var(--ck-paper-violet-600);
|
|
1192
|
+
--brand-hover: var(--ck-paper-violet-700);
|
|
1193
|
+
--brand-text: var(--ck-paper-violet-500);
|
|
1194
|
+
--brand-soft: color-mix(in srgb, var(--brand) 8%, transparent);
|
|
1195
|
+
--brand-faint: color-mix(in srgb, var(--brand) 4%, transparent);
|
|
1196
|
+
--brand-line: color-mix(in srgb, var(--brand) 24%, transparent);
|
|
1197
|
+
--brand-glow: color-mix(in srgb, var(--brand) 32%, transparent);
|
|
1198
|
+
--on-brand: var(--ck-white);
|
|
1199
|
+
|
|
1200
|
+
/* Accent and link: see the dark block. On paper --brand itself holds
|
|
1201
|
+
6.3:1 or more, so links take it. */
|
|
1202
|
+
--link: var(--brand);
|
|
1203
|
+
--accent: var(--brand);
|
|
1204
|
+
--accent-hover: var(--brand-hover);
|
|
1205
|
+
--accent-soft: var(--brand-soft);
|
|
1206
|
+
--accent-line: var(--brand-line);
|
|
1207
|
+
--accent-glow: var(--brand-glow);
|
|
1208
|
+
--accent-text: var(--brand-text);
|
|
1209
|
+
--on-accent: var(--on-brand);
|
|
1210
|
+
|
|
1211
|
+
/* Inline `<code>` chip — see the dark block's matching comment above for
|
|
1212
|
+
why this lives here instead of globals.css's old `:root`-only rule. */
|
|
1213
|
+
--code-bg: var(--brand-faint);
|
|
1214
|
+
/* The deeper hover step: more contrast on the faint chip wash. */
|
|
1215
|
+
--code-text: var(--brand-hover);
|
|
1216
|
+
--code-border: var(--brand-line);
|
|
1217
|
+
|
|
1218
|
+
/* Code well steps: see the dark block's matching comment above. Paper
|
|
1219
|
+
takes the dark well, ink-800, so code reads as the same dark block on
|
|
1220
|
+
any page. It stands about 16:1 off the canvas and 17:1 off a white
|
|
1221
|
+
card. Hover (ink-700, the shared hover in LAYER 2.6) and surface
|
|
1222
|
+
(ink-600) step lighter, as in dark, and the whole syntax palette holds
|
|
1223
|
+
4.5:1 on all three steps. ink-600 is the lightest step that does:
|
|
1224
|
+
on ink-500 keyword, comment and punctuation drop under 4.5:1. */
|
|
1225
|
+
--code-block-bg: var(--color-ink-800);
|
|
1226
|
+
--code-block-surface: var(--color-ink-600);
|
|
1227
|
+
|
|
1228
|
+
/* Bare <pre> well: see the dark block's matching comment above. The code
|
|
1229
|
+
well itself is a dark block in both themes; a bare pre on paper
|
|
1230
|
+
keeps a pale well because its text is light-theme text. ink-100, a
|
|
1231
|
+
GitHub-light-style cool gray, separates from the canvas and from a
|
|
1232
|
+
white --bg-surface card about as much as the dark well does; the paper
|
|
1233
|
+
steps sit too close to the canvas for that. It stays opaque because a
|
|
1234
|
+
translucent wash would compound wherever a bare pre nests inside
|
|
1235
|
+
another. The frame is --border-default, the soft hairline the shared
|
|
1236
|
+
Default code block draws on paper. */
|
|
1237
|
+
--pre-well-bg: var(--color-ink-100);
|
|
1238
|
+
--pre-well-border: var(--border-default);
|
|
1239
|
+
|
|
1240
|
+
/* Highlight: the one rare hit per view. Cream on ink; on paper it is
|
|
1241
|
+
the logo's own blue, so the rare hit ties back to the mark and
|
|
1242
|
+
stands a neighbouring hue apart from the violet brand instead of
|
|
1243
|
+
repeating it. */
|
|
1244
|
+
--highlight: var(--color-vouched-500);
|
|
1245
|
+
--highlight-soft: color-mix(in srgb, var(--highlight) 10%, transparent);
|
|
1246
|
+
--highlight-line: color-mix(in srgb, var(--highlight) 30%, transparent);
|
|
1247
|
+
--highlight-text: var(--highlight);
|
|
1248
|
+
|
|
1249
|
+
/* Tab underline goes to the brand on paper (cream is invisible on
|
|
1250
|
+
paper). */
|
|
1251
|
+
--tab-underline: var(--brand);
|
|
1252
|
+
|
|
1253
|
+
/* Warm pair deepens to brass + deep brass on paper so the
|
|
1254
|
+
"firing" state of CTAs and active nav reads against the
|
|
1255
|
+
canvas without going neon. */
|
|
1256
|
+
--warm: var(--ck-paper-brass-700);
|
|
1257
|
+
--warm-strong: var(--ck-paper-brass-800);
|
|
1258
|
+
--warm-soft: color-mix(in srgb, var(--warm) 10%, transparent);
|
|
1259
|
+
--warm-line: color-mix(in srgb, var(--warm) 30%, transparent);
|
|
1260
|
+
--warm-text: var(--warm);
|
|
1261
|
+
|
|
1262
|
+
/* Data series: see the dark block. */
|
|
1263
|
+
--series-1: var(--ck-chart-paper-1);
|
|
1264
|
+
--series-2: var(--ck-chart-paper-2);
|
|
1265
|
+
--series-3: var(--ck-chart-paper-3);
|
|
1266
|
+
--series-4: var(--ck-chart-paper-4);
|
|
1267
|
+
--series-5: var(--ck-chart-paper-5);
|
|
1268
|
+
|
|
1269
|
+
--shadow-xs: 0 1px 2px color-mix(in srgb, var(--fg-primary) 6%, transparent);
|
|
1270
|
+
--shadow-sm: 0 2px 6px -2px color-mix(in srgb, var(--fg-primary) 8%, transparent);
|
|
1271
|
+
--shadow-md: 0 6px 20px -6px color-mix(in srgb, var(--fg-primary) 10%, transparent);
|
|
1272
|
+
--shadow-lg: 0 24px 50px -18px color-mix(in srgb, var(--fg-primary) 16%, transparent);
|
|
1273
|
+
|
|
1274
|
+
/* Overlay scrim — lighter ink veil on paper (see dark block). */
|
|
1275
|
+
--overlay-scrim: color-mix(in srgb, var(--fg-primary) 40%, transparent);
|
|
1276
|
+
|
|
1277
|
+
/* Preview stage — a recessed paper well on paper (see dark block). */
|
|
1278
|
+
--preview-stage: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-elevated) 100%);
|
|
1279
|
+
--preview-stage-glass: color-mix(in srgb, var(--bg-surface) 70%, transparent);
|
|
1280
|
+
}
|
|
1281
|
+
}
|