@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 @@
1
+ {"version":3,"file":"tokens.generated.js","sourceRoot":"","sources":["../src/tokens.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;AAGvD,+CAA+C;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,UAAU;IAClB,UAAU,EAAE,eAAe;IAC3B,WAAW,EAAE,gBAAgB;IAC7B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,aAAa;IACvB,aAAa,EAAE,mBAAmB;IAClC,YAAY,EAAE,kBAAkB;IAChC,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,eAAe;IAC3B,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,eAAe;IAC3B,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE,cAAc;IACzB,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,YAAY,EAAE,iBAAiB;IAC/B,KAAK,EAAE,SAAS;IAChB,UAAU,EAAE,eAAe;IAC3B,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE,eAAe;IAC3B,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc;IACzB,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,cAAc;IACzB,SAAS,EAAE,cAAc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C,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC;IACnF,CAAC,CAAC;IACF,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5B,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,KAAK,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,MAAM,EAAE,CAAC,CAAC;IAC1F,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CACrE,CAAC;IACF,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AACtF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,103 @@
1
1
  {
2
2
  "name": "@vouched-id/ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "The Vouched design system: tokens, named themes and React components on Tailwind v4.",
5
+ "license": "UNLICENSED",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/vouched/design-system.git",
9
+ "directory": "packages/ui"
10
+ },
11
+ "type": "module",
12
+ "sideEffects": [
13
+ "*.css"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ },
20
+ "./tokens": {
21
+ "types": "./dist/tokens.generated.d.ts",
22
+ "default": "./dist/tokens.generated.js"
23
+ },
24
+ "./theme.css": "./styles/package.css",
25
+ "./source.css": "./styles/source.css",
26
+ "./fonts.css": "./styles/fonts.css",
27
+ "./styles/*": "./styles/*",
28
+ "./package.json": "./package.json"
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "styles"
33
+ ],
34
+ "peerDependencies": {
35
+ "react": "^19.0.0",
36
+ "react-dom": "^19.0.0",
37
+ "tailwindcss": "^4.0.0",
38
+ "next-themes": "^0.3.0 || ^0.4.0"
39
+ },
40
+ "dependencies": {
41
+ "@fontsource-variable/geist": "5.3.0",
42
+ "@fontsource-variable/geist-mono": "5.3.0",
43
+ "@fontsource/instrument-serif": "5.3.0",
44
+ "@fontsource/inter": "5.3.0",
45
+ "@fontsource/manrope": "5.3.0",
46
+ "@radix-ui/react-accordion": "^1.2.12",
47
+ "@radix-ui/react-alert-dialog": "^1.1.15",
48
+ "@radix-ui/react-avatar": "^1.1.11",
49
+ "@radix-ui/react-checkbox": "^1.3.3",
50
+ "@radix-ui/react-collapsible": "^1.1.12",
51
+ "@radix-ui/react-dialog": "^1.1.15",
52
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
53
+ "@radix-ui/react-hover-card": "^1.1.15",
54
+ "@radix-ui/react-label": "^2.1.8",
55
+ "@radix-ui/react-popover": "^1.1.15",
56
+ "@radix-ui/react-progress": "^1.1.8",
57
+ "@radix-ui/react-radio-group": "^1.3.8",
58
+ "@radix-ui/react-scroll-area": "^1.2.10",
59
+ "@radix-ui/react-select": "^2.2.6",
60
+ "@radix-ui/react-separator": "^1.1.8",
61
+ "@radix-ui/react-slider": "^1.3.6",
62
+ "@radix-ui/react-slot": "^1.2.4",
63
+ "@radix-ui/react-tabs": "^1.1.13",
64
+ "@radix-ui/react-toggle-group": "^1.1.11",
65
+ "@radix-ui/react-tooltip": "^1.2.8",
66
+ "class-variance-authority": "^0.7.1",
67
+ "clsx": "^2.1.1",
68
+ "lucide-react": "^0.478.0",
69
+ "motion": "^12.34.0",
70
+ "recharts": "^2.15.4",
71
+ "shiki": "^4.0.2",
72
+ "sonner": "^1.7.4",
73
+ "tailwind-merge": "^2.6.1",
74
+ "tailwindcss-animate": "^1.0.7"
75
+ },
76
+ "devDependencies": {
77
+ "@ladle/react": "5.1.1",
78
+ "@testing-library/jest-dom": "^6.9.1",
79
+ "@testing-library/react": "^16.3.2",
80
+ "@testing-library/user-event": "^14.6.1",
81
+ "@types/node": "^22.19.11",
82
+ "@types/react": "^19.2.14",
83
+ "@types/react-dom": "^19.2.3",
84
+ "@vitejs/plugin-react": "^5.1.4",
85
+ "culori": "4.0.2",
86
+ "jsdom": "^25.0.1",
87
+ "next-themes": "^0.3.0",
88
+ "postcss": "^8.5.10",
89
+ "prettier": "^3.2.5",
90
+ "react": "19.2.8",
91
+ "react-dom": "19.2.8",
92
+ "tailwindcss": "^4.3.3",
93
+ "typescript": "^5.9.3",
94
+ "vitest": "^4.1.0"
95
+ },
96
+ "scripts": {
97
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
98
+ "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.build.json --noEmit",
99
+ "test": "vitest run",
100
+ "ds:generate": "node scripts/generate-tokens.mjs",
101
+ "ds:generate:check": "node scripts/generate-tokens.mjs --check"
102
+ }
6
103
  }
@@ -0,0 +1,104 @@
1
+ # Design system stylesheets
2
+
3
+ This directory is the design system's styling source of truth.
4
+ The npm package ships it under `@vouched-id/ui/styles/`, the registry's `theme` item ships it under the same file names, and the catalog imports the same files.
5
+ The token rules (tiers, role families, the `R-text` rule, the shadcn utility map) are in [the tokens rule book](../../../docs/rule-book-tokens.md).
6
+
7
+ These sheets hold design-system rules only, so a consumer gets exactly what the components need.
8
+ A rule that styles bare elements, a product class or a product surface stays in the product's own stylesheets.
9
+
10
+ ## Files
11
+
12
+ `theme.css` imports the theme's sheets in cascade order.
13
+ The registry installs it as the theme's entry, the package's `@vouched-id/ui/theme.css` imports it through `package.css`, and `registry/manifest.mjs` reads the list of shipped files from it.
14
+ Two sheets are opt-in: the registry ships them beside the theme, `theme.css` does not import them, and the manifest lists them in `optInStylesheets`.
15
+
16
+ | Layer | File | Responsibility |
17
+ | -------------------------- | ------------------------- | ------------------------------------------------------------------------------------------- |
18
+ | Faces | `fonts.css` | The Fontsource faces and the font variables on `:root` |
19
+ | Foundation | `tokens.css` | Canonical primitives and light/dark semantic roles |
20
+ | Tailwind bridge | `tailwind-bridge.css` | Public utility mappings and the animation plugin |
21
+ | Canvas | `canvas.css` | Opt-in atmosphere and background treatments |
22
+ | Bindings | `semantic-bindings.css` | The shadcn and component names, bound to the semantic tokens on every theme |
23
+ | Base | `base.css` | The `dark` variant, element defaults, the vertical scroll fade and the dialog motion guards |
24
+ | Public component contracts | `component-contracts.css` | `data-slot` and `data-variant` treatments for the primitives |
25
+ | Primitive skins | `primitive-skins.css` | The Avatar fallback and the Toast skin inside a Checkpoint scope |
26
+ | Type (opt-in) | `colors_and_type.css` | Checkpoint-scoped heading, body and chrome assignments |
27
+ | Radius doctrine (opt-in) | `shell.css` | Inside a Checkpoint scope, the medium and large Tailwind radii flatten to 2px |
28
+
29
+ Two more sheets exist only for the npm package:
30
+
31
+ - `source.css` registers the package's compiled components (`../dist/**/*.js`) as a Tailwind source, so an app gets every class the components use without an `@source` of its own.
32
+ - `package.css` is what `@vouched-id/ui/theme.css` resolves to: `source.css`, then `theme.css`.
33
+
34
+ ## Semantic token contract
35
+
36
+ A scope carries two stamps: `data-theme` names the theme (`checkpoint`) and a `dark` or `light` class picks the mode.
37
+ Light semantics are defined at `:root` and on a `data-theme="checkpoint"` scope with the `.light` class; `.dark` selects dark mode, so next-themes' class on `<html>` sets the page mode.
38
+ A bare `.light` does not select light, because libraries put one on their own roots (React Flow does on every canvas).
39
+ The Checkpoint-scoped rules (the Avatar fallback and Toast skin in `primitive-skins.css`, the opt-in radius doctrine in `shell.css` and type assignments in `colors_and_type.css`, the bare `--spacing` unit) apply inside an element whose `data-theme` names `checkpoint`, so an app puts `data-theme="checkpoint"` on `<html>` or its root element.
40
+ Put both stamps on an element to force a subtree, for example `<div data-theme="checkpoint" className="dark">` for a dark panel on a light page.
41
+ `themeScopeProps({ theme, mode })` returns the two stamps.
42
+ The single-value stamps `data-theme="checkpoint-light"` (light) and `data-theme="checkpoint"` with no mode class (dark) are deprecated and still resolve for one release.
43
+
44
+ Primitives that portal to `<body>` (Dialog, AlertDialog, Sheet, Popover, Tooltip, Select, DropdownMenu, Toast) render outside the element that carries the scope, so they stamp a scope on their own surface.
45
+ That scope is the nearest `ThemeScopeProvider`'s, else the Checkpoint theme in the page's next-themes mode.
46
+ A subtree that forces a mode its portals should follow wraps itself in `<ThemeScopeProvider scope={{ theme: 'checkpoint', mode: 'dark' }}>` beside the stamps on its element.
47
+
48
+ Metric primitives (`--text-*`, `--spacing-*` steps, `--radius-*`, weights, tracking) are also global.
49
+ They intentionally shadow Tailwind's theme variables, so both `var()` consumers and compiled `text-*`/`tracking-*` utilities resolve the design system's ladder everywhere.
50
+ Only the bare `--spacing` base unit stays scoped to `[data-theme*="checkpoint"]` (see its in-place note in `tokens.css`).
51
+
52
+ Every design token lives in these sheets, inside `@layer base`.
53
+ An app declares no design token in its own stylesheet; its product tokens go in its own sheets, in the same layer.
54
+
55
+ New or changed UI uses semantic roles rather than theme-specific colors:
56
+
57
+ - foreground and surfaces: `--fg-primary`, `--fg-secondary`, `--fg-muted`, `--bg-canvas`, `--bg-surface`, and `--surface-strong`;
58
+ - structure: `--border-subtle`, `--border-default`, and the radius/spacing roles;
59
+ - actions and brand: `--brand`, `--action-bg`, `--action-fg`, and their hover/focus roles;
60
+ - status: `--allow`, `--warn`, `--deny`, and `--info`;
61
+ - thematic emphasis: `--highlight`, `--highlight-soft`, `--signal`, and `--signal-soft`.
62
+
63
+ These roles intentionally change by mode.
64
+ For example, `--highlight` resolves to cream on the dark canvas and accessible brass on light paper.
65
+ Pure white and cream are not canonical semantic choices for new code.
66
+
67
+ ## Loading
68
+
69
+ From the npm package, an app imports the theme once, right after Tailwind:
70
+
71
+ ```css
72
+ @import 'tailwindcss';
73
+ @import '@vouched-id/ui/theme.css';
74
+ ```
75
+
76
+ An app that interleaves its own sheets with the theme's imports `@vouched-id/ui/source.css` and the sheets it needs from `@vouched-id/ui/styles/`, in the order `theme.css` lists them.
77
+ An app that loads its faces another way (next/font, say) leaves `fonts.css` out and sets the same font variables.
78
+
79
+ A registry consumer imports the installed theme entry once, after Tailwind:
80
+
81
+ ```css
82
+ @import 'tailwindcss';
83
+ @import 'tw-animate-css';
84
+ @import './components/kya-ds/theme.css';
85
+ ```
86
+
87
+ `shadcn init` adds the `tw-animate-css` line.
88
+ The theme item installs `tailwindcss-animate`, which `tailwind-bridge.css` loads with `@plugin`.
89
+
90
+ Either way, to opt in to the Checkpoint type or the radius doctrine, import the sheet after the theme (`@vouched-id/ui/styles/colors_and_type.css` from the package, `./components/kya-ds/colors_and_type.css` from the registry; the same for `shell.css`).
91
+
92
+ The catalog imports the sheets one by one in `apps/catalog/.ladle/catalog.css`, the opt-in ones included, and loads the faces from `apps/catalog/.ladle/fonts.ts`.
93
+
94
+ Use `.checkpoint-canvas` only when a surface needs the opt-in atmosphere.
95
+ Stamp `data-theme` and a mode class only to force a mode on a subtree or to activate a sheet that scopes itself to the theme; the page mode needs neither, since `.dark` and `:root` already select it.
96
+
97
+ ## Change discipline
98
+
99
+ - Change tokens and public contracts here; do not patch the generated registry payloads or `src/tokens.generated.ts`.
100
+ - After a token change, run `pnpm --filter @vouched-id/ui ds:generate`; after any change here, run `pnpm registry:build`. Commit what both write.
101
+ - Verify both modes for every semantic change.
102
+ - Update the owning component story and registry metadata when a public primitive changes.
103
+ - A visual change needs before and after screenshots in the PR description. Screenshots that CI captures are evidence, not approval.
104
+ - Keep a product's own CSS in the product instead of promoting it here without an explicit design-system decision.
@@ -0,0 +1,301 @@
1
+ /* The design system's base: the dark variant, the element defaults, the
2
+ vertical scroll fade and the dialog motion guards, which the primitives need
3
+ beyond the tokens. theme.css imports it, Checkpoint imports it from its
4
+ app/globals.css, and the registry theme ships it as is.
5
+
6
+ It declares no custom properties outside its utility. Every token lives in
7
+ tokens.css and semantic-bindings.css, on each mode selector, so a scope on
8
+ <html> or any element below it owns them. */
9
+
10
+ /* `dark:` follows the `.dark` mode class. The second selector keeps the
11
+ deprecated stamp working: `data-theme='checkpoint'` with no mode class,
12
+ which meant dark. */
13
+ @custom-variant dark (&:is(.dark *, [data-theme='checkpoint']:where(:not(.light)) *));
14
+
15
+ /* Element defaults. Utility classes and the primitives' data-slot styles
16
+ live in the utilities layer and override these. */
17
+ @layer base {
18
+ *,
19
+ ::after,
20
+ ::before,
21
+ ::backdrop,
22
+ ::file-selector-button {
23
+ border-color: var(--color-gray-200, currentColor);
24
+ }
25
+
26
+ * {
27
+ @apply border-border outline-ring;
28
+ scrollbar-width: thin;
29
+ scrollbar-color: var(--border) transparent;
30
+ }
31
+
32
+ body {
33
+ @apply bg-background text-foreground min-h-svh w-full overscroll-none;
34
+ font-family: var(--font-ui);
35
+ /* DS body rhythm (v5 SSOT, step 3 — global element typography).
36
+ `ss01` = Inter's single-storey a/g; antialiasing keeps Manrope
37
+ at its intended optical weight. */
38
+ font-size: var(--text-base);
39
+ letter-spacing: var(--tracking-body);
40
+ font-feature-settings: 'ss01' 1;
41
+ -webkit-font-smoothing: antialiased;
42
+ -moz-osx-font-smoothing: grayscale;
43
+ }
44
+
45
+ /* Native form defaults for legacy controls that do not yet use a
46
+ Checkpoint field primitive. Utility classes and component-owned
47
+ data-slot styles live in the utilities layer and override these. */
48
+ input:not([type='checkbox']):not([type='radio']):not([type='color']):not(
49
+ [data-slot='command-input']
50
+ ),
51
+ textarea,
52
+ select {
53
+ background-color: var(--card);
54
+ border-color: var(--input);
55
+ }
56
+
57
+ code:not(pre code) {
58
+ border: 1px solid var(--code-border);
59
+ border-radius: var(--radius-sm);
60
+ background-color: var(--code-bg);
61
+ color: var(--code-text);
62
+ padding: 0.125rem 0.375rem;
63
+ font-family: var(--font-mono);
64
+ font-size: var(--text-code);
65
+ font-weight: var(--font-weight-medium);
66
+ }
67
+
68
+ /* Typography Scale — the DS heading ladder (mirrors the scoped
69
+ colors_and_type.css: h1 32/400, h2 22/500, h3 18/500 in Manrope
70
+ with the SSOT tracking). Sizes/weights/tracking consume the
71
+ :root metric tokens (flow-step-3 promotion) so this ladder and
72
+ tokens.css can't drift; line-heights stay literal —
73
+ they mirror colors_and_type.css's heading values, which are
74
+ deliberately tighter than the body-reading --text-*--line-height
75
+ rungs. Element defaults only — explicit Tailwind text-*
76
+ utilities on migrated pages still win (they live in the
77
+ utilities layer). */
78
+ h1,
79
+ h2,
80
+ h3,
81
+ h4,
82
+ h5,
83
+ h6 {
84
+ font-family: var(--font-display);
85
+ color: var(--fg-primary);
86
+ }
87
+
88
+ h1 {
89
+ font-size: var(--text-2xl); /* 32px */
90
+ line-height: 1.1;
91
+ font-weight: var(--font-weight-regular);
92
+ letter-spacing: var(--tracking-h1);
93
+ }
94
+
95
+ h2 {
96
+ font-size: var(--text-xl); /* 22px */
97
+ line-height: 1.25;
98
+ font-weight: var(--font-weight-medium);
99
+ letter-spacing: var(--tracking-tight);
100
+ }
101
+
102
+ h3 {
103
+ font-size: var(--text-lg); /* 18px */
104
+ line-height: 1.3;
105
+ font-weight: var(--font-weight-medium);
106
+ letter-spacing: var(--tracking-tight);
107
+ }
108
+
109
+ h4 {
110
+ font-size: var(--text-md); /* 16px */
111
+ line-height: 1.3;
112
+ font-weight: var(--font-weight-medium);
113
+ letter-spacing: var(--tracking-tight);
114
+ }
115
+
116
+ h5 {
117
+ /* 14px — was 15px, which violates Rule 05 (12px floor, no
118
+ 11/13/15 in product chrome). 16px would collapse the h4/h5
119
+ step; 14 keeps the ladder monotonic: 32/22/18/16/14/12. */
120
+ font-size: var(--text-sm);
121
+ line-height: 1.35;
122
+ font-weight: var(--font-weight-medium);
123
+ letter-spacing: var(--tracking-body);
124
+ }
125
+
126
+ h6 {
127
+ font-size: var(--text-xs); /* 12px */
128
+ line-height: 1.4;
129
+ font-weight: var(--font-weight-medium);
130
+ text-transform: uppercase;
131
+ letter-spacing: var(--tracking-wide);
132
+ }
133
+
134
+ /* Body text — DS reading rhythm; unclassed paragraphs sit on the
135
+ secondary ink so full-strength color stays reserved for
136
+ headings and emphasized spans (utilities override per page). */
137
+ p,
138
+ li {
139
+ line-height: 1.6;
140
+ }
141
+ p {
142
+ color: var(--fg-secondary);
143
+ }
144
+
145
+ /* Buttons — DS tracks body-tight, not loose chrome */
146
+ button,
147
+ .btn {
148
+ letter-spacing: var(--tracking-body);
149
+ font-weight: var(--font-weight-medium);
150
+ }
151
+
152
+ button:not(:disabled),
153
+ [role='button']:not(:disabled) {
154
+ cursor: pointer;
155
+ }
156
+
157
+ /* Selection — brand-violet wash, DS foreground */
158
+ ::selection {
159
+ background: var(--brand-soft);
160
+ color: var(--fg-primary);
161
+ }
162
+ }
163
+
164
+ /* ============================================
165
+ SCROLL FADE EFFECT (vertical)
166
+ Fade content edges as you scroll. Uses CSS Scroll-driven
167
+ Animations (animation-timeline: scroll(self)), no JS needed.
168
+ Progressive enhancement: the utility sits inside
169
+ @supports (animation-timeline: scroll()), so a browser without
170
+ scroll-driven animations (Firefox 151) renders the content with
171
+ no fade. Without the gate it ignores animation-timeline but still
172
+ runs the animations, on the document timeline with a 0s duration,
173
+ so each one lands on its last keyframe: the "scrolled to the end"
174
+ state, a permanent top fade over content that isn't scrolled at all.
175
+
176
+ The ScrollArea primitive and scrollable app surfaces use it as a
177
+ utility class. Checkpoint's app/globals.css adds the bottom-only and
178
+ horizontal variants on the same pattern.
179
+ Credit: ncdai/chanhdai.com @ncdai/scroll-fade-effect
180
+ ============================================ */
181
+
182
+ /* Every initial-value is 0px, so a container that does not scroll shows
183
+ no fade: while the scroll(self) timeline is inactive (the content does
184
+ not overflow) the animations never run and the initial values persist.
185
+
186
+ inherits: false keeps a parent's animated values out of a nested
187
+ scroll-fade child (an outer sheet body and an inner results list can
188
+ both be scroll-fade-effect-y; with inherits: true the child's implicit
189
+ 'from' keyframe picked up the parent's current values instead of the
190
+ declared initial-value).
191
+
192
+ show-bottom-mask handles "the bottom fade appears when the content IS
193
+ scrollable": it fires at 0% scroll progress (as soon as the timeline
194
+ activates) and sets the mask to 64px. If the timeline never activates
195
+ (no overflow), it never runs, so the mask stays 0px. */
196
+ @property --top-mask-height {
197
+ syntax: '<length>';
198
+ inherits: false;
199
+ initial-value: 0px;
200
+ }
201
+ @property --bottom-mask-height {
202
+ syntax: '<length>';
203
+ inherits: false;
204
+ initial-value: 0px;
205
+ }
206
+
207
+ @layer base {
208
+ @keyframes show-top-mask {
209
+ to {
210
+ --top-mask-height: var(--mask-height);
211
+ }
212
+ }
213
+ @keyframes show-bottom-mask {
214
+ to {
215
+ --bottom-mask-height: var(--mask-height);
216
+ }
217
+ }
218
+ @keyframes hide-bottom-mask {
219
+ to {
220
+ --bottom-mask-height: var(--spacing-0);
221
+ }
222
+ }
223
+ }
224
+
225
+ /* Three-animation chain for vertical fade:
226
+ 1. show-bottom-mask: fires at 0% scroll (timeline activates when
227
+ content overflows) → sets bottom fade to 64px immediately.
228
+ If content doesn't overflow, timeline never activates, this
229
+ never runs, bottom stays at 0px → no phantom fade.
230
+ 2. show-top-mask: fades in the top edge as the user scrolls away
231
+ from the top (first 2rem of scroll travel).
232
+ 3. hide-bottom-mask: fades out the bottom edge as the user
233
+ approaches the scroll end (last 2rem). */
234
+ @utility scroll-fade-effect-y {
235
+ @supports (animation-timeline: scroll()) {
236
+ --mask-height: var(--spacing-16);
237
+ --mask-offset-top: var(--spacing-0);
238
+ --mask-offset-bottom: var(--spacing-0);
239
+ --scroll-buffer: var(--spacing-8);
240
+ mask-image:
241
+ linear-gradient(to top, transparent, black 90%),
242
+ linear-gradient(to bottom, transparent 0%, black 100%), linear-gradient(black, black);
243
+ mask-size:
244
+ 100% var(--top-mask-height),
245
+ 100% var(--bottom-mask-height),
246
+ 100% 100%;
247
+ mask-repeat: no-repeat, no-repeat, no-repeat;
248
+ mask-position:
249
+ 0 var(--mask-offset-top),
250
+ 0 calc(100% - var(--mask-offset-bottom)),
251
+ 0 0;
252
+ mask-composite: exclude;
253
+ animation-name: show-bottom-mask, show-top-mask, hide-bottom-mask;
254
+ animation-timeline: scroll(self), scroll(self), scroll(self);
255
+ animation-range:
256
+ 0 0,
257
+ 0 var(--scroll-buffer),
258
+ calc(100% - var(--scroll-buffer)) 100%;
259
+ animation-fill-mode: both;
260
+ }
261
+ }
262
+
263
+ /* ============================================
264
+ DIALOG MOTION GUARDS
265
+ ============================================ */
266
+
267
+ @media (prefers-reduced-motion: reduce) {
268
+ /* Freeze modal/popover entrance + exit motion for reduced-motion users.
269
+ tailwindcss-animate (animate-in/out, zoom/fade) ships no such guard, so
270
+ gate the Radix dialog + alert-dialog slots here (covers the checkpoint
271
+ Dialog used by User Settings and the confirm AlertDialogs). */
272
+ [data-slot='dialog-overlay'],
273
+ [data-slot='dialog-content'],
274
+ [data-slot='alert-dialog-overlay'],
275
+ [data-slot='alert-dialog-content'] {
276
+ animation: none !important;
277
+ transition: none !important;
278
+ }
279
+ }
280
+
281
+ /* Radix `Presence` unmounts a closing dialog only after its exit-animation
282
+ `animationend` fires. Under React 19 that event can be missed when the
283
+ animation timeline never advances (the animation reads `running` yet
284
+ `currentTime` stays 0), so the dialog stays mounted at data-state="closed"
285
+ and its scroll-lock strands `pointer-events: none` on <body> — freezing the
286
+ whole page, so the close button looks dead even though the close fired.
287
+ Dropping the *exit* animation makes Radix take its immediate-unmount path
288
+ (`animationName === 'none'`), which always releases the body lock. Enter
289
+ animations (data-state="open") are untouched.
290
+
291
+ No `!important` needed: these selectors are unlayered, while the
292
+ `animate-out`/`fade-out-0`/`zoom-out-95` utilities live in Tailwind's
293
+ `@layer utilities`. The cascade ranks layer order above specificity, so an
294
+ unlayered declaration always beats a layered one — the exit animation is
295
+ overridden deterministically. */
296
+ [data-slot='dialog-overlay'][data-state='closed'],
297
+ [data-slot='dialog-content'][data-state='closed'],
298
+ [data-slot='alert-dialog-overlay'][data-state='closed'],
299
+ [data-slot='alert-dialog-content'][data-state='closed'] {
300
+ animation: none;
301
+ }
@@ -0,0 +1,147 @@
1
+ /* ==============================================================
2
+ Checkpoint Design System — Canvas atmosphere (GLOBAL)
3
+ ──────────────────────────────────────────────────────────────
4
+ The ds.html signature backdrop: aurora radials + wisps + bottom
5
+ glow + vignette + dot grid + grain, with the slow `ds-drift`
6
+ breath. Moved out of the dashboard-scoped checkpoint.css during
7
+ Checkpoint global theme enablement so brand/
8
+ marketing pages can opt in with the same `.checkpoint-canvas`
9
+ class. Token-driven: every intensity rides the `--tex-*` knobs
10
+ (defined by the DARK semantic block in tokens.css),
11
+ with `, 0` fallbacks so a light surface that accidentally takes
12
+ the class renders a clean canvas instead of invalid paint.
13
+
14
+ Inside `[data-theme*='checkpoint']` subtrees semantic-bindings.css
15
+ still force-disables the pseudo-element stack (the dashboard's
16
+ "cards carry the visual weight" decision) — that rule has higher
17
+ specificity, so the Checkpoint shell is unaffected by this file.
18
+
19
+ Apply to a single full-viewport wrapper, not <body> (body is
20
+ shared across themes). Children are lifted above the texture
21
+ pseudo-elements automatically.
22
+ ============================================================== */
23
+
24
+ @layer base {
25
+ .checkpoint-canvas {
26
+ isolation: isolate;
27
+ position: relative;
28
+ /* Aurora — three violet/lavender/peach radials that screen-lighten
29
+ the dark canvas. Painted on the ELEMENT (which carries the opaque
30
+ --bg-canvas base) so `screen` has an opaque backdrop to lighten.
31
+ Each alpha scales off --tex-aurora (0 = invisible). */
32
+ background-color: var(--bg-canvas);
33
+ background-image:
34
+ radial-gradient(
35
+ 120% 70% at 12% 8%,
36
+ color-mix(in srgb, var(--tex-hue-aurora-a) calc(var(--tex-aurora, 0) * 100%), transparent)
37
+ 0%,
38
+ transparent 55%
39
+ ),
40
+ radial-gradient(
41
+ 110% 60% at 88% 22%,
42
+ color-mix(in srgb, var(--tex-hue-aurora-b) calc(var(--tex-aurora, 0) * 85%), transparent) 0%,
43
+ transparent 55%
44
+ ),
45
+ radial-gradient(
46
+ 140% 80% at 50% 110%,
47
+ color-mix(in srgb, var(--tex-hue-aurora-c) calc(var(--tex-aurora, 0) * 55%), transparent) 0%,
48
+ transparent 60%
49
+ );
50
+ background-blend-mode: screen, screen, screen;
51
+ background-attachment: fixed;
52
+ }
53
+ .checkpoint-canvas::before {
54
+ content: '';
55
+ position: fixed;
56
+ inset: 0;
57
+ pointer-events: none;
58
+ z-index: 0;
59
+ background-image:
60
+ radial-gradient(
61
+ circle at 8% 6%,
62
+ color-mix(in srgb, var(--tex-hue-wisp-a) calc(var(--tex-wisp-a, 0) * 100%), transparent),
63
+ transparent 38%
64
+ ),
65
+ radial-gradient(
66
+ circle at 96% 94%,
67
+ color-mix(in srgb, var(--tex-hue-wisp-b) calc(var(--tex-wisp-b, 0) * 100%), transparent),
68
+ transparent 42%
69
+ ),
70
+ radial-gradient(
71
+ ellipse 120% 40% at 50% 108%,
72
+ color-mix(in srgb, var(--tex-hue-glow) calc(var(--tex-glow, 0) * 100%), transparent),
73
+ transparent 70%
74
+ ),
75
+ radial-gradient(
76
+ ellipse 90% 70% at 50% 50%,
77
+ transparent 55%,
78
+ color-mix(in srgb, var(--tex-hue-vignette) calc(var(--tex-vignette, 0) * 100%), transparent)
79
+ 100%
80
+ ),
81
+ radial-gradient(
82
+ circle at 1px 1px,
83
+ color-mix(in srgb, var(--tex-hue-dots) calc(var(--tex-dots, 0) * 100%), transparent) 1px,
84
+ transparent 1.4px
85
+ );
86
+ background-size:
87
+ auto,
88
+ auto,
89
+ auto,
90
+ auto,
91
+ 24px 24px;
92
+ /* ds-drift — the canvas breathes. Slow alternate sway; scale keeps
93
+ the translated edges covered. P3 of the token-architecture plan,
94
+ landed with the brand dark-first rollout. 48s/±3% after Dylan QA —
95
+ the original 90s/±1.5% read as static. */
96
+ animation: ds-drift var(--duration-drift) var(--ease-in-out) infinite alternate;
97
+ }
98
+ .checkpoint-canvas::after {
99
+ content: '';
100
+ position: fixed;
101
+ inset: 0;
102
+ pointer-events: none;
103
+ z-index: 0;
104
+ opacity: var(--tex-grain, 0);
105
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
106
+ }
107
+ /* Lift real content above the texture pseudo-elements. */
108
+ .checkpoint-canvas > * {
109
+ position: relative;
110
+ z-index: 1;
111
+ }
112
+
113
+ /* Escape hatch for a fullscreen takeover — the branded consent/success/auth
114
+ editors and /activity's focus mode, all marked `[data-fullscreen-takeover]`.
115
+ A takeover mounts inside the shell's right-hand content column, and the pin
116
+ above holds every direct shell child at `z-index:1` to clear the texture
117
+ pseudo-elements. The nav <aside> escapes that pin with its own `z-40`
118
+ (raised in KYA-969 so a floating agent mascot stops painting over it), but
119
+ the content column stays at 1 — so the nav paints over the takeover, and the
120
+ takeover's own `z-index:80` can't escape its column's stacking context.
121
+ Lift the column that contains it. The nav and the column are side-by-side
122
+ grid tracks, so this only affects the fixed overlay; the un-lifted state
123
+ keeps the mascot and page content below the nav, preserving KYA-969.
124
+
125
+ Lives here, next to the pin it works around, rather than in the stylesheet
126
+ of whichever feature happened to need it first: a feature-scoped stylesheet
127
+ only loads on the routes that import it, so the second takeover to come
128
+ along would silently not get the fix. */
129
+ .checkpoint-canvas > *:has([data-fullscreen-takeover]) {
130
+ z-index: 50;
131
+ }
132
+ }
133
+
134
+ @keyframes ds-drift {
135
+ from {
136
+ transform: translate3d(-3%, -2%, 0) scale(1.1);
137
+ }
138
+ to {
139
+ transform: translate3d(3%, 2%, 0) scale(1.1);
140
+ }
141
+ }
142
+
143
+ @media (prefers-reduced-motion: reduce) {
144
+ .checkpoint-canvas::before {
145
+ animation: none;
146
+ }
147
+ }