@vouched-id/ui 0.1.0 → 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/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/theme.css CHANGED
@@ -12,3 +12,4 @@
12
12
  @import './base.css';
13
13
  @import './component-contracts.css';
14
14
  @import './primitive-skins.css';
15
+ @import './vouched-logo.css';
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