@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 @@
|
|
|
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,UA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,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.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
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
|
}
|
package/styles/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
The shared theme also loads `vouched-logo.css` for the logo artwork's motion and reduced-motion treatment.
|
|
30
|
+
|
|
31
|
+
Two more sheets exist only for the npm package:
|
|
32
|
+
|
|
33
|
+
- `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.
|
|
34
|
+
- `package.css` is what `@vouched-id/ui/theme.css` resolves to: `source.css`, then `theme.css`.
|
|
35
|
+
|
|
36
|
+
## Semantic token contract
|
|
37
|
+
|
|
38
|
+
A scope carries two stamps: `data-theme` names the theme (`checkpoint`) and a `dark` or `light` class picks the mode.
|
|
39
|
+
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.
|
|
40
|
+
A bare `.light` does not select light, because libraries put one on their own roots (React Flow does on every canvas).
|
|
41
|
+
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.
|
|
42
|
+
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.
|
|
43
|
+
`themeScopeProps({ theme, mode })` returns the two stamps.
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
That scope is the nearest `ThemeScopeProvider`'s, else the Checkpoint theme in the page's next-themes mode.
|
|
48
|
+
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.
|
|
49
|
+
|
|
50
|
+
Metric primitives (`--text-*`, `--spacing-*` steps, `--radius-*`, weights, tracking) are also global.
|
|
51
|
+
They intentionally shadow Tailwind's theme variables, so both `var()` consumers and compiled `text-*`/`tracking-*` utilities resolve the design system's ladder everywhere.
|
|
52
|
+
Only the bare `--spacing` base unit stays scoped to `[data-theme*="checkpoint"]` (see its in-place note in `tokens.css`).
|
|
53
|
+
|
|
54
|
+
Every design token lives in these sheets, inside `@layer base`.
|
|
55
|
+
An app declares no design token in its own stylesheet; its product tokens go in its own sheets, in the same layer.
|
|
56
|
+
|
|
57
|
+
New or changed UI uses semantic roles rather than theme-specific colors:
|
|
58
|
+
|
|
59
|
+
- foreground and surfaces: `--fg-primary`, `--fg-secondary`, `--fg-muted`, `--bg-canvas`, `--bg-surface`, and `--surface-strong`;
|
|
60
|
+
- structure: `--border-subtle`, `--border-default`, and the radius/spacing roles;
|
|
61
|
+
- actions and brand: `--brand`, `--action-bg`, `--action-fg`, and their hover/focus roles;
|
|
62
|
+
- status: `--allow`, `--warn`, `--deny`, and `--info`;
|
|
63
|
+
- thematic emphasis: `--highlight`, `--highlight-soft`, `--signal`, and `--signal-soft`.
|
|
64
|
+
|
|
65
|
+
These roles intentionally change by mode.
|
|
66
|
+
For example, `--highlight` resolves to cream on the dark canvas and accessible brass on light paper.
|
|
67
|
+
Pure white and cream are not canonical semantic choices for new code.
|
|
68
|
+
|
|
69
|
+
## Loading
|
|
70
|
+
|
|
71
|
+
From the npm package, an app imports the theme once, right after Tailwind:
|
|
72
|
+
|
|
73
|
+
```css
|
|
74
|
+
@import 'tailwindcss';
|
|
75
|
+
@import '@vouched-id/ui/theme.css';
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
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.
|
|
79
|
+
An app that loads its faces another way (next/font, say) leaves `fonts.css` out and sets the same font variables.
|
|
80
|
+
|
|
81
|
+
A registry consumer imports the installed theme entry once, after Tailwind:
|
|
82
|
+
|
|
83
|
+
```css
|
|
84
|
+
@import 'tailwindcss';
|
|
85
|
+
@import 'tw-animate-css';
|
|
86
|
+
@import './components/kya-ds/theme.css';
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`shadcn init` adds the `tw-animate-css` line.
|
|
90
|
+
The theme item installs `tailwindcss-animate`, which `tailwind-bridge.css` loads with `@plugin`.
|
|
91
|
+
|
|
92
|
+
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`).
|
|
93
|
+
|
|
94
|
+
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`.
|
|
95
|
+
|
|
96
|
+
Use `.checkpoint-canvas` only when a surface needs the opt-in atmosphere.
|
|
97
|
+
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.
|
|
98
|
+
|
|
99
|
+
## Change discipline
|
|
100
|
+
|
|
101
|
+
- Change tokens and public contracts here; do not patch the generated registry payloads or `src/tokens.generated.ts`.
|
|
102
|
+
- After a token change, run `pnpm --filter @vouched-id/ui ds:generate`; after any change here, run `pnpm registry:build`. Commit what both write.
|
|
103
|
+
- Verify both modes for every semantic change.
|
|
104
|
+
- Update the owning component story and registry metadata when a public primitive changes.
|
|
105
|
+
- A visual change needs before and after screenshots in the PR description. Screenshots that CI captures are evidence, not approval.
|
|
106
|
+
- Keep a product's own CSS in the product instead of promoting it here without an explicit design-system decision.
|
package/styles/base.css
ADDED
|
@@ -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
|
+
}
|