@vouched-id/ui 0.1.1 → 0.1.2

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/Button.d.ts CHANGED
@@ -22,11 +22,11 @@
22
22
  *
23
23
  * Radius is `--radius-btn` (tokens.css) — the SAME token
24
24
  * the SSOT `.btn` chrome consumes, so this primitive and the top-nav
25
- * buttons cannot drift apart. NOT `rounded-md`: the checkpoint
26
- * `--radius-md` token is also 8px, but inside the checkpoint scope the
25
+ * buttons cannot drift apart. NOT `rounded-md`: the
26
+ * `--radius-md` token is also 8px, but inside the base theme scope the
27
27
  * radius doctrine in shell.css flattens `.rounded-md` to `--radius-xs` (2px),
28
28
  * which would make this component sharper than the `.btn` chrome next
29
- * to it. The 8px fallback covers render scopes where the checkpoint tokens
29
+ * to it. The 8px fallback covers render scopes where the design system's tokens
30
30
  * aren't mounted. Focus ring uses the brand-soft halo + brand border
31
31
  * per the v5 accessibility commitment.
32
32
  */
package/dist/Button.js CHANGED
@@ -23,11 +23,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  *
24
24
  * Radius is `--radius-btn` (tokens.css) — the SAME token
25
25
  * the SSOT `.btn` chrome consumes, so this primitive and the top-nav
26
- * buttons cannot drift apart. NOT `rounded-md`: the checkpoint
27
- * `--radius-md` token is also 8px, but inside the checkpoint scope the
26
+ * buttons cannot drift apart. NOT `rounded-md`: the
27
+ * `--radius-md` token is also 8px, but inside the base theme scope the
28
28
  * radius doctrine in shell.css flattens `.rounded-md` to `--radius-xs` (2px),
29
29
  * which would make this component sharper than the `.btn` chrome next
30
- * to it. The 8px fallback covers render scopes where the checkpoint tokens
30
+ * to it. The 8px fallback covers render scopes where the design system's tokens
31
31
  * aren't mounted. Focus ring uses the brand-soft halo + brand border
32
32
  * per the v5 accessibility commitment.
33
33
  */
package/dist/Toast.d.ts CHANGED
@@ -16,7 +16,7 @@ import { Toaster as SonnerToaster, toast as sonnerToast } from 'sonner';
16
16
  *
17
17
  * Theme scope — identical problem/solution as Tooltip's portal scope.
18
18
  * Sonner renders its container inline (not via Radix portal), but it still
19
- * sits outside the `[data-theme*="checkpoint"]` ancestry unless we stamp
19
+ * sits outside the `[data-theme="base"]` ancestry unless we stamp
20
20
  * the scope ourselves. `useThemeScope()` gives the theme and the mode
21
21
  * (the nearest ThemeScopeProvider's, else next-themes') so the toast
22
22
  * chrome follows the shell's active theme instead of being pinned to dark.
package/dist/public.d.ts CHANGED
@@ -47,7 +47,7 @@ export { Kbd, type KbdProps } from './Kbd.js';
47
47
  export { EmptyState, type EmptyStateProps } from './EmptyState.js';
48
48
  export { Skeleton, type SkeletonProps } from './Skeleton.js';
49
49
  export { DenyGlyph, SuccessGlyph } from './_status-icons.js';
50
- export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope, useCheckpointThemeAttr, type ThemeMode, type ThemeScope, } from './theme-scope.js';
50
+ export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope, type ThemeMode, type ThemeScope, } from './theme-scope.js';
51
51
  export { CodeBlock, CodeToken, CodeCopyButton, type CodeBlockProps, type CodeTokenProps, type CodeTokenKind, type CodeCopyButtonProps, } from './CodeBlock.js';
52
52
  export { InstallCommand, buildInstallCommand, type InstallCommandProps, type PackageManager, type InstallKind, } from './InstallCommand.js';
53
53
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './Tooltip.js';
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,O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X,UAAU,EACV,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC,MAAM,mBAAmB,CAAC"}
package/dist/public.js CHANGED
@@ -49,7 +49,7 @@ export { Kbd } from './Kbd.js';
49
49
  export { EmptyState } from './EmptyState.js';
50
50
  export { Skeleton } from './Skeleton.js';
51
51
  export { DenyGlyph, SuccessGlyph } from './_status-icons.js';
52
- export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope, useCheckpointThemeAttr, } from './theme-scope.js';
52
+ export { DEFAULT_THEME, ThemeScopeProvider, themeScopeProps, modeOfScope, useThemeScope, } from './theme-scope.js';
53
53
  // Code display — recessed ink-well code + install commands
54
54
  export { CodeBlock, CodeToken, CodeCopyButton, } from './CodeBlock.js';
55
55
  export { InstallCommand, buildInstallCommand, } from './InstallCommand.js';
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAoB,MAAM,aAAa,CAAC;AAC7E,OAAO,EACL,WAAW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ACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GAGvB,MAAM,mBAAmB,CAAC"}
@@ -12,21 +12,20 @@ export interface ThemeScope {
12
12
  mode: ThemeMode;
13
13
  }
14
14
  /** The theme the primitives render in when no scope above them names another. */
15
- export declare const DEFAULT_THEME = "checkpoint";
15
+ export declare const DEFAULT_THEME = "base";
16
16
  /**
17
17
  * The stamps for a scope element. Spread them on the element and merge
18
18
  * `className` into its own classes, or set both by hand.
19
19
  *
20
- * @example <div {...themeScopeProps({ theme: 'checkpoint', mode: 'dark' })} />
20
+ * @example <div {...themeScopeProps({ theme: 'base', mode: 'dark' })} />
21
21
  */
22
22
  export declare function themeScopeProps(scope: ThemeScope): {
23
23
  'data-theme': string;
24
24
  className: ThemeMode;
25
25
  };
26
26
  /**
27
- * The mode a scope element selects, or undefined when it selects none. The
28
- * mode class wins; without one, the deprecated stamps that fold the mode into
29
- * the theme name still read: `checkpoint` is dark, any `*-light` is light.
27
+ * The mode a scope element selects, or undefined when it selects none: its
28
+ * mode class, since the theme name never carries a mode.
30
29
  */
31
30
  export declare function modeOfScope(element: Element | null | undefined): ThemeMode | undefined;
32
31
  /**
@@ -45,11 +44,4 @@ export declare function ThemeScopeProvider({ scope, children, }: {
45
44
  * ThemeScopeProvider's, else DEFAULT_THEME in the page's mode.
46
45
  */
47
46
  export declare function useThemeScope(): ThemeScope;
48
- /**
49
- * The scope as one `data-theme` value, in the deprecated form that folds the
50
- * mode into the theme name (`checkpoint` for dark, `checkpoint-light`).
51
- *
52
- * @deprecated Stamp `useThemeScope()` with `themeScopeProps`.
53
- */
54
- export declare function useCheckpointThemeAttr(): 'checkpoint' | 'checkpoint-light';
55
47
  //# sourceMappingURL=theme-scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme-scope.d.ts","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjF;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB,CAEA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAQtF;AAID;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,8FAEA;AA4BD;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAI1C;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,YAAY,GAAG,kBAAkB,CAE1E"}
1
+ {"version":3,"file":"theme-scope.d.ts","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjF;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB,CAEA;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAKtF;AAID;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,8FAEA;AA4BD;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAI1C"}
@@ -2,20 +2,19 @@
2
2
  import { createContext, createElement, useContext } from 'react';
3
3
  import { useTheme } from 'next-themes';
4
4
  /** The theme the primitives render in when no scope above them names another. */
5
- export const DEFAULT_THEME = 'checkpoint';
5
+ export const DEFAULT_THEME = 'base';
6
6
  /**
7
7
  * The stamps for a scope element. Spread them on the element and merge
8
8
  * `className` into its own classes, or set both by hand.
9
9
  *
10
- * @example <div {...themeScopeProps({ theme: 'checkpoint', mode: 'dark' })} />
10
+ * @example <div {...themeScopeProps({ theme: 'base', mode: 'dark' })} />
11
11
  */
12
12
  export function themeScopeProps(scope) {
13
13
  return { 'data-theme': scope.theme, className: scope.mode };
14
14
  }
15
15
  /**
16
- * The mode a scope element selects, or undefined when it selects none. The
17
- * mode class wins; without one, the deprecated stamps that fold the mode into
18
- * the theme name still read: `checkpoint` is dark, any `*-light` is light.
16
+ * The mode a scope element selects, or undefined when it selects none: its
17
+ * mode class, since the theme name never carries a mode.
19
18
  */
20
19
  export function modeOfScope(element) {
21
20
  if (!element)
@@ -24,11 +23,6 @@ export function modeOfScope(element) {
24
23
  return 'dark';
25
24
  if (element.classList.contains('light'))
26
25
  return 'light';
27
- const theme = element.getAttribute('data-theme');
28
- if (theme === DEFAULT_THEME)
29
- return 'dark';
30
- if (theme?.endsWith('-light'))
31
- return 'light';
32
26
  return undefined;
33
27
  }
34
28
  const ThemeScopeContext = createContext(null);
@@ -47,7 +41,7 @@ export function ThemeScopeProvider({ scope, children, }) {
47
41
  *
48
42
  * `resolvedTheme` is undefined until next-themes hydrates. A portaled surface
49
43
  * has no scope ancestor to inherit from, so during that window it adopts the
50
- * mode the pre-paint script stamped on the first Checkpoint scope in the
44
+ * mode the pre-paint script stamped on the first base theme scope in the
51
45
  * document rather than defaulting to dark, or a dialog open before hydration
52
46
  * would render dark chrome under a light shell. With nothing stamped it is
53
47
  * light: brand surfaces are pinned light, and server-rendered portals must not
@@ -63,7 +57,7 @@ function usePageMode() {
63
57
  if (effectiveTheme !== undefined)
64
58
  return effectiveTheme === 'dark' ? 'dark' : 'light';
65
59
  if (typeof document !== 'undefined') {
66
- const stamped = modeOfScope(document.querySelector("[data-theme*='checkpoint']"));
60
+ const stamped = modeOfScope(document.querySelector(`[data-theme='${DEFAULT_THEME}']`));
67
61
  if (stamped)
68
62
  return stamped;
69
63
  }
@@ -78,13 +72,4 @@ export function useThemeScope() {
78
72
  const mode = usePageMode();
79
73
  return provided ?? { theme: DEFAULT_THEME, mode };
80
74
  }
81
- /**
82
- * The scope as one `data-theme` value, in the deprecated form that folds the
83
- * mode into the theme name (`checkpoint` for dark, `checkpoint-light`).
84
- *
85
- * @deprecated Stamp `useThemeScope()` with `themeScopeProps`.
86
- */
87
- export function useCheckpointThemeAttr() {
88
- return useThemeScope().mode === 'dark' ? 'checkpoint' : 'checkpoint-light';
89
- }
90
75
  //# sourceMappingURL=theme-scope.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme-scope.js","sourceRoot":"","sources":["../src/theme-scope.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAgBvC,iFAAiF;AACjF,MAAM,CAAC,MA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2
2
  * GENERATED - do not edit. Run `pnpm ds:generate` to refresh it.
3
3
  *
4
- * Inputs (sha256 0de2b39690eeb30f, generator v1):
4
+ * Inputs (sha256 45e0c9267f73e2ea, generator v1):
5
5
  * - packages/ui/styles/tokens.css
6
6
  * - packages/ui/styles/tailwind-bridge.css
7
7
  * - packages/ui/styles/semantic-bindings.css
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * GENERATED - do not edit. Run `pnpm ds:generate` to refresh it.
3
3
  *
4
- * Inputs (sha256 0de2b39690eeb30f, generator v1):
4
+ * Inputs (sha256 45e0c9267f73e2ea, generator v1):
5
5
  * - packages/ui/styles/tokens.css
6
6
  * - packages/ui/styles/tailwind-bridge.css
7
7
  * - packages/ui/styles/semantic-bindings.css
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouched-id/ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The Vouched design system: tokens, named themes and React components on Tailwind v4.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/styles/README.md CHANGED
@@ -22,9 +22,9 @@ Two sheets are opt-in: the registry ships them beside the theme, `theme.css` doe
22
22
  | Bindings | `semantic-bindings.css` | The shadcn and component names, bound to the semantic tokens on every theme |
23
23
  | Base | `base.css` | The `dark` variant, element defaults, the vertical scroll fade and the dialog motion guards |
24
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 |
25
+ | Primitive skins | `primitive-skins.css` | The Avatar fallback and the Toast skin inside a base theme scope |
26
+ | Type (opt-in) | `colors_and_type.css` | Heading, body and chrome assignments inside a base theme scope |
27
+ | Radius doctrine (opt-in) | `shell.css` | Inside a base theme scope, the medium and large Tailwind radii flatten to 2px |
28
28
 
29
29
  The shared theme also loads `vouched-logo.css` for the logo artwork's motion and reduced-motion treatment.
30
30
 
@@ -35,21 +35,21 @@ Two more sheets exist only for the npm package:
35
35
 
36
36
  ## Semantic token contract
37
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.
38
+ A scope carries two stamps: `data-theme` names the theme (`base`) and a `dark` or `light` class picks the mode.
39
+ Light semantics are defined at `:root` and on a `data-theme="base"` scope with the `.light` class; `.dark` selects dark mode, so next-themes' class on `<html>` sets the page mode.
40
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.
41
+ The theme-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 `base`, so an app puts `data-theme="base"` on `<html>` or its root element.
42
+ Put both stamps on an element to force a subtree, for example `<div data-theme="base" className="dark">` for a dark panel on a light page.
43
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.
44
+ Only the class picks the mode: `data-theme="base"` without one takes its mode from the nearest ancestor that sets one.
45
45
 
46
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.
47
+ That scope is the nearest `ThemeScopeProvider`'s, else the base 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: 'base', mode: 'dark' }}>` beside the stamps on its element.
49
49
 
50
50
  Metric primitives (`--text-*`, `--spacing-*` steps, `--radius-*`, weights, tracking) are also global.
51
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`).
52
+ Only the bare `--spacing` base unit stays scoped to `[data-theme="base"]` (see its in-place note in `tokens.css`).
53
53
 
54
54
  Every design token lives in these sheets, inside `@layer base`.
55
55
  An app declares no design token in its own stylesheet; its product tokens go in its own sheets, in the same layer.
@@ -89,7 +89,7 @@ A registry consumer imports the installed theme entry once, after Tailwind:
89
89
  `shadcn init` adds the `tw-animate-css` line.
90
90
  The theme item installs `tailwindcss-animate`, which `tailwind-bridge.css` loads with `@plugin`.
91
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`).
92
+ Either way, to opt in to the theme's type assignments 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
93
 
94
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
95
 
package/styles/base.css CHANGED
@@ -7,10 +7,8 @@
7
7
  tokens.css and semantic-bindings.css, on each mode selector, so a scope on
8
8
  <html> or any element below it owns them. */
9
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)) *));
10
+ /* `dark:` follows the `.dark` mode class. */
11
+ @custom-variant dark (&:is(.dark *));
14
12
 
15
13
  /* Element defaults. Utility classes and the primitives' data-slot styles
16
14
  live in the utilities layer and override these. */
package/styles/canvas.css CHANGED
@@ -11,7 +11,7 @@
11
11
  with `, 0` fallbacks so a light surface that accidentally takes
12
12
  the class renders a clean canvas instead of invalid paint.
13
13
 
14
- Inside `[data-theme*='checkpoint']` subtrees semantic-bindings.css
14
+ Inside `[data-theme='base']` subtrees semantic-bindings.css
15
15
  still force-disables the pseudo-element stack (the dashboard's
16
16
  "cards carry the visual weight" decision) — that rule has higher
17
17
  specificity, so the Checkpoint shell is unaffected by this file.
@@ -14,10 +14,10 @@
14
14
  theme. The dashboard layouts and Ladle import it.
15
15
 
16
16
  Scope: every selector is namespaced behind
17
- `[data-theme*="checkpoint"]` so surfaces outside Checkpoint and other themes
17
+ `[data-theme="base"]` so surfaces outside the theme
18
18
  stay untouched. v5's canonical file binds at the bare element
19
19
  level (h1, body); the in-repo variant scopes those bindings to
20
- the checkpoint theme so it doesn't leak.
20
+ the base theme so it doesn't leak.
21
21
 
22
22
  Font loading: `--font-display` (Manrope) and `--font-ui`
23
23
  (Inter Tight) are supplied by next/font in
@@ -50,7 +50,7 @@
50
50
  (headings, body, chrome) inherits the same set without
51
51
  per-component repetition.
52
52
  ============================================================ */
53
- [data-theme*='checkpoint'] {
53
+ [data-theme='base'] {
54
54
  font-feature-settings: 'ss01' 1;
55
55
  -webkit-font-smoothing: antialiased;
56
56
  -moz-osx-font-smoothing: grayscale;
@@ -59,9 +59,9 @@
59
59
  /* ============================================================
60
60
  Tabular numerics — instrument feel
61
61
  ============================================================ */
62
- [data-theme*='checkpoint'] .tnum,
63
- [data-theme*='checkpoint'] table,
64
- [data-theme*='checkpoint'] [data-tnum] {
62
+ [data-theme='base'] .tnum,
63
+ [data-theme='base'] table,
64
+ [data-theme='base'] [data-tnum] {
65
65
  font-variant-numeric: tabular-nums;
66
66
  }
67
67
 
@@ -70,35 +70,35 @@
70
70
  The display class is the largest, thinnest, most-tracked
71
71
  variant; h1/h2/h3 step down weight and size.
72
72
  ============================================================ */
73
- [data-theme*='checkpoint'] :is(h1, .h1, h2, .h2, h3, .h3, .display, .title) {
73
+ [data-theme='base'] :is(h1, .h1, h2, .h2, h3, .h3, .display, .title) {
74
74
  font-family: var(--font-display);
75
75
  letter-spacing: var(--tracking-tight);
76
76
  margin: 0;
77
77
  color: var(--fg-primary);
78
78
  }
79
- [data-theme*='checkpoint'] .display {
79
+ [data-theme='base'] .display {
80
80
  font-weight: var(--font-weight-thin);
81
81
  font-size: var(--text-4xl);
82
82
  letter-spacing: var(--tracking-display);
83
83
  line-height: 1.02;
84
84
  }
85
- [data-theme*='checkpoint'] :is(h1, .h1) {
85
+ [data-theme='base'] :is(h1, .h1) {
86
86
  font-weight: var(--font-weight-regular);
87
87
  font-size: var(--text-2xl);
88
88
  letter-spacing: var(--tracking-h1);
89
89
  line-height: 1.1;
90
90
  }
91
- [data-theme*='checkpoint'] :is(h2, .h2) {
91
+ [data-theme='base'] :is(h2, .h2) {
92
92
  font-weight: var(--font-weight-medium);
93
93
  font-size: var(--text-xl);
94
94
  line-height: 1.25;
95
95
  }
96
- [data-theme*='checkpoint'] :is(h3, .h3) {
96
+ [data-theme='base'] :is(h3, .h3) {
97
97
  font-weight: var(--font-weight-medium);
98
98
  font-size: var(--text-lg);
99
99
  line-height: 1.3;
100
100
  }
101
- [data-theme*='checkpoint'] .title {
101
+ [data-theme='base'] .title {
102
102
  font-weight: var(--font-weight-medium);
103
103
  font-size: var(--text-base);
104
104
  line-height: 1.3;
@@ -110,7 +110,7 @@
110
110
  spans. Components that want full-strength body color (data
111
111
  rows, key facts) override with `color: var(--fg-primary)`.
112
112
  ============================================================ */
113
- [data-theme*='checkpoint'] p {
113
+ [data-theme='base'] p {
114
114
  margin: 0;
115
115
  font-size: var(--text-base);
116
116
  line-height: var(--text-base--line-height);
@@ -125,7 +125,7 @@
125
125
  Eyebrow — small mono chrome label, tracked uppercase. The
126
126
  "01 · ACTIVITY" or "LIVE FEED · SAMPLE" pattern.
127
127
  ============================================================ */
128
- [data-theme*='checkpoint'] .eyebrow {
128
+ [data-theme='base'] .eyebrow {
129
129
  font-family: var(--font-mono);
130
130
  font-size: var(--text-eyebrow);
131
131
  font-weight: var(--font-weight-medium);
@@ -1,4 +1,4 @@
1
- /* The design system's skins for two primitives inside a Checkpoint theme
1
+ /* The design system's skins for two primitives inside a base theme
2
2
  scope: the Avatar fallback colours and the Toast (Sonner) skin. theme.css
3
3
  imports it, so every consumer gets them. Checkpoint loads it from its
4
4
  styles/checkpoint/checkpoint.css, right after the opt-in radius doctrine
@@ -17,7 +17,7 @@
17
17
  squared them all (reported as a regression 2026-07-13). Radius is
18
18
  the primitive's; only fallback coloring is themed here.
19
19
  ============================================================== */
20
- [data-theme*='checkpoint'] [data-slot='avatar-fallback'] {
20
+ [data-theme='base'] [data-slot='avatar-fallback'] {
21
21
  background: var(--bg-surface);
22
22
  border: 1px solid var(--accent-line);
23
23
  color: var(--accent-text);
@@ -32,7 +32,7 @@
32
32
  no layer dependency, no chunk-order roulette.
33
33
  ============================================================== */
34
34
 
35
- [data-theme*='checkpoint'] [data-sonner-toast] {
35
+ [data-theme='base'] [data-sonner-toast] {
36
36
  background-color: var(--bg-elevated);
37
37
  border: 1px solid var(--border-default);
38
38
  border-radius: var(--radius-md);
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  /* Title — 14 px / 500 */
49
- [data-theme*='checkpoint'] [data-sonner-toast] [data-title] {
49
+ [data-theme='base'] [data-sonner-toast] [data-title] {
50
50
  font-size: var(--text-sm);
51
51
  font-weight: var(--font-weight-medium);
52
52
  color: var(--fg-primary);
@@ -55,14 +55,14 @@
55
55
  }
56
56
 
57
57
  /* Description — 12.5 px / regular / secondary ink */
58
- [data-theme*='checkpoint'] [data-sonner-toast] [data-description] {
58
+ [data-theme='base'] [data-sonner-toast] [data-description] {
59
59
  font-size: var(--text-caption);
60
60
  color: var(--fg-secondary);
61
61
  line-height: var(--text-caption--line-height);
62
62
  }
63
63
 
64
64
  /* Icon slot — 18 × 18, slight top nudge to optically align with title */
65
- [data-theme*='checkpoint'] [data-sonner-toast] [data-icon] {
65
+ [data-theme='base'] [data-sonner-toast] [data-icon] {
66
66
  flex-shrink: 0;
67
67
  width: 18px;
68
68
  height: 18px;
@@ -70,21 +70,21 @@
70
70
  }
71
71
 
72
72
  /* Status colour flows to the icon via currentColor on the svg */
73
- [data-theme*='checkpoint'] [data-sonner-toast][data-type='success'] [data-icon] {
73
+ [data-theme='base'] [data-sonner-toast][data-type='success'] [data-icon] {
74
74
  color: var(--allow-text);
75
75
  }
76
- [data-theme*='checkpoint'] [data-sonner-toast][data-type='error'] [data-icon] {
76
+ [data-theme='base'] [data-sonner-toast][data-type='error'] [data-icon] {
77
77
  color: var(--deny-text);
78
78
  }
79
- [data-theme*='checkpoint'] [data-sonner-toast][data-type='warning'] [data-icon] {
79
+ [data-theme='base'] [data-sonner-toast][data-type='warning'] [data-icon] {
80
80
  color: var(--warn-text);
81
81
  }
82
- [data-theme*='checkpoint'] [data-sonner-toast][data-type='info'] [data-icon] {
82
+ [data-theme='base'] [data-sonner-toast][data-type='info'] [data-icon] {
83
83
  color: var(--info-text);
84
84
  }
85
85
 
86
86
  /* Close button */
87
- [data-theme*='checkpoint'] [data-sonner-toast] [data-close-button] {
87
+ [data-theme='base'] [data-sonner-toast] [data-close-button] {
88
88
  background: transparent;
89
89
  border: 0;
90
90
  color: var(--fg-muted);
@@ -98,7 +98,7 @@
98
98
  color var(--duration-fast),
99
99
  background var(--duration-fast);
100
100
  }
101
- [data-theme*='checkpoint'] [data-sonner-toast] [data-close-button]:hover {
101
+ [data-theme='base'] [data-sonner-toast] [data-close-button]:hover {
102
102
  color: var(--fg-primary);
103
103
  background: var(--surface-default);
104
104
  }
@@ -30,9 +30,8 @@
30
30
  @layer base {
31
31
  :root,
32
32
  .dark,
33
- [data-theme='checkpoint'],
34
- :root[data-theme='checkpoint'],
35
- [data-theme='checkpoint-light'] {
33
+ [data-theme='base'],
34
+ :root[data-theme='base'] {
36
35
  /* ---------- shadcn surfaces and text ---------- */
37
36
  --background: var(--bg-canvas);
38
37
  --foreground: var(--fg-primary);
@@ -109,10 +108,10 @@
109
108
 
110
109
  /* ---------- Canvas atmosphere, kept off ----------
111
110
  The .checkpoint-canvas::before/after wisp, dot and grain stack from
112
- canvas.css stays off inside the Checkpoint theme: cards carry the
111
+ canvas.css stays off inside the base theme: cards carry the
113
112
  visual weight. To revive the ambient texture, remove this rule. */
114
- [data-theme*='checkpoint'].checkpoint-canvas::before,
115
- [data-theme*='checkpoint'].checkpoint-canvas::after {
113
+ [data-theme='base'].checkpoint-canvas::before,
114
+ [data-theme='base'].checkpoint-canvas::after {
116
115
  display: none !important;
117
116
  background: none !important;
118
117
  content: none !important;
package/styles/shell.css CHANGED
@@ -1,4 +1,4 @@
1
- /* The design system's radius doctrine: inside a Checkpoint theme scope, the
1
+ /* The design system's radius doctrine: inside a base theme scope, the
2
2
  medium and large Tailwind radii flatten to 2px. It is opt-in. The registry
3
3
  ships it beside theme.css, which does not import it; a consumer that wants
4
4
  the doctrine imports it after the theme. Checkpoint's
@@ -11,7 +11,7 @@
11
11
  ==============================================================
12
12
  The Instrument doctrine: hard 2px corners by default, no 12px+
13
13
  rounding anywhere in product. Flatten the medium-large Tailwind
14
- radii under the checkpoint theme so the hundreds of legacy
14
+ radii under the base theme so the hundreds of legacy
15
15
  `rounded-md/lg/xl/2xl/3xl` callsites in Checkpoint components inherit the
16
16
  right shape without an N×N migration sweep. Shapes that genuinely
17
17
  need a circle (dots, avatars) keep `rounded-full` (untouched).
@@ -26,10 +26,10 @@
26
26
  match the home widget --radius-lg (14px). Flattening it to
27
27
  --radius-xs was making the card-radius unification pass invisible.
28
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 {
29
+ [data-theme='base'] .rounded-md,
30
+ [data-theme='base'] .rounded-lg,
31
+ [data-theme='base'] .rounded-2xl,
32
+ [data-theme='base'] .rounded-3xl {
33
33
  border-radius: var(--radius-xs);
34
34
  }
35
35
  /* Arbitrary px values that scatter across Checkpoint components — every value
@@ -38,13 +38,13 @@
38
38
  intended geometry. The chat composer (`[data-slot="chat-composer"]`)
39
39
  is the one allowed exception: Checkpoint's
40
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\] {
41
+ [data-theme='base'] .rounded-\[4px\],
42
+ [data-theme='base'] .rounded-\[6px\],
43
+ [data-theme='base'] .rounded-\[8px\],
44
+ [data-theme='base'] .rounded-\[10px\],
45
+ [data-theme='base'] .rounded-\[12px\],
46
+ [data-theme='base'] .rounded-\[14px\],
47
+ [data-theme='base'] .rounded-\[16px\] {
48
48
  border-radius: var(--radius-xs);
49
49
  }
50
50
  }
@@ -207,7 +207,7 @@
207
207
  themes. --tw-prose-pre-* stay unbound: the Checkpoint Code Block
208
208
  component owns fenced-code surfaces (components/features/chat/code-block/). */
209
209
  @layer base {
210
- [data-theme*='checkpoint'] {
210
+ [data-theme='base'] {
211
211
  --tw-prose-body: var(--fg-primary);
212
212
  --tw-prose-headings: var(--fg-primary);
213
213
  --tw-prose-lead: var(--fg-secondary);
package/styles/tokens.css CHANGED
@@ -29,7 +29,7 @@
29
29
 
30
30
  Scope (theme and mode):
31
31
  · Theme and mode are two stamps. `data-theme` names the theme
32
- (`checkpoint`); the `.dark` or `.light` class picks the mode, the
32
+ (`base`); the `.dark` or `.light` class picks the mode, the
33
33
  way next-themes' `attribute="class"` sets it on <html>. COLOR
34
34
  primitives and the LIGHT/DARK semantic layers are defined at
35
35
  `:root`, `.light` and `.dark`, so every surface consumes the design
@@ -38,11 +38,10 @@
38
38
  element (the Checkpoint shell, portaled menus, hi-ai, /dashboard/ds).
39
39
  The mode blocks re-declare every role on any element with a mode
40
40
  class, so the roles there resolve from that element's own bases.
41
- · `[data-theme*='checkpoint']` gates Checkpoint's own stylesheets
42
- (checkpoint.css et al.) to its surfaces, in either mode.
43
- · Deprecated stamps that fold the mode into the theme name still
44
- resolve: `data-theme='checkpoint'` with no mode class is dark, and
45
- `data-theme='checkpoint-light'` is light.
41
+ · `[data-theme='base']` gates the design system's own scoped rules
42
+ to themed surfaces, in either mode.
43
+ · A mode is only ever the class: `data-theme='base'` without one
44
+ takes its mode from the nearest ancestor that sets one.
46
45
  · METRIC primitives (`--text-*`, `--spacing-*` steps,
47
46
  `--radius-*` steps, weights, tracking) are GLOBAL (`:root`)
48
47
  as of the flow-step-3 metric promotion. They share names
@@ -156,7 +155,7 @@
156
155
  --color-vouched-pink: #ee4fa4;
157
156
  --color-vouched-sun: #f7a23b;
158
157
 
159
- /* Vouched logo fill outside a Checkpoint theme scope (blog, hosted
158
+ /* Vouched logo fill outside a base theme scope (blog, hosted
160
159
  consent, /connect): blue, as on paper. The theme blocks below set
161
160
  it per theme. */
162
161
  --kya-mark: var(--color-vouched-blue);
@@ -580,7 +579,7 @@
580
579
  The metric scales (type/spacing steps/radius/weights/tracking)
581
580
  live in the GLOBAL primitives block above.
582
581
  ============================================================ */
583
- [data-theme*='checkpoint'] {
582
+ [data-theme='base'] {
584
583
  /* ---------- Colliding ramp aliases → global `--ck-*` ---------- */
585
584
  --color-violet-50: var(--ck-violet-50);
586
585
  --color-violet-100: var(--ck-violet-100);
@@ -630,10 +629,7 @@
630
629
 
631
630
  Cascade note: the LIGHT block below also matches <html> through
632
631
  `:root` at the same (0,1,0) specificity, so `:root.dark` is listed to
633
- win on <html class="dark"> whatever the source order. The last two
634
- selectors are the deprecated stamp, `data-theme='checkpoint'` with no
635
- mode class; `:where()` keeps their specificity that of the attribute
636
- alone.
632
+ win on <html class="dark"> whatever the source order.
637
633
 
638
634
  Derived washes: most -soft, -faint, -line, -glow and -bg alphas
639
635
  below are color-mix() of their base, so a theme retunes them by
@@ -643,9 +639,7 @@
643
639
  that descendant inherits; re-declare them there too.
644
640
  ============================================================ */
645
641
  .dark,
646
- :root.dark,
647
- [data-theme='checkpoint']:where(:not(.light)),
648
- :root[data-theme='checkpoint']:where(:not(.light)) {
642
+ :root.dark {
649
643
  color-scheme: dark;
650
644
 
651
645
  /* ---------- Surface ladder ----------
@@ -941,19 +935,17 @@
941
935
  On the light --deny (#c01f3c) white already reads 6.0:1, and --on-deny
942
936
  (--bg-surface, #ffffff) the same 6.0:1, so the fill is --deny unchanged. */
943
937
  :root,
944
- [data-theme='checkpoint']:where(.light),
945
- [data-theme='checkpoint-light'] {
938
+ [data-theme='base']:where(.light) {
946
939
  --deny-fill: var(--deny);
947
940
  }
948
941
 
949
942
  /* ============================================================
950
943
  LAYER 2.5 · STRUCTURE (theme-invariant)
951
944
  Dimensions that are the same in dark and light live under
952
- [data-theme*='checkpoint'], which matches every checkpoint scope
953
- (the theme name with either mode class, and the deprecated
954
- 'checkpoint-light' stamp), so no mode leaves them undefined.
945
+ [data-theme='base'], which matches every base scope whatever
946
+ its mode class, so no mode leaves them undefined.
955
947
  ============================================================ */
956
- [data-theme*='checkpoint'] {
948
+ [data-theme='base'] {
957
949
  /* Detail-sheet locked width (parity-spec locked rhythm) — the one
958
950
  max-width every side-anchored checkpoint Sheet snaps to.
959
951
  Consumed as `w-full max-w-[var(--sheet-width)]` so sub-540px
@@ -969,8 +961,7 @@
969
961
  so it is declared once, here at :root, and every scope inherits it.
970
962
  Every value is a global primitive (or a literal), never a
971
963
  theme-varying semantic, which is what lets one :root declaration
972
- resolve the same under `.dark`, `.light` and their deprecated
973
- `data-theme` forms alike. --code-block-bg and
964
+ resolve the same under `.dark` and `.light` alike. --code-block-bg and
974
965
  --code-block-surface sit in the two theme blocks, which both declare
975
966
  the ink-800 well and its ink-600 surface.
976
967
 
@@ -1049,17 +1040,15 @@
1049
1040
  The default (`:root`): marketing and legal are forced light by
1050
1041
  providers.tsx, the auth surface resolves the user or system theme, and
1051
1042
  operator surfaces resolve light here unless next-themes adds `.dark`.
1052
- `data-theme='checkpoint'` with the `.light` class forces light for a
1053
- subtree; `data-theme='checkpoint-light'` is its deprecated form. A bare
1054
- `.light` does not count: libraries put one on their own roots (React
1055
- Flow does on every canvas).
1043
+ `data-theme='base'` with the `.light` class forces light for a
1044
+ subtree. A bare `.light` does not count: libraries put one on their
1045
+ own roots (React Flow does on every canvas).
1056
1046
  The dark block above wins on <html class="dark"> through `:root.dark`.
1057
1047
  On a subtree, the element that carries a mode class declares its own
1058
1048
  roles, so the nearest one wins.
1059
1049
  ============================================================ */
1060
1050
  :root,
1061
- [data-theme='checkpoint']:where(.light),
1062
- [data-theme='checkpoint-light'] {
1051
+ [data-theme='base']:where(.light) {
1063
1052
  color-scheme: light;
1064
1053
 
1065
1054
  /* Paper: a cool near-white carrying a breath of the Vouched hue