@vouched-id/ui 0.0.0-stage → 0.1.0

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.
Files changed (228) hide show
  1. package/dist/Accordion.d.ts +8 -0
  2. package/dist/Accordion.d.ts.map +1 -0
  3. package/dist/Accordion.js +20 -0
  4. package/dist/Accordion.js.map +1 -0
  5. package/dist/Alert.d.ts +12 -0
  6. package/dist/Alert.d.ts.map +1 -0
  7. package/dist/Alert.js +64 -0
  8. package/dist/Alert.js.map +1 -0
  9. package/dist/AlertDialog.d.ts +90 -0
  10. package/dist/AlertDialog.d.ts.map +1 -0
  11. package/dist/AlertDialog.js +148 -0
  12. package/dist/AlertDialog.js.map +1 -0
  13. package/dist/Avatar.d.ts +43 -0
  14. package/dist/Avatar.d.ts.map +1 -0
  15. package/dist/Avatar.js +29 -0
  16. package/dist/Avatar.js.map +1 -0
  17. package/dist/Badge.d.ts +31 -0
  18. package/dist/Badge.d.ts.map +1 -0
  19. package/dist/Badge.js +22 -0
  20. package/dist/Badge.js.map +1 -0
  21. package/dist/Banner.d.ts +57 -0
  22. package/dist/Banner.d.ts.map +1 -0
  23. package/dist/Banner.js +30 -0
  24. package/dist/Banner.js.map +1 -0
  25. package/dist/Button.d.ts +56 -0
  26. package/dist/Button.d.ts.map +1 -0
  27. package/dist/Button.js +106 -0
  28. package/dist/Button.js.map +1 -0
  29. package/dist/Card.d.ts +79 -0
  30. package/dist/Card.d.ts.map +1 -0
  31. package/dist/Card.js +50 -0
  32. package/dist/Card.js.map +1 -0
  33. package/dist/Chart.d.ts +63 -0
  34. package/dist/Chart.d.ts.map +1 -0
  35. package/dist/Chart.js +120 -0
  36. package/dist/Chart.js.map +1 -0
  37. package/dist/Checkbox.d.ts +4 -0
  38. package/dist/Checkbox.d.ts.map +1 -0
  39. package/dist/Checkbox.js +10 -0
  40. package/dist/Checkbox.js.map +1 -0
  41. package/dist/CodeBlock.d.ts +101 -0
  42. package/dist/CodeBlock.d.ts.map +1 -0
  43. package/dist/CodeBlock.js +99 -0
  44. package/dist/CodeBlock.js.map +1 -0
  45. package/dist/Collapsible.d.ts +6 -0
  46. package/dist/Collapsible.d.ts.map +1 -0
  47. package/dist/Collapsible.js +14 -0
  48. package/dist/Collapsible.js.map +1 -0
  49. package/dist/DataTable.d.ts +59 -0
  50. package/dist/DataTable.d.ts.map +1 -0
  51. package/dist/DataTable.js +162 -0
  52. package/dist/DataTable.js.map +1 -0
  53. package/dist/Dialog.d.ts +71 -0
  54. package/dist/Dialog.d.ts.map +1 -0
  55. package/dist/Dialog.js +185 -0
  56. package/dist/Dialog.js.map +1 -0
  57. package/dist/DropdownMenu.d.ts +82 -0
  58. package/dist/DropdownMenu.d.ts.map +1 -0
  59. package/dist/DropdownMenu.js +111 -0
  60. package/dist/DropdownMenu.js.map +1 -0
  61. package/dist/EditorialHeading.d.ts +42 -0
  62. package/dist/EditorialHeading.d.ts.map +1 -0
  63. package/dist/EditorialHeading.js +36 -0
  64. package/dist/EditorialHeading.js.map +1 -0
  65. package/dist/EmptyState.d.ts +40 -0
  66. package/dist/EmptyState.d.ts.map +1 -0
  67. package/dist/EmptyState.js +7 -0
  68. package/dist/EmptyState.js.map +1 -0
  69. package/dist/Eyebrow.d.ts +27 -0
  70. package/dist/Eyebrow.d.ts.map +1 -0
  71. package/dist/Eyebrow.js +23 -0
  72. package/dist/Eyebrow.js.map +1 -0
  73. package/dist/Field.d.ts +33 -0
  74. package/dist/Field.d.ts.map +1 -0
  75. package/dist/Field.js +26 -0
  76. package/dist/Field.js.map +1 -0
  77. package/dist/HoverCard.d.ts +7 -0
  78. package/dist/HoverCard.d.ts.map +1 -0
  79. package/dist/HoverCard.js +17 -0
  80. package/dist/HoverCard.js.map +1 -0
  81. package/dist/Input.d.ts +20 -0
  82. package/dist/Input.d.ts.map +1 -0
  83. package/dist/Input.js +17 -0
  84. package/dist/Input.js.map +1 -0
  85. package/dist/InstallCommand.d.ts +48 -0
  86. package/dist/InstallCommand.d.ts.map +1 -0
  87. package/dist/InstallCommand.js +60 -0
  88. package/dist/InstallCommand.js.map +1 -0
  89. package/dist/Kbd.d.ts +23 -0
  90. package/dist/Kbd.d.ts.map +1 -0
  91. package/dist/Kbd.js +7 -0
  92. package/dist/Kbd.js.map +1 -0
  93. package/dist/Label.d.ts +5 -0
  94. package/dist/Label.d.ts.map +1 -0
  95. package/dist/Label.js +9 -0
  96. package/dist/Label.js.map +1 -0
  97. package/dist/Popover.d.ts +41 -0
  98. package/dist/Popover.d.ts.map +1 -0
  99. package/dist/Popover.js +27 -0
  100. package/dist/Popover.js.map +1 -0
  101. package/dist/Progress.d.ts +6 -0
  102. package/dist/Progress.d.ts.map +1 -0
  103. package/dist/Progress.js +9 -0
  104. package/dist/Progress.js.map +1 -0
  105. package/dist/RadioGroup.d.ts +5 -0
  106. package/dist/RadioGroup.d.ts.map +1 -0
  107. package/dist/RadioGroup.js +15 -0
  108. package/dist/RadioGroup.js.map +1 -0
  109. package/dist/ScrollArea.d.ts +32 -0
  110. package/dist/ScrollArea.d.ts.map +1 -0
  111. package/dist/ScrollArea.js +13 -0
  112. package/dist/ScrollArea.js.map +1 -0
  113. package/dist/SegmentedControl.d.ts +37 -0
  114. package/dist/SegmentedControl.d.ts.map +1 -0
  115. package/dist/SegmentedControl.js +85 -0
  116. package/dist/SegmentedControl.js.map +1 -0
  117. package/dist/Select.d.ts +21 -0
  118. package/dist/Select.d.ts.map +1 -0
  119. package/dist/Select.js +52 -0
  120. package/dist/Select.js.map +1 -0
  121. package/dist/Separator.d.ts +4 -0
  122. package/dist/Separator.d.ts.map +1 -0
  123. package/dist/Separator.js +9 -0
  124. package/dist/Separator.js.map +1 -0
  125. package/dist/Sheet.d.ts +71 -0
  126. package/dist/Sheet.d.ts.map +1 -0
  127. package/dist/Sheet.js +173 -0
  128. package/dist/Sheet.js.map +1 -0
  129. package/dist/Skeleton.d.ts +26 -0
  130. package/dist/Skeleton.d.ts.map +1 -0
  131. package/dist/Skeleton.js +9 -0
  132. package/dist/Skeleton.js.map +1 -0
  133. package/dist/Slider.d.ts +5 -0
  134. package/dist/Slider.d.ts.map +1 -0
  135. package/dist/Slider.js +12 -0
  136. package/dist/Slider.js.map +1 -0
  137. package/dist/StatusDot.d.ts +29 -0
  138. package/dist/StatusDot.d.ts.map +1 -0
  139. package/dist/StatusDot.js +55 -0
  140. package/dist/StatusDot.js.map +1 -0
  141. package/dist/StatusText.d.ts +15 -0
  142. package/dist/StatusText.d.ts.map +1 -0
  143. package/dist/StatusText.js +49 -0
  144. package/dist/StatusText.js.map +1 -0
  145. package/dist/Switch.d.ts +47 -0
  146. package/dist/Switch.d.ts.map +1 -0
  147. package/dist/Switch.js +17 -0
  148. package/dist/Switch.js.map +1 -0
  149. package/dist/Table.d.ts +22 -0
  150. package/dist/Table.d.ts.map +1 -0
  151. package/dist/Table.js +42 -0
  152. package/dist/Table.js.map +1 -0
  153. package/dist/Tabs.d.ts +96 -0
  154. package/dist/Tabs.d.ts.map +1 -0
  155. package/dist/Tabs.js +319 -0
  156. package/dist/Tabs.js.map +1 -0
  157. package/dist/Tag.d.ts +19 -0
  158. package/dist/Tag.d.ts.map +1 -0
  159. package/dist/Tag.js +50 -0
  160. package/dist/Tag.js.map +1 -0
  161. package/dist/Textarea.d.ts +32 -0
  162. package/dist/Textarea.d.ts.map +1 -0
  163. package/dist/Textarea.js +11 -0
  164. package/dist/Textarea.js.map +1 -0
  165. package/dist/Toast.d.ts +47 -0
  166. package/dist/Toast.d.ts.map +1 -0
  167. package/dist/Toast.js +110 -0
  168. package/dist/Toast.js.map +1 -0
  169. package/dist/ToggleGroup.d.ts +48 -0
  170. package/dist/ToggleGroup.d.ts.map +1 -0
  171. package/dist/ToggleGroup.js +27 -0
  172. package/dist/ToggleGroup.js.map +1 -0
  173. package/dist/Tooltip.d.ts +8 -0
  174. package/dist/Tooltip.d.ts.map +1 -0
  175. package/dist/Tooltip.js +81 -0
  176. package/dist/Tooltip.js.map +1 -0
  177. package/dist/_code-copy-button.d.ts +9 -0
  178. package/dist/_code-copy-button.d.ts.map +1 -0
  179. package/dist/_code-copy-button.js +72 -0
  180. package/dist/_code-copy-button.js.map +1 -0
  181. package/dist/_code-syntax.d.ts +81 -0
  182. package/dist/_code-syntax.d.ts.map +1 -0
  183. package/dist/_code-syntax.js +293 -0
  184. package/dist/_code-syntax.js.map +1 -0
  185. package/dist/_status-icons.d.ts +22 -0
  186. package/dist/_status-icons.d.ts.map +1 -0
  187. package/dist/_status-icons.js +40 -0
  188. package/dist/_status-icons.js.map +1 -0
  189. package/dist/index.d.ts +11 -0
  190. package/dist/index.d.ts.map +1 -0
  191. package/dist/index.js +11 -0
  192. package/dist/index.js.map +1 -0
  193. package/dist/lib/format-numbers.d.ts +51 -0
  194. package/dist/lib/format-numbers.d.ts.map +1 -0
  195. package/dist/lib/format-numbers.js +158 -0
  196. package/dist/lib/format-numbers.js.map +1 -0
  197. package/dist/lib/utils.d.ts +20 -0
  198. package/dist/lib/utils.d.ts.map +1 -0
  199. package/dist/lib/utils.js +23 -0
  200. package/dist/lib/utils.js.map +1 -0
  201. package/dist/public.d.ts +61 -0
  202. package/dist/public.d.ts.map +1 -0
  203. package/dist/public.js +65 -0
  204. package/dist/public.js.map +1 -0
  205. package/dist/theme-scope.d.ts +55 -0
  206. package/dist/theme-scope.d.ts.map +1 -0
  207. package/dist/theme-scope.js +90 -0
  208. package/dist/theme-scope.js.map +1 -0
  209. package/dist/tokens.generated.d.ts +335 -0
  210. package/dist/tokens.generated.d.ts.map +1 -0
  211. package/dist/tokens.generated.js +349 -0
  212. package/dist/tokens.generated.js.map +1 -0
  213. package/package.json +100 -3
  214. package/styles/README.md +104 -0
  215. package/styles/base.css +301 -0
  216. package/styles/canvas.css +147 -0
  217. package/styles/colors_and_type.css +136 -0
  218. package/styles/component-contracts.css +471 -0
  219. package/styles/fonts.css +28 -0
  220. package/styles/package.css +6 -0
  221. package/styles/primitive-skins.css +104 -0
  222. package/styles/semantic-bindings.css +119 -0
  223. package/styles/shell.css +50 -0
  224. package/styles/source.css +4 -0
  225. package/styles/tailwind-bridge.css +255 -0
  226. package/styles/theme.css +14 -0
  227. package/styles/tokens.css +1281 -0
  228. package/README.md +0 -3
@@ -0,0 +1,104 @@
1
+ /* The design system's skins for two primitives inside a Checkpoint theme
2
+ scope: the Avatar fallback colours and the Toast (Sonner) skin. theme.css
3
+ imports it, so every consumer gets them. Checkpoint loads it from its
4
+ styles/checkpoint/checkpoint.css, right after the opt-in radius doctrine
5
+ (shell.css), so the dashboard cascades these rules in the same place. */
6
+
7
+ @layer utilities {
8
+ /* ==============================================================
9
+ Avatars — fallback chrome only.
10
+ The square "identity tile" treatment (Instrument doctrine) applies
11
+ to the agent-tile CLASSES from the source design (`.nav-foot .who
12
+ .av`, `.av` in chat exchanges) — those never use the shared
13
+ primitive. The shared <Avatar> primitive is the PEOPLE avatar
14
+ (user menu, team tables, org switchers) and owns its rounded-full
15
+ geometry; the ui/avatar→checkpoint migration put every people
16
+ avatar on the primitive, so a data-slot radius override here
17
+ squared them all (reported as a regression 2026-07-13). Radius is
18
+ the primitive's; only fallback coloring is themed here.
19
+ ============================================================== */
20
+ [data-theme*='checkpoint'] [data-slot='avatar-fallback'] {
21
+ background: var(--bg-surface);
22
+ border: 1px solid var(--accent-line);
23
+ color: var(--accent-text);
24
+ font-family: var(--font-mono);
25
+ }
26
+ }
27
+
28
+ /* ==============================================================
29
+ TOAST — Sonner override
30
+ Unlayered, like the [data-sonner-toast] rule in Checkpoint's app/globals.css.
31
+ Wins purely by specificity: (0,2,0) vs (0,1,0) — no !important,
32
+ no layer dependency, no chunk-order roulette.
33
+ ============================================================== */
34
+
35
+ [data-theme*='checkpoint'] [data-sonner-toast] {
36
+ background-color: var(--bg-elevated);
37
+ border: 1px solid var(--border-default);
38
+ border-radius: var(--radius-md);
39
+ box-shadow: var(--shadow-md);
40
+ color: var(--fg-primary);
41
+ padding: 14px 16px;
42
+ gap: 12px;
43
+ min-width: 280px;
44
+ max-width: 380px;
45
+ font-family: var(--font-ui);
46
+ }
47
+
48
+ /* Title — 14 px / 500 */
49
+ [data-theme*='checkpoint'] [data-sonner-toast] [data-title] {
50
+ font-size: var(--text-sm);
51
+ font-weight: var(--font-weight-medium);
52
+ color: var(--fg-primary);
53
+ line-height: 1.35;
54
+ margin-bottom: 2px;
55
+ }
56
+
57
+ /* Description — 12.5 px / regular / secondary ink */
58
+ [data-theme*='checkpoint'] [data-sonner-toast] [data-description] {
59
+ font-size: var(--text-caption);
60
+ color: var(--fg-secondary);
61
+ line-height: var(--text-caption--line-height);
62
+ }
63
+
64
+ /* Icon slot — 18 × 18, slight top nudge to optically align with title */
65
+ [data-theme*='checkpoint'] [data-sonner-toast] [data-icon] {
66
+ flex-shrink: 0;
67
+ width: 18px;
68
+ height: 18px;
69
+ margin-top: 1px;
70
+ }
71
+
72
+ /* Status colour flows to the icon via currentColor on the svg */
73
+ [data-theme*='checkpoint'] [data-sonner-toast][data-type='success'] [data-icon] {
74
+ color: var(--allow-text);
75
+ }
76
+ [data-theme*='checkpoint'] [data-sonner-toast][data-type='error'] [data-icon] {
77
+ color: var(--deny-text);
78
+ }
79
+ [data-theme*='checkpoint'] [data-sonner-toast][data-type='warning'] [data-icon] {
80
+ color: var(--warn-text);
81
+ }
82
+ [data-theme*='checkpoint'] [data-sonner-toast][data-type='info'] [data-icon] {
83
+ color: var(--info-text);
84
+ }
85
+
86
+ /* Close button */
87
+ [data-theme*='checkpoint'] [data-sonner-toast] [data-close-button] {
88
+ background: transparent;
89
+ border: 0;
90
+ color: var(--fg-muted);
91
+ width: 20px;
92
+ height: 20px;
93
+ display: grid;
94
+ place-items: center;
95
+ border-radius: var(--radius-sm);
96
+ padding: 0;
97
+ transition:
98
+ color var(--duration-fast),
99
+ background var(--duration-fast);
100
+ }
101
+ [data-theme*='checkpoint'] [data-sonner-toast] [data-close-button]:hover {
102
+ color: var(--fg-primary);
103
+ background: var(--surface-default);
104
+ }
@@ -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
+ }
@@ -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,4 @@
1
+ /* The package's compiled components as a Tailwind source. Paths in @source
2
+ resolve against this file, so a consumer that imports it gets every class
3
+ the components use without an @source of its own. */
4
+ @source '../dist/**/*.js';
@@ -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
+ }
@@ -0,0 +1,14 @@
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';