@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,119 @@
|
|
|
1
|
+
/* ==============================================================
|
|
2
|
+
Checkpoint Design System: semantic bindings
|
|
3
|
+
──────────────────────────────────────────────────────────────
|
|
4
|
+
The one file that defines the names other vocabularies read: the
|
|
5
|
+
shadcn names (--background, --card, --primary, --muted, --border,
|
|
6
|
+
--input, --chart-*, --sidebar-* and their foregrounds) and the app's
|
|
7
|
+
component names (toast, segmented control, and the legacy tab,
|
|
8
|
+
tooltip and popover treatments). Every value is a var()
|
|
9
|
+
of a token in tokens.css, so no literal lives here and a
|
|
10
|
+
theme retunes all of them by retuning the tokens.
|
|
11
|
+
|
|
12
|
+
Two shadcn names are design-system roles in their own right and are
|
|
13
|
+
defined with the role families in tokens.css, not here:
|
|
14
|
+
the --accent family (emphasis) and --ring (keyboard focus). See
|
|
15
|
+
docs/design-system/rule-book-tokens.md.
|
|
16
|
+
|
|
17
|
+
Why the scope selectors: a var() inside a custom property resolves on
|
|
18
|
+
the element the declaring rule matches. Declared on :root alone, these
|
|
19
|
+
aliases would resolve once, on <html>, and a nested scope would
|
|
20
|
+
inherit <html>'s values. Declaring them on every theme scope and every
|
|
21
|
+
`.dark` element makes each scope resolve them against its own tokens,
|
|
22
|
+
for any theme and either mode class. The list mirrors the token sheet's
|
|
23
|
+
mode selectors, with the deprecated `data-theme` forms that fold the
|
|
24
|
+
mode into the theme name.
|
|
25
|
+
|
|
26
|
+
Layered (`@layer base`, like the token sheet) so an unlayered feature
|
|
27
|
+
sheet can still re-point a name for its own subtree.
|
|
28
|
+
============================================================== */
|
|
29
|
+
|
|
30
|
+
@layer base {
|
|
31
|
+
:root,
|
|
32
|
+
.dark,
|
|
33
|
+
[data-theme='checkpoint'],
|
|
34
|
+
:root[data-theme='checkpoint'],
|
|
35
|
+
[data-theme='checkpoint-light'] {
|
|
36
|
+
/* ---------- shadcn surfaces and text ---------- */
|
|
37
|
+
--background: var(--bg-canvas);
|
|
38
|
+
--foreground: var(--fg-primary);
|
|
39
|
+
--card: var(--bg-surface);
|
|
40
|
+
--card-foreground: var(--fg-primary);
|
|
41
|
+
--popover: var(--bg-elevated);
|
|
42
|
+
--popover-foreground: var(--fg-primary);
|
|
43
|
+
--secondary: var(--bg-elevated);
|
|
44
|
+
--secondary-foreground: var(--fg-primary);
|
|
45
|
+
--muted: var(--bg-elevated);
|
|
46
|
+
--muted-foreground: var(--fg-tertiary);
|
|
47
|
+
|
|
48
|
+
/* ---------- shadcn main action ----------
|
|
49
|
+
`--primary` is the main action (rule-book-tokens.md, Rule 2):
|
|
50
|
+
brand violet with its on-fill text, never emphasis or focus. */
|
|
51
|
+
--primary: var(--brand);
|
|
52
|
+
--primary-foreground: var(--on-brand);
|
|
53
|
+
--primary-hover: var(--brand-hover);
|
|
54
|
+
|
|
55
|
+
/* ---------- shadcn destructive ---------- */
|
|
56
|
+
--destructive: var(--deny);
|
|
57
|
+
--destructive-foreground: var(--on-deny);
|
|
58
|
+
|
|
59
|
+
/* ---------- shadcn lines ----------
|
|
60
|
+
`--border` is the hairline (DS rule 03). `--input` is the border a
|
|
61
|
+
form control draws (shadcn `border-input`), so it takes the
|
|
62
|
+
readable --border-default step, not a fill. */
|
|
63
|
+
--border: var(--border-subtle);
|
|
64
|
+
--input: var(--border-default);
|
|
65
|
+
|
|
66
|
+
/* ---------- shadcn charts ---------- */
|
|
67
|
+
--chart-1: var(--series-1);
|
|
68
|
+
--chart-2: var(--series-2);
|
|
69
|
+
--chart-3: var(--series-3);
|
|
70
|
+
--chart-4: var(--series-4);
|
|
71
|
+
--chart-5: var(--series-5);
|
|
72
|
+
|
|
73
|
+
/* ---------- shadcn sidebar ----------
|
|
74
|
+
The hover and active wash is a surface (--surface-strong), not
|
|
75
|
+
--accent. */
|
|
76
|
+
--sidebar: var(--bg-canvas);
|
|
77
|
+
--sidebar-foreground: var(--fg-primary);
|
|
78
|
+
--sidebar-primary: var(--brand);
|
|
79
|
+
--sidebar-primary-foreground: var(--on-brand);
|
|
80
|
+
--sidebar-accent: var(--surface-strong);
|
|
81
|
+
--sidebar-accent-foreground: var(--fg-primary);
|
|
82
|
+
--sidebar-border: var(--border-subtle);
|
|
83
|
+
--sidebar-ring: var(--ring);
|
|
84
|
+
|
|
85
|
+
/* ---------- Component names ----------
|
|
86
|
+
Toast: Sonner's shell in primitive-skins.css and the component
|
|
87
|
+
contracts. */
|
|
88
|
+
--toast: var(--bg-surface);
|
|
89
|
+
--toast-foreground: var(--fg-primary);
|
|
90
|
+
--toast-border: var(--border-subtle);
|
|
91
|
+
--toast-description: var(--fg-tertiary);
|
|
92
|
+
--toast-close: var(--fg-tertiary);
|
|
93
|
+
|
|
94
|
+
/* Secondary button fill in the legacy button contract. */
|
|
95
|
+
--button-secondary: var(--surface-strong);
|
|
96
|
+
|
|
97
|
+
/* Legacy tab, tooltip and popover treatments in
|
|
98
|
+
component-contracts.css. */
|
|
99
|
+
--tab-active: var(--tab-underline);
|
|
100
|
+
--tab-active-text: var(--fg-primary);
|
|
101
|
+
--tab-inactive-text: var(--fg-tertiary);
|
|
102
|
+
--tooltip-text-muted: var(--fg-tertiary);
|
|
103
|
+
--popover-bg: var(--popover);
|
|
104
|
+
--popover-text: var(--popover-foreground);
|
|
105
|
+
--popover-text-muted: var(--fg-tertiary);
|
|
106
|
+
--popover-border: var(--border-default);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* ---------- Canvas atmosphere, kept off ----------
|
|
111
|
+
The .checkpoint-canvas::before/after wisp, dot and grain stack from
|
|
112
|
+
canvas.css stays off inside the Checkpoint theme: cards carry the
|
|
113
|
+
visual weight. To revive the ambient texture, remove this rule. */
|
|
114
|
+
[data-theme*='checkpoint'].checkpoint-canvas::before,
|
|
115
|
+
[data-theme*='checkpoint'].checkpoint-canvas::after {
|
|
116
|
+
display: none !important;
|
|
117
|
+
background: none !important;
|
|
118
|
+
content: none !important;
|
|
119
|
+
}
|
package/styles/shell.css
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* The design system's radius doctrine: inside a Checkpoint theme scope, the
|
|
2
|
+
medium and large Tailwind radii flatten to 2px. It is opt-in. The registry
|
|
3
|
+
ships it beside theme.css, which does not import it; a consumer that wants
|
|
4
|
+
the doctrine imports it after the theme. Checkpoint's
|
|
5
|
+
styles/checkpoint/checkpoint.css imports it first, so every surface that loads the dashboard shell sheet
|
|
6
|
+
gets the doctrine. The Avatar fallback and the Toast skin, which the theme
|
|
7
|
+
does import, live in primitive-skins.css. */
|
|
8
|
+
|
|
9
|
+
/* ==============================================================
|
|
10
|
+
TAILWIND UTILITY OVERRIDES: flatten and canonicalise
|
|
11
|
+
==============================================================
|
|
12
|
+
The Instrument doctrine: hard 2px corners by default, no 12px+
|
|
13
|
+
rounding anywhere in product. Flatten the medium-large Tailwind
|
|
14
|
+
radii under the checkpoint theme so the hundreds of legacy
|
|
15
|
+
`rounded-md/lg/xl/2xl/3xl` callsites in Checkpoint components inherit the
|
|
16
|
+
right shape without an N×N migration sweep. Shapes that genuinely
|
|
17
|
+
need a circle (dots, avatars) keep `rounded-full` (untouched).
|
|
18
|
+
|
|
19
|
+
These rules sit in @layer utilities so they cascade-win against
|
|
20
|
+
the same-layer Tailwind utility.
|
|
21
|
+
============================================================== */
|
|
22
|
+
@layer utilities {
|
|
23
|
+
/* Standard Tailwind keyword utilities */
|
|
24
|
+
/* `.rounded-xl` removed from this override block (experiment
|
|
25
|
+
2026-05-21) — that's the size class we use for Checkpoint cards to
|
|
26
|
+
match the home widget --radius-lg (14px). Flattening it to
|
|
27
|
+
--radius-xs was making the card-radius unification pass invisible.
|
|
28
|
+
The other sizes (md/lg/2xl/3xl) stay flattened. */
|
|
29
|
+
[data-theme*='checkpoint'] .rounded-md,
|
|
30
|
+
[data-theme*='checkpoint'] .rounded-lg,
|
|
31
|
+
[data-theme*='checkpoint'] .rounded-2xl,
|
|
32
|
+
[data-theme*='checkpoint'] .rounded-3xl {
|
|
33
|
+
border-radius: var(--radius-xs);
|
|
34
|
+
}
|
|
35
|
+
/* Arbitrary px values that scatter across Checkpoint components — every value
|
|
36
|
+
above the 2px doctrine ceiling collapses to --radius-xs. Circles
|
|
37
|
+
(.rounded-full) and the explicit 2/3 px callsites keep their
|
|
38
|
+
intended geometry. The chat composer (`[data-slot="chat-composer"]`)
|
|
39
|
+
is the one allowed exception: Checkpoint's
|
|
40
|
+
styles/checkpoint/checkpoint.css overrides it back to 14px. */
|
|
41
|
+
[data-theme*='checkpoint'] .rounded-\[4px\],
|
|
42
|
+
[data-theme*='checkpoint'] .rounded-\[6px\],
|
|
43
|
+
[data-theme*='checkpoint'] .rounded-\[8px\],
|
|
44
|
+
[data-theme*='checkpoint'] .rounded-\[10px\],
|
|
45
|
+
[data-theme*='checkpoint'] .rounded-\[12px\],
|
|
46
|
+
[data-theme*='checkpoint'] .rounded-\[14px\],
|
|
47
|
+
[data-theme*='checkpoint'] .rounded-\[16px\] {
|
|
48
|
+
border-radius: var(--radius-xs);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/* Checkpoint Tailwind v4 bridge
|
|
2
|
+
--------------------------------------------------------------------------
|
|
3
|
+
This file is part of the public registry theme. It is the single mapping
|
|
4
|
+
from Checkpoint's CSS tokens (tokens.css, semantic-bindings.css)
|
|
5
|
+
to utility names, and the one place third-party variables are bound to
|
|
6
|
+
those tokens. The Checkpoint app's own utilities and bindings (actor,
|
|
7
|
+
indicator and confidence colours; React Flow; Fumadocs) live in its own
|
|
8
|
+
styles/checkpoint/product-bridge.css, which this package does not ship.
|
|
9
|
+
|
|
10
|
+
Two tiers, one mapping (docs/design-system/rule-book-tokens.md, "Naming"):
|
|
11
|
+
|
|
12
|
+
CSS token utility key e.g.
|
|
13
|
+
--bg-canvas canvas bg-canvas
|
|
14
|
+
--bg-surface surface bg-surface
|
|
15
|
+
--bg-elevated elevated bg-elevated
|
|
16
|
+
--fg-primary ink text-ink
|
|
17
|
+
--fg-secondary ink-muted text-ink-muted
|
|
18
|
+
--fg-tertiary ink-subtle text-ink-subtle
|
|
19
|
+
--fg-muted ink-faint text-ink-faint
|
|
20
|
+
--border-subtle border-subtle border-border-subtle
|
|
21
|
+
--border-default border-default border-border-default
|
|
22
|
+
--border-strong border-strong border-border-strong
|
|
23
|
+
--R, --R-text … R, R-text … bg-brand, text-brand-text
|
|
24
|
+
|
|
25
|
+
Import it from the same global stylesheet as `tailwindcss`, after
|
|
26
|
+
tokens.css. Keeping the bridge here (instead of an app's global sheet)
|
|
27
|
+
makes a copied registry component compile the same utilities as the
|
|
28
|
+
Checkpoint application.
|
|
29
|
+
========================================================================== */
|
|
30
|
+
|
|
31
|
+
@plugin 'tailwindcss-animate';
|
|
32
|
+
|
|
33
|
+
@theme inline {
|
|
34
|
+
/* Surfaces + ink */
|
|
35
|
+
--color-canvas: var(--bg-canvas);
|
|
36
|
+
--color-surface: var(--bg-surface);
|
|
37
|
+
--color-elevated: var(--bg-elevated);
|
|
38
|
+
|
|
39
|
+
--color-ink: var(--fg-primary);
|
|
40
|
+
--color-ink-muted: var(--fg-secondary);
|
|
41
|
+
--color-ink-subtle: var(--fg-tertiary);
|
|
42
|
+
--color-ink-faint: var(--fg-muted);
|
|
43
|
+
|
|
44
|
+
/* Checkpoint's hairline ladder stays distinct from shadcn's `border`. */
|
|
45
|
+
--color-border-subtle: var(--border-subtle);
|
|
46
|
+
--color-border-default: var(--border-default);
|
|
47
|
+
--color-border-strong: var(--border-strong);
|
|
48
|
+
|
|
49
|
+
/* Role families: R (solid fill), R-hover, R-soft (tint background),
|
|
50
|
+
R-line (border, glow), R-text (text and icons), on-R (text on R). */
|
|
51
|
+
|
|
52
|
+
/* Brand · violet */
|
|
53
|
+
--color-brand: var(--brand);
|
|
54
|
+
--color-brand-hover: var(--brand-hover);
|
|
55
|
+
--color-brand-text: var(--brand-text);
|
|
56
|
+
--color-brand-soft: var(--brand-soft);
|
|
57
|
+
--color-brand-faint: var(--brand-faint);
|
|
58
|
+
--color-brand-line: var(--brand-line);
|
|
59
|
+
--color-brand-glow: var(--brand-glow);
|
|
60
|
+
--color-on-brand: var(--on-brand);
|
|
61
|
+
|
|
62
|
+
/* Accent · emphasis (the brand family; shadcn's `accent` key) */
|
|
63
|
+
--color-accent: var(--accent);
|
|
64
|
+
--color-accent-hover: var(--accent-hover);
|
|
65
|
+
--color-accent-soft: var(--accent-soft);
|
|
66
|
+
--color-accent-line: var(--accent-line);
|
|
67
|
+
--color-accent-text: var(--accent-text);
|
|
68
|
+
--color-on-accent: var(--on-accent);
|
|
69
|
+
|
|
70
|
+
/* Signal · mint */
|
|
71
|
+
--color-signal: var(--signal);
|
|
72
|
+
--color-signal-hover: var(--signal-hover);
|
|
73
|
+
--color-signal-soft: var(--signal-soft);
|
|
74
|
+
--color-signal-line: var(--signal-line);
|
|
75
|
+
--color-signal-text: var(--signal-text);
|
|
76
|
+
--color-on-signal: var(--on-signal);
|
|
77
|
+
--color-signature: var(--signature);
|
|
78
|
+
--color-signature-text: var(--signature-text);
|
|
79
|
+
|
|
80
|
+
/* Status */
|
|
81
|
+
--color-allow: var(--allow);
|
|
82
|
+
--color-allow-soft: var(--allow-soft);
|
|
83
|
+
--color-allow-line: var(--allow-line);
|
|
84
|
+
--color-allow-text: var(--allow-text);
|
|
85
|
+
--color-warn: var(--warn);
|
|
86
|
+
--color-warn-soft: var(--warn-soft);
|
|
87
|
+
--color-warn-line: var(--warn-line);
|
|
88
|
+
--color-warn-text: var(--warn-text);
|
|
89
|
+
--color-deny: var(--deny);
|
|
90
|
+
--color-deny-hover: var(--deny-hover);
|
|
91
|
+
--color-deny-soft: var(--deny-soft);
|
|
92
|
+
--color-deny-line: var(--deny-line);
|
|
93
|
+
--color-deny-text: var(--deny-text);
|
|
94
|
+
/* Solid deny fills under --on-deny text; --deny stays text, glyph, border. */
|
|
95
|
+
--color-deny-fill: var(--deny-fill);
|
|
96
|
+
--color-on-deny: var(--on-deny);
|
|
97
|
+
--color-info: var(--info);
|
|
98
|
+
--color-info-soft: var(--info-soft);
|
|
99
|
+
--color-info-line: var(--info-line);
|
|
100
|
+
--color-info-text: var(--info-text);
|
|
101
|
+
|
|
102
|
+
/* Highlight + warm */
|
|
103
|
+
--color-highlight: var(--highlight);
|
|
104
|
+
--color-highlight-soft: var(--highlight-soft);
|
|
105
|
+
--color-highlight-line: var(--highlight-line);
|
|
106
|
+
--color-highlight-text: var(--highlight-text);
|
|
107
|
+
--color-warm: var(--warm);
|
|
108
|
+
--color-warm-strong: var(--warm-strong);
|
|
109
|
+
--color-warm-soft: var(--warm-soft);
|
|
110
|
+
--color-warm-line: var(--warm-line);
|
|
111
|
+
--color-warm-text: var(--warm-text);
|
|
112
|
+
|
|
113
|
+
/* Editorial */
|
|
114
|
+
--color-brass: var(--brass);
|
|
115
|
+
--color-brass-soft: var(--brass-soft);
|
|
116
|
+
--color-brass-line: var(--brass-line);
|
|
117
|
+
--color-brass-text: var(--brass-text);
|
|
118
|
+
|
|
119
|
+
/* Link text */
|
|
120
|
+
--color-link: var(--link);
|
|
121
|
+
|
|
122
|
+
/* High-contrast action pair (deprecated for buttons, see the tokens) */
|
|
123
|
+
--color-action-bg: var(--action-bg);
|
|
124
|
+
--color-action-fg: var(--action-fg);
|
|
125
|
+
|
|
126
|
+
/* shadcn vocabulary (semantic-bindings.css). Product code moves to the
|
|
127
|
+
canonical keys above; the naming doc maps each one. */
|
|
128
|
+
--color-background: var(--background);
|
|
129
|
+
--color-foreground: var(--foreground);
|
|
130
|
+
--color-card: var(--card);
|
|
131
|
+
--color-card-foreground: var(--card-foreground);
|
|
132
|
+
--color-popover: var(--popover);
|
|
133
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
134
|
+
--color-primary: var(--primary);
|
|
135
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
136
|
+
--color-secondary: var(--secondary);
|
|
137
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
138
|
+
--color-muted: var(--muted);
|
|
139
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
140
|
+
--color-destructive: var(--destructive);
|
|
141
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
142
|
+
--color-border: var(--border);
|
|
143
|
+
--color-input: var(--input);
|
|
144
|
+
--color-ring: var(--ring);
|
|
145
|
+
--color-chart-1: var(--chart-1);
|
|
146
|
+
--color-chart-2: var(--chart-2);
|
|
147
|
+
--color-chart-3: var(--chart-3);
|
|
148
|
+
--color-chart-4: var(--chart-4);
|
|
149
|
+
--color-chart-5: var(--chart-5);
|
|
150
|
+
--color-sidebar: var(--sidebar);
|
|
151
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
152
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
153
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
154
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
155
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
156
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
157
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
158
|
+
--color-button-secondary: var(--button-secondary);
|
|
159
|
+
|
|
160
|
+
/* shadcn's radius steps derive from --radius (tokens.css):
|
|
161
|
+
8px, 10px and 12px, then the 16px xl step. */
|
|
162
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
163
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
164
|
+
--radius-lg: var(--radius);
|
|
165
|
+
--radius-xl: 16px;
|
|
166
|
+
|
|
167
|
+
/* Tailwind's shadow scale reads the DS elevation steps, so `shadow-md`
|
|
168
|
+
and `var(--shadow-md)` paint the same, per theme. The DS stops at lg
|
|
169
|
+
(xl aliases it), so 2xl does too, and 2xs takes the xs hairline. */
|
|
170
|
+
--shadow-2xs: var(--shadow-xs);
|
|
171
|
+
--shadow-xs: var(--shadow-xs);
|
|
172
|
+
--shadow-sm: var(--shadow-sm);
|
|
173
|
+
--shadow-md: var(--shadow-md);
|
|
174
|
+
--shadow-lg: var(--shadow-lg);
|
|
175
|
+
--shadow-xl: var(--shadow-xl);
|
|
176
|
+
--shadow-2xl: var(--shadow-lg);
|
|
177
|
+
|
|
178
|
+
/* Tailwind's white and black are the DS primitives, so `text-white` and
|
|
179
|
+
`bg-black` follow a retuned primitive like every other colour. */
|
|
180
|
+
--color-white: var(--ck-white);
|
|
181
|
+
--color-black: var(--ck-black);
|
|
182
|
+
|
|
183
|
+
/* Status · the live ring (StatusDot `live`, paired with
|
|
184
|
+
motion-reduce:animate-none). Quieter than animate-ping on purpose: it
|
|
185
|
+
starts at 0.4 opacity instead of 0.75, runs on the live-heartbeat
|
|
186
|
+
recipe (--motion-pulse) instead of a 1s cycle, and rests unseen for
|
|
187
|
+
the last 30%, so a live dot reads as a heartbeat and never as an
|
|
188
|
+
alarm. */
|
|
189
|
+
--animate-status-ring: status-ring var(--motion-pulse);
|
|
190
|
+
|
|
191
|
+
@keyframes status-ring {
|
|
192
|
+
0% {
|
|
193
|
+
opacity: 0.4;
|
|
194
|
+
transform: scale(1);
|
|
195
|
+
}
|
|
196
|
+
70%,
|
|
197
|
+
100% {
|
|
198
|
+
opacity: 0;
|
|
199
|
+
transform: scale(2.5);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* Tailwind Typography (Streamdown and markdown prose). The plugin reads
|
|
205
|
+
these variables; binding them to the semantic ladder and the accent
|
|
206
|
+
keeps assistant markdown and in-chat tool-result prose legible in both
|
|
207
|
+
themes. --tw-prose-pre-* stay unbound: the Checkpoint Code Block
|
|
208
|
+
component owns fenced-code surfaces (components/features/chat/code-block/). */
|
|
209
|
+
@layer base {
|
|
210
|
+
[data-theme*='checkpoint'] {
|
|
211
|
+
--tw-prose-body: var(--fg-primary);
|
|
212
|
+
--tw-prose-headings: var(--fg-primary);
|
|
213
|
+
--tw-prose-lead: var(--fg-secondary);
|
|
214
|
+
--tw-prose-links: var(--accent);
|
|
215
|
+
--tw-prose-bold: var(--fg-primary);
|
|
216
|
+
--tw-prose-counters: var(--fg-tertiary);
|
|
217
|
+
--tw-prose-bullets: var(--fg-tertiary);
|
|
218
|
+
--tw-prose-hr: var(--border-subtle);
|
|
219
|
+
--tw-prose-quotes: var(--fg-primary);
|
|
220
|
+
--tw-prose-quote-borders: var(--accent-line);
|
|
221
|
+
--tw-prose-captions: var(--fg-tertiary);
|
|
222
|
+
--tw-prose-code: var(--fg-primary);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Tailwind registers --tw-ring-offset-color with a white initial value, so a
|
|
227
|
+
bare `ring-offset-2` would cut a white gap into a dark canvas. The default
|
|
228
|
+
offset is the canvas the ring sits on; a `ring-offset-*` colour utility
|
|
229
|
+
still overrides it. The property does not inherit, so every element
|
|
230
|
+
resolves it against its own theme scope. */
|
|
231
|
+
@layer base {
|
|
232
|
+
*,
|
|
233
|
+
::before,
|
|
234
|
+
::after {
|
|
235
|
+
--tw-ring-offset-color: var(--bg-canvas);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@layer utilities {
|
|
240
|
+
/* These cannot be expressed as @theme aliases without creating a
|
|
241
|
+
self-referential custom-property cycle (for example
|
|
242
|
+
`--font-display: var(--font-display)`). */
|
|
243
|
+
.font-display {
|
|
244
|
+
font-family: var(--font-display, ui-sans-serif, system-ui, sans-serif);
|
|
245
|
+
}
|
|
246
|
+
.font-mono {
|
|
247
|
+
font-family: var(--font-mono, ui-monospace, 'SF Mono', monospace);
|
|
248
|
+
}
|
|
249
|
+
.font-editorial {
|
|
250
|
+
font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
|
|
251
|
+
}
|
|
252
|
+
.font-checkpoint-sans {
|
|
253
|
+
font-family: var(--font-ui, ui-sans-serif, system-ui, sans-serif);
|
|
254
|
+
}
|
|
255
|
+
}
|
package/styles/theme.css
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* The KYA design system theme. Import it once, right after tailwindcss, from
|
|
2
|
+
the stylesheet Tailwind v4 processes. Its stylesheets cascade in this order.
|
|
3
|
+
The registry's theme item ships these files and two opt-in sheets this one
|
|
4
|
+
does not import: colors_and_type.css (the Checkpoint-scoped heading, body
|
|
5
|
+
and chrome type) and shell.css (the 2px radius doctrine). To opt in, import
|
|
6
|
+
either after this file. */
|
|
7
|
+
@import './fonts.css';
|
|
8
|
+
@import './tokens.css';
|
|
9
|
+
@import './tailwind-bridge.css';
|
|
10
|
+
@import './canvas.css';
|
|
11
|
+
@import './semantic-bindings.css';
|
|
12
|
+
@import './base.css';
|
|
13
|
+
@import './component-contracts.css';
|
|
14
|
+
@import './primitive-skins.css';
|
|
15
|
+
@import './vouched-logo.css';
|