@ponchia/ui 0.3.3 → 0.3.4

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/docs/reference.md CHANGED
@@ -9,7 +9,7 @@ rendering of every class is the kitchen-sink demo:
9
9
  **<https://ponchia.github.io/bronto-ui/>**. Theming knobs and the token
10
10
  contract: [docs/theming.md](theming.md).
11
11
 
12
- - 226 classes across 101 component groups
12
+ - 230 classes across 101 component groups
13
13
  - Import the typed registry: `import { cls, ui, cx } from '@ponchia/ui/classes'`
14
14
  - Tokens as data: `import { cssVars, tokens, themeColor } from '@ponchia/ui/tokens'`
15
15
 
@@ -38,6 +38,7 @@ each one matches a real selector in the stylesheet.
38
38
  | `cls.alertTitle` | `ui-alert__title` | part |
39
39
  | `cls.alertAccent` | `ui-alert--accent` | modifier |
40
40
  | `cls.alertDanger` | `ui-alert--danger` | modifier |
41
+ | `cls.alertInfo` | `ui-alert--info` | modifier |
41
42
  | `cls.alertSuccess` | `ui-alert--success` | modifier |
42
43
  | `cls.alertWarning` | `ui-alert--warning` | modifier |
43
44
 
@@ -166,6 +167,7 @@ each one matches a real selector in the stylesheet.
166
167
  | `cls.badgeAccent` | `ui-badge--accent` | modifier |
167
168
  | `cls.badgeDanger` | `ui-badge--danger` | modifier |
168
169
  | `cls.badgeDot` | `ui-badge--dot` | modifier |
170
+ | `cls.badgeInfo` | `ui-badge--info` | modifier |
169
171
  | `cls.badgeMuted` | `ui-badge--muted` | modifier |
170
172
  | `cls.badgeSuccess` | `ui-badge--success` | modifier |
171
173
  | `cls.badgeWarning` | `ui-badge--warning` | modifier |
@@ -273,6 +275,7 @@ each one matches a real selector in the stylesheet.
273
275
  | `cls.dot` | `ui-dot` | base |
274
276
  | `cls.dotAccent` | `ui-dot--accent` | modifier |
275
277
  | `cls.dotDanger` | `ui-dot--danger` | modifier |
278
+ | `cls.dotInfo` | `ui-dot--info` | modifier |
276
279
  | `cls.dotLive` | `ui-dot--live` | modifier |
277
280
  | `cls.dotSuccess` | `ui-dot--success` | modifier |
278
281
  | `cls.dotWarning` | `ui-dot--warning` | modifier |
@@ -727,6 +730,7 @@ each one matches a real selector in the stylesheet.
727
730
  | `cls.toastTitle` | `ui-toast__title` | part |
728
731
  | `cls.toastAccent` | `ui-toast--accent` | modifier |
729
732
  | `cls.toastDanger` | `ui-toast--danger` | modifier |
733
+ | `cls.toastInfo` | `ui-toast--info` | modifier |
730
734
  | `cls.toastSuccess` | `ui-toast--success` | modifier |
731
735
  | `cls.toastWarning` | `ui-toast--warning` | modifier |
732
736
 
@@ -782,7 +786,7 @@ works in any framework without a binding layer:
782
786
  `ui-button`; the leading spinner is injected by CSS with no extra
783
787
  markup or class. `ui-button--sm`/`--lg` size it.
784
788
  - **Badge tone** — `ui.badge({ tone })` emits the framework tone
785
- (`accent|success|warning|danger|muted`). Mapping an app's own variant
789
+ (`accent|success|warning|danger|info|muted`). Mapping an app's own variant
786
790
  vocabulary onto a tone is application logic, not a framework class.
787
791
  - **Modal** — native `<dialog>` gets backdrop + top-layer + focus-trap
788
792
  free. For a controlled/portal modal, add `is-open`
@@ -813,8 +817,8 @@ Exact mirror of the `:root` blocks in `css/tokens.css`
813
817
  | `--space-2xl` | `2.5rem` |
814
818
  | `--mono` | `'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', ui-monospace, monospace` |
815
819
  | `--sans` | `'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif` |
816
- | `--display` | `'Doto', var(--mono)` |
817
820
  | `--dot-font` | `'Doto', var(--mono)` |
821
+ | `--display` | `var(--dot-font)` |
818
822
  | `--text-2xs` | `0.68rem` |
819
823
  | `--text-xs` | `0.76rem` |
820
824
  | `--text-sm` | `0.86rem` |
@@ -862,6 +866,7 @@ Exact mirror of the `:root` blocks in `css/tokens.css`
862
866
  | `--bronto-color-success` | `var(--success)` |
863
867
  | `--bronto-color-warning` | `var(--warning)` |
864
868
  | `--bronto-color-danger` | `var(--danger)` |
869
+ | `--bronto-color-info` | `var(--info)` |
865
870
  | `--surface` | `var(--panel)` |
866
871
  | `--surface-raised` | `var(--panel-strong)` |
867
872
  | `--surface-muted` | `var(--panel-soft)` |
@@ -895,6 +900,8 @@ Exact mirror of the `:root` blocks in `css/tokens.css`
895
900
  | `--orange-soft` | `rgb(168, 95, 50, 0.13)` |
896
901
  | `--danger` | `#c01622` |
897
902
  | `--danger-soft` | `rgb(192, 22, 34, 0.1)` |
903
+ | `--info` | `#1f63c4` |
904
+ | `--info-soft` | `rgb(31, 99, 196, 0.12)` |
898
905
  | `--code-bg` | `rgb(10, 10, 10, 0.05)` |
899
906
  | `--button-text` | `#ffffff` |
900
907
  | `--field-dot` | `rgb(10, 10, 10, 0.16)` |
@@ -931,6 +938,8 @@ Exact mirror of the `:root` blocks in `css/tokens.css`
931
938
  | `--orange-soft` | `rgb(208, 140, 91, 0.15)` |
932
939
  | `--danger` | `#ff4d54` |
933
940
  | `--danger-soft` | `rgb(255, 77, 84, 0.15)` |
941
+ | `--info` | `#6fb0e6` |
942
+ | `--info-soft` | `rgb(111, 176, 230, 0.14)` |
934
943
  | `--code-bg` | `rgb(255, 255, 255, 0.05)` |
935
944
  | `--button-text` | `#000000` |
936
945
  | `--field-dot` | `rgb(242, 242, 242, 0.14)` |
package/docs/theming.md CHANGED
@@ -66,6 +66,55 @@ fills — follows automatically, in both light and dark.
66
66
  set `accent-color` yourself on them — this is the one accent surface
67
67
  the framework can't tune for you.
68
68
 
69
+ ## Beyond accent: a full re-skin (the knob really works)
70
+
71
+ The "Nothing" look is the **default skin, not the architecture**. It is
72
+ a handful of token declarations deep — no selector hardcodes the
73
+ identity. An audit of `css/` found radius (every rounded element goes
74
+ through `var(--radius-*)`), the display face, dot density, motion easings
75
+ and the colour scale are *all* token-driven; the only hardcoded geometry
76
+ is the deliberate `border-radius: 0` on a few sharp elements and `50%` on
77
+ dots/avatars (correct to hardcode — they are circles, not skin).
78
+
79
+ The framework derives its accent **per theme** (the shipped red is
80
+ `#d71921` light / `#ff3b41` dark) precisely so each side stays
81
+ contrast-safe. A serious re-skin does the same — one override block,
82
+ no fork:
83
+
84
+ ```css
85
+ /* "Warm" — softer, rounder, no dot-matrix. Per-theme so the primary
86
+ button label stays AA on both sides (measured: see below). */
87
+ :root,
88
+ :root[data-theme='light'] {
89
+ --accent: #a8431a; /* terracotta — #fff label = 6.03:1 */
90
+ --radius-md: 10px; /* the system rounds everywhere at once */
91
+ --radius-lg: 14px;
92
+ --radius-xl: 20px;
93
+ --display: var(--sans); /* retire the Doto dot-matrix face */
94
+ --dot-size: 0; /* mute the decorative dot-grid motif */
95
+ }
96
+ :root[data-theme='dark'] {
97
+ --accent: #e8a06a; /* lighter warm — #000 label = 9.67:1 */
98
+ }
99
+ @media (prefers-color-scheme: dark) {
100
+ :root:not([data-theme='light']) { --accent: #e8a06a; }
101
+ }
102
+ ```
103
+
104
+ That changes buttons, cards, inputs, badges, focus rings, the display
105
+ type and the dot motif together, because every component consumes those
106
+ tokens — not because there is a per-component theme file. This is the
107
+ difference between a *system* and a *skin*: the skin is swappable, the
108
+ system (rationed colour, density, classless prose, minimal JS) is what
109
+ you are actually adopting.
110
+
111
+ Caveat, restated: a custom `--accent` is **your** contrast obligation —
112
+ the shipped palettes are CI-gated ([contrast.md](contrast.md)), a re-skin
113
+ is not. The values above are *measured* (white label on `#a8431a` =
114
+ 6.03:1, black on `#e8a06a` = 9.67:1, both ≥ 4.5:1 AA); pick your own with
115
+ the same check. Don't set one global `--accent` and hope — that is why
116
+ this example is split per theme.
117
+
69
118
  ## Token tiers (0.3.1)
70
119
 
71
120
  Three additive, non-breaking tiers sit on top of the primitives. The
package/docs/usage.md ADDED
@@ -0,0 +1,113 @@
1
+ # Usage — when to reach for what
2
+
3
+ `docs/reference.md` is the *catalog* (every class, generated). This is
4
+ the *decision guide*: the rules a kitchen-sink demo can't tell you. It is
5
+ hand-written and stable — treated as contract like
6
+ [theming.md](theming.md), not auto-generated.
7
+
8
+ The one principle everything below follows:
9
+
10
+ > **Color is rationed. Structure carries meaning.** Reach for layout,
11
+ > type weight, and the hairline before reaching for a hue. The accent is
12
+ > a spotlight, not a paint bucket.
13
+
14
+ ## Density: the unset default and its two presets
15
+
16
+ `data-density` has two presets over an unset middle default. There is no
17
+ `data-density="default"` value — *unset* is the design target; you opt
18
+ into a preset on `<html>` or any subtree:
19
+
20
+ | Value | Use for |
21
+ | ---------------------- | ------------------------------------------------ |
22
+ | _(unset)_ | general app & content — the design target |
23
+ | `compact` | data-dense admin: tables, dashboards, toolbars |
24
+ | `comfortable` | marketing / landing / reading-first pages |
25
+
26
+ Scope it, don't globalize blindly: a dashboard with one marketing-style
27
+ hero can set `compact` on `<html>` and `comfortable` on the hero section.
28
+
29
+ ## Badge vs chip vs status dot
30
+
31
+ All three are small. They are **not** interchangeable:
32
+
33
+ | Use | When |
34
+ | -------------- | ----------------------------------------------------------------- |
35
+ | **status dot** | a single piece of state on something else (row online, build ok). Smallest possible signal; pair with text for a11y, never color-only. |
36
+ | **badge** | a label *classifying* the thing it sits on (count, tone, "BETA"). Static, not actionable. `ui.badge({ tone })`. |
37
+ | **chip** | a discrete, often removable/selectable token the user manipulated (a filter, a tag input value). Interactive affordance implied. |
38
+
39
+ Rule of thumb: state → dot, classification → badge, user-controlled value
40
+ → chip.
41
+
42
+ ## Numbers: `ui-num` vs the table state classes
43
+
44
+ - Inside `.ui-table`, a numeric cell is `.is-num` (+ `.is-pos` /
45
+ `.is-neg` for P&L tone). These are table-local `is-*` hooks, not in
46
+ `cls` by design.
47
+ - **Anywhere else** (a card, a stat, inline figures) use the `ui-num`
48
+ primitive — `ui.num({ tone })`. Same tabular/aligned/tone intent,
49
+ freed from the table. Do not hand-roll right-align + `text-green`;
50
+ that's the duplication `ui-num` exists to kill.
51
+
52
+ ## Prose vs primitives, and prose inside a card
53
+
54
+ - `ui-prose` styles **raw, unclassed semantic HTML** (MDX / CMS / LLM
55
+ output). Use it for *body content you don't control the markup of*.
56
+ - Do **not** wrap app UI in `ui-prose` to "get nice spacing" — compose
57
+ primitives instead; prose deliberately restyles bare `<h2>`, `<table>`,
58
+ `<a>` and will fight your components.
59
+ - Prose **inside a card**: put `ui-prose` on an inner wrapper, not on
60
+ `.ui-card` itself, so card padding/border stays the card's and prose
61
+ rhythm stays the content's. One responsibility per element.
62
+
63
+ ## Buttons: variant and size
64
+
65
+ - **primary** — the single most important action in a view. Aim for one.
66
+ - **ghost** — secondary actions; the default for "another button here".
67
+ - **subtle** — tertiary / low-stakes (toolbar, inline).
68
+ - Size: default everywhere; `--sm` for dense tooling (toolbars,
69
+ pagination, table row actions), `--lg` for a hero CTA only.
70
+ - Loading is **not** a class: set `aria-busy="true"` (+ `disabled`); the
71
+ spinner is CSS. This is the ARIA-driven contract — see reference.md
72
+ → "Composition & state".
73
+
74
+ ## Link vs link--cta
75
+
76
+ Plain `ui-link` for in-flow links. `ui-link--cta` is the eyebrow-faced
77
+ action link (accent · display · uppercase + arrow) — a *navigational
78
+ call to action*, not a substitute for a button (no form submit, no
79
+ destructive action).
80
+
81
+ ## Feedback: alert vs toast vs tooltip
82
+
83
+ | Surface | Lifetime / trigger |
84
+ | -------- | ----------------------------------------------------------- |
85
+ | alert / callout | persistent, in-flow, part of the page (form errors, page-level notice). |
86
+ | toast | transient, out-of-flow, system-initiated. Danger toasts route to an assertive live region; everything else polite. |
87
+ | tooltip | supplemental, hover/focus, never essential info (it's not announced reliably; don't hide required content in it). |
88
+
89
+ ## Modal: native `<dialog>` vs `is-open`
90
+
91
+ Prefer the **native `<dialog>`** path — you get top-layer, backdrop and
92
+ focus-trap free. Only use `ui-modal.is-open` (`ui.modal({ open: true })`)
93
+ when a portal/React modal genuinely can't be a `<dialog>`; then the
94
+ backdrop and focus-trap are **yours** to provide. A drawer is a modal
95
+ that enters from an edge — same rule.
96
+
97
+ ## When to add a behavior
98
+
99
+ The CSS is the framework; `@ponchia/ui/behaviors` is the *sanctioned*
100
+ home for the little JS that genuinely needs scripting (theme persistence,
101
+ disclosure, dialog glue, toast, combobox, form-validation, table-sort).
102
+ Reach for it instead of reimplementing — every initializer is SSR-safe,
103
+ idempotent, and returns a cleanup. If you find yourself writing focus
104
+ management or `aria-expanded` toggling by hand, there is probably already
105
+ a behavior for it.
106
+
107
+ ## Re-brand obligations (the short version)
108
+
109
+ Changing `--accent` is one declaration, but **contrast is then yours**:
110
+ the shipped palettes are gated (see [contrast.md](contrast.md)); your
111
+ custom accent is not. Verify primary-button label, `--accent-text`, and
112
+ the focus ring against their backgrounds. Full contract:
113
+ [theming.md](theming.md).
package/llms.txt CHANGED
@@ -57,6 +57,12 @@ Read these from `node_modules/@ponchia/ui/` — no network needed:
57
57
  the same source as the types and CI-drift-checked.
58
58
  - `docs/theming.md` — the token contract: which tokens to override, the
59
59
  light/dark model, and the rationed-accent rule.
60
+ - `docs/usage.md` — the decision guide: badge vs chip vs dot, default
61
+ density, prose-in-card, when to add a behavior. Read this before
62
+ re-implementing UI the framework already has an opinion about.
63
+ - `docs/contrast.md` — the published, CI-gated WCAG 2.1 contrast matrix
64
+ for every contractual token pairing, per theme. Generated from the
65
+ resolved palette; the build fails below the declared floor.
60
66
  - `tokens/index.d.ts` — every design-token name as a literal union.
61
67
  - `tokens/index.json` — tokens as plain data (global / light / dark).
62
68
  - `tokens/tokens.dtcg.json` — same tokens in W3C DTCG format.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ponchia/ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "description": "Shared Bronto UI framework — Nothing-inspired monochrome CSS theme, dot-matrix motifs, admin shell.",
6
6
  "license": "MIT",
@@ -27,7 +27,9 @@
27
27
  "shiki",
28
28
  "llms.txt",
29
29
  "docs/reference.md",
30
- "docs/theming.md"
30
+ "docs/theming.md",
31
+ "docs/contrast.md",
32
+ "docs/usage.md"
31
33
  ],
32
34
  "style": "./dist/bronto.css",
33
35
  "scripts": {
@@ -40,6 +42,7 @@
40
42
  "resolved:build": "node scripts/gen-resolved.mjs",
41
43
  "dts:build": "node scripts/gen-dts.mjs",
42
44
  "reference:build": "node scripts/gen-reference.mjs",
45
+ "contrast:build": "node scripts/gen-contrast.mjs",
43
46
  "vscode:build": "node scripts/gen-vscode-data.mjs",
44
47
  "dist:build": "node scripts/build-dist.mjs",
45
48
  "check:exports": "node scripts/check-exports.mjs",
@@ -54,10 +57,11 @@
54
57
  "check:pack": "node scripts/check-pack.mjs",
55
58
  "check:release": "node scripts/check-release.mjs",
56
59
  "check:reference": "node scripts/check-reference.mjs",
60
+ "check:contrast": "node scripts/check-contrast.mjs",
57
61
  "check:vscode": "node scripts/check-vscode-data.mjs",
58
- "check": "npm run lint && npm run check:format && npm run check:exports && npm run check:tokens && npm run check:classes && npm run check:dts && npm run check:types && npm run check:dtcg && npm run check:resolved && npm run check:shiki && npm run check:dist && npm run check:pack && npm run check:release && npm run check:reference && npm run check:vscode",
62
+ "check": "npm run lint && npm run check:format && npm run check:exports && npm run check:tokens && npm run check:classes && npm run check:dts && npm run check:types && npm run check:dtcg && npm run check:resolved && npm run check:shiki && npm run check:dist && npm run check:pack && npm run check:release && npm run check:reference && npm run check:contrast && npm run check:vscode",
59
63
  "test": "node --test \"test/*.test.mjs\"",
60
- "prepack": "npm run tokens:build && npm run dtcg:build && npm run resolved:build && npm run dts:build && npm run reference:build && npm run vscode:build && npm run dist:build",
64
+ "prepack": "npm run tokens:build && npm run dtcg:build && npm run resolved:build && npm run dts:build && npm run reference:build && npm run contrast:build && npm run vscode:build && npm run dist:build",
61
65
  "prepublishOnly": "npm run check && npm test"
62
66
  },
63
67
  "devDependencies": {
@@ -120,6 +124,8 @@
120
124
  "./llms.txt": "./llms.txt",
121
125
  "./docs/reference.md": "./docs/reference.md",
122
126
  "./docs/theming.md": "./docs/theming.md",
127
+ "./docs/contrast.md": "./docs/contrast.md",
128
+ "./docs/usage.md": "./docs/usage.md",
123
129
  "./classes": {
124
130
  "types": "./classes/index.d.ts",
125
131
  "default": "./classes/index.js"
package/tokens/index.d.ts CHANGED
@@ -3,9 +3,9 @@
3
3
 
4
4
  export type ThemeName = 'light' | 'dark';
5
5
 
6
- export type GlobalTokenName = '--radius-xl' | '--radius-lg' | '--radius-md' | '--radius-sm' | '--radius-pill' | '--space-2xs' | '--space-xs' | '--space-sm' | '--space-md' | '--space-lg' | '--space-xl' | '--space-2xl' | '--mono' | '--sans' | '--display' | '--dot-font' | '--text-2xs' | '--text-xs' | '--text-sm' | '--text-base' | '--text-lg' | '--text-xl' | '--tracking-wide' | '--tracking-wider' | '--ease-standard' | '--ease-spring' | '--ease-out' | '--duration-fast' | '--duration-base' | '--duration-slow' | '--dot-size' | '--dot-gap' | '--z-base' | '--z-raised' | '--z-sticky' | '--z-overlay' | '--z-popover' | '--z-toast' | '--accent-1' | '--accent-2' | '--accent-3' | '--accent-4' | '--accent-5' | '--accent-6' | '--surface-1' | '--surface-2' | '--surface-3' | '--surface-4' | '--surface-5' | '--surface-6' | '--bronto-color-bg' | '--bronto-color-surface' | '--bronto-color-surface-raised' | '--bronto-color-border' | '--bronto-color-border-strong' | '--bronto-color-text' | '--bronto-color-text-muted' | '--bronto-color-action' | '--bronto-color-on-action' | '--bronto-color-focus' | '--bronto-color-success' | '--bronto-color-warning' | '--bronto-color-danger' | '--surface' | '--surface-raised' | '--surface-muted' | '--border' | '--border-strong';
7
- export type LightTokenName = '--bg' | '--bg-elevated' | '--bg-accent' | '--panel' | '--panel-strong' | '--panel-soft' | '--line' | '--line-strong' | '--text' | '--text-soft' | '--text-dim' | '--accent' | '--accent-strong' | '--accent-text' | '--accent-soft' | '--success' | '--success-soft' | '--warning' | '--warning-soft' | '--orange' | '--orange-soft' | '--danger' | '--danger-soft' | '--code-bg' | '--button-text' | '--field-dot' | '--field-dot-hot' | '--field-dot-accent' | '--focus-ring' | '--shadow' | '--shadow-raised';
8
- export type DarkTokenName = '--bg' | '--bg-elevated' | '--bg-accent' | '--panel' | '--panel-strong' | '--panel-soft' | '--line' | '--line-strong' | '--text' | '--text-soft' | '--text-dim' | '--accent' | '--accent-strong' | '--accent-text' | '--accent-soft' | '--success' | '--success-soft' | '--warning' | '--warning-soft' | '--orange' | '--orange-soft' | '--danger' | '--danger-soft' | '--code-bg' | '--button-text' | '--field-dot' | '--field-dot-hot' | '--field-dot-accent' | '--focus-ring' | '--shadow' | '--shadow-raised';
6
+ export type GlobalTokenName = '--radius-xl' | '--radius-lg' | '--radius-md' | '--radius-sm' | '--radius-pill' | '--space-2xs' | '--space-xs' | '--space-sm' | '--space-md' | '--space-lg' | '--space-xl' | '--space-2xl' | '--mono' | '--sans' | '--dot-font' | '--display' | '--text-2xs' | '--text-xs' | '--text-sm' | '--text-base' | '--text-lg' | '--text-xl' | '--tracking-wide' | '--tracking-wider' | '--ease-standard' | '--ease-spring' | '--ease-out' | '--duration-fast' | '--duration-base' | '--duration-slow' | '--dot-size' | '--dot-gap' | '--z-base' | '--z-raised' | '--z-sticky' | '--z-overlay' | '--z-popover' | '--z-toast' | '--accent-1' | '--accent-2' | '--accent-3' | '--accent-4' | '--accent-5' | '--accent-6' | '--surface-1' | '--surface-2' | '--surface-3' | '--surface-4' | '--surface-5' | '--surface-6' | '--bronto-color-bg' | '--bronto-color-surface' | '--bronto-color-surface-raised' | '--bronto-color-border' | '--bronto-color-border-strong' | '--bronto-color-text' | '--bronto-color-text-muted' | '--bronto-color-action' | '--bronto-color-on-action' | '--bronto-color-focus' | '--bronto-color-success' | '--bronto-color-warning' | '--bronto-color-danger' | '--bronto-color-info' | '--surface' | '--surface-raised' | '--surface-muted' | '--border' | '--border-strong';
7
+ export type LightTokenName = '--bg' | '--bg-elevated' | '--bg-accent' | '--panel' | '--panel-strong' | '--panel-soft' | '--line' | '--line-strong' | '--text' | '--text-soft' | '--text-dim' | '--accent' | '--accent-strong' | '--accent-text' | '--accent-soft' | '--success' | '--success-soft' | '--warning' | '--warning-soft' | '--orange' | '--orange-soft' | '--danger' | '--danger-soft' | '--info' | '--info-soft' | '--code-bg' | '--button-text' | '--field-dot' | '--field-dot-hot' | '--field-dot-accent' | '--focus-ring' | '--shadow' | '--shadow-raised';
8
+ export type DarkTokenName = '--bg' | '--bg-elevated' | '--bg-accent' | '--panel' | '--panel-strong' | '--panel-soft' | '--line' | '--line-strong' | '--text' | '--text-soft' | '--text-dim' | '--accent' | '--accent-strong' | '--accent-text' | '--accent-soft' | '--success' | '--success-soft' | '--warning' | '--warning-soft' | '--orange' | '--orange-soft' | '--danger' | '--danger-soft' | '--info' | '--info-soft' | '--code-bg' | '--button-text' | '--field-dot' | '--field-dot-hot' | '--field-dot-accent' | '--focus-ring' | '--shadow' | '--shadow-raised';
9
9
 
10
10
  /** Exact mirror of the :root blocks in css/tokens.css (literal keys). */
11
11
  export declare const cssVars: {
@@ -14,8 +14,8 @@ export declare const cssVars: {
14
14
  dark: Record<DarkTokenName, string>;
15
15
  };
16
16
 
17
- export type ScaleKey = 'radius-xl' | 'radius-lg' | 'radius-md' | 'radius-sm' | 'radius-pill' | 'space-2xs' | 'space-xs' | 'space-sm' | 'space-md' | 'space-lg' | 'space-xl' | 'space-2xl' | 'mono' | 'sans' | 'display' | 'dot-font' | 'text-2xs' | 'text-xs' | 'text-sm' | 'text-base' | 'text-lg' | 'text-xl' | 'tracking-wide' | 'tracking-wider' | 'ease-standard' | 'ease-spring' | 'ease-out' | 'duration-fast' | 'duration-base' | 'duration-slow' | 'dot-size' | 'dot-gap' | 'z-base' | 'z-raised' | 'z-sticky' | 'z-overlay' | 'z-popover' | 'z-toast' | 'accent-1' | 'accent-2' | 'accent-3' | 'accent-4' | 'accent-5' | 'accent-6' | 'surface-1' | 'surface-2' | 'surface-3' | 'surface-4' | 'surface-5' | 'surface-6' | 'bronto-color-bg' | 'bronto-color-surface' | 'bronto-color-surface-raised' | 'bronto-color-border' | 'bronto-color-border-strong' | 'bronto-color-text' | 'bronto-color-text-muted' | 'bronto-color-action' | 'bronto-color-on-action' | 'bronto-color-focus' | 'bronto-color-success' | 'bronto-color-warning' | 'bronto-color-danger' | 'surface' | 'surface-raised' | 'surface-muted' | 'border' | 'border-strong';
18
- export type ColorKey = 'bg' | 'bg-elevated' | 'bg-accent' | 'panel' | 'panel-strong' | 'panel-soft' | 'line' | 'line-strong' | 'text' | 'text-soft' | 'text-dim' | 'accent' | 'accent-strong' | 'accent-text' | 'accent-soft' | 'success' | 'success-soft' | 'warning' | 'warning-soft' | 'orange' | 'orange-soft' | 'danger' | 'danger-soft' | 'code-bg' | 'button-text' | 'field-dot' | 'field-dot-hot' | 'field-dot-accent' | 'focus-ring' | 'shadow' | 'shadow-raised';
17
+ export type ScaleKey = 'radius-xl' | 'radius-lg' | 'radius-md' | 'radius-sm' | 'radius-pill' | 'space-2xs' | 'space-xs' | 'space-sm' | 'space-md' | 'space-lg' | 'space-xl' | 'space-2xl' | 'mono' | 'sans' | 'dot-font' | 'display' | 'text-2xs' | 'text-xs' | 'text-sm' | 'text-base' | 'text-lg' | 'text-xl' | 'tracking-wide' | 'tracking-wider' | 'ease-standard' | 'ease-spring' | 'ease-out' | 'duration-fast' | 'duration-base' | 'duration-slow' | 'dot-size' | 'dot-gap' | 'z-base' | 'z-raised' | 'z-sticky' | 'z-overlay' | 'z-popover' | 'z-toast' | 'accent-1' | 'accent-2' | 'accent-3' | 'accent-4' | 'accent-5' | 'accent-6' | 'surface-1' | 'surface-2' | 'surface-3' | 'surface-4' | 'surface-5' | 'surface-6' | 'bronto-color-bg' | 'bronto-color-surface' | 'bronto-color-surface-raised' | 'bronto-color-border' | 'bronto-color-border-strong' | 'bronto-color-text' | 'bronto-color-text-muted' | 'bronto-color-action' | 'bronto-color-on-action' | 'bronto-color-focus' | 'bronto-color-success' | 'bronto-color-warning' | 'bronto-color-danger' | 'bronto-color-info' | 'surface' | 'surface-raised' | 'surface-muted' | 'border' | 'border-strong';
18
+ export type ColorKey = 'bg' | 'bg-elevated' | 'bg-accent' | 'panel' | 'panel-strong' | 'panel-soft' | 'line' | 'line-strong' | 'text' | 'text-soft' | 'text-dim' | 'accent' | 'accent-strong' | 'accent-text' | 'accent-soft' | 'success' | 'success-soft' | 'warning' | 'warning-soft' | 'orange' | 'orange-soft' | 'danger' | 'danger-soft' | 'info' | 'info-soft' | 'code-bg' | 'button-text' | 'field-dot' | 'field-dot-hot' | 'field-dot-accent' | 'focus-ring' | 'shadow' | 'shadow-raised';
19
19
 
20
20
  /** Ergonomic view derived from {@link cssVars} (`--` prefix stripped). */
21
21
  export declare const tokens: {
package/tokens/index.js CHANGED
@@ -32,8 +32,8 @@ export const cssVars = {
32
32
  '--mono': "'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', ui-monospace, monospace",
33
33
  '--sans':
34
34
  "'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif",
35
- '--display': "'Doto', var(--mono)",
36
35
  '--dot-font': "'Doto', var(--mono)",
36
+ '--display': 'var(--dot-font)',
37
37
  '--text-2xs': '0.68rem',
38
38
  '--text-xs': '0.76rem',
39
39
  '--text-sm': '0.86rem',
@@ -81,6 +81,7 @@ export const cssVars = {
81
81
  '--bronto-color-success': 'var(--success)',
82
82
  '--bronto-color-warning': 'var(--warning)',
83
83
  '--bronto-color-danger': 'var(--danger)',
84
+ '--bronto-color-info': 'var(--info)',
84
85
  '--surface': 'var(--panel)',
85
86
  '--surface-raised': 'var(--panel-strong)',
86
87
  '--surface-muted': 'var(--panel-soft)',
@@ -112,6 +113,8 @@ export const cssVars = {
112
113
  '--orange-soft': 'rgb(168, 95, 50, 0.13)',
113
114
  '--danger': '#c01622',
114
115
  '--danger-soft': 'rgb(192, 22, 34, 0.1)',
116
+ '--info': '#1f63c4',
117
+ '--info-soft': 'rgb(31, 99, 196, 0.12)',
115
118
  '--code-bg': 'rgb(10, 10, 10, 0.05)',
116
119
  '--button-text': '#ffffff',
117
120
  '--field-dot': 'rgb(10, 10, 10, 0.16)',
@@ -146,6 +149,8 @@ export const cssVars = {
146
149
  '--orange-soft': 'rgb(208, 140, 91, 0.15)',
147
150
  '--danger': '#ff4d54',
148
151
  '--danger-soft': 'rgb(255, 77, 84, 0.15)',
152
+ '--info': '#6fb0e6',
153
+ '--info-soft': 'rgb(111, 176, 230, 0.14)',
149
154
  '--code-bg': 'rgb(255, 255, 255, 0.05)',
150
155
  '--button-text': '#000000',
151
156
  '--field-dot': 'rgb(242, 242, 242, 0.14)',
package/tokens/index.json CHANGED
@@ -15,8 +15,8 @@
15
15
  "--space-2xl": "2.5rem",
16
16
  "--mono": "'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', ui-monospace, monospace",
17
17
  "--sans": "'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif",
18
- "--display": "'Doto', var(--mono)",
19
18
  "--dot-font": "'Doto', var(--mono)",
19
+ "--display": "var(--dot-font)",
20
20
  "--text-2xs": "0.68rem",
21
21
  "--text-xs": "0.76rem",
22
22
  "--text-sm": "0.86rem",
@@ -64,6 +64,7 @@
64
64
  "--bronto-color-success": "var(--success)",
65
65
  "--bronto-color-warning": "var(--warning)",
66
66
  "--bronto-color-danger": "var(--danger)",
67
+ "--bronto-color-info": "var(--info)",
67
68
  "--surface": "var(--panel)",
68
69
  "--surface-raised": "var(--panel-strong)",
69
70
  "--surface-muted": "var(--panel-soft)",
@@ -94,6 +95,8 @@
94
95
  "--orange-soft": "rgb(168, 95, 50, 0.13)",
95
96
  "--danger": "#c01622",
96
97
  "--danger-soft": "rgb(192, 22, 34, 0.1)",
98
+ "--info": "#1f63c4",
99
+ "--info-soft": "rgb(31, 99, 196, 0.12)",
97
100
  "--code-bg": "rgb(10, 10, 10, 0.05)",
98
101
  "--button-text": "#ffffff",
99
102
  "--field-dot": "rgb(10, 10, 10, 0.16)",
@@ -127,6 +130,8 @@
127
130
  "--orange-soft": "rgb(208, 140, 91, 0.15)",
128
131
  "--danger": "#ff4d54",
129
132
  "--danger-soft": "rgb(255, 77, 84, 0.15)",
133
+ "--info": "#6fb0e6",
134
+ "--info-soft": "rgb(111, 176, 230, 0.14)",
130
135
  "--code-bg": "rgb(255, 255, 255, 0.05)",
131
136
  "--button-text": "#000000",
132
137
  "--field-dot": "rgb(242, 242, 242, 0.14)",
@@ -153,8 +158,8 @@
153
158
  "space-2xl": "2.5rem",
154
159
  "mono": "'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', ui-monospace, monospace",
155
160
  "sans": "'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif",
156
- "display": "'Doto', var(--mono)",
157
161
  "dot-font": "'Doto', var(--mono)",
162
+ "display": "var(--dot-font)",
158
163
  "text-2xs": "0.68rem",
159
164
  "text-xs": "0.76rem",
160
165
  "text-sm": "0.86rem",
@@ -202,6 +207,7 @@
202
207
  "bronto-color-success": "var(--success)",
203
208
  "bronto-color-warning": "var(--warning)",
204
209
  "bronto-color-danger": "var(--danger)",
210
+ "bronto-color-info": "var(--info)",
205
211
  "surface": "var(--panel)",
206
212
  "surface-raised": "var(--panel-strong)",
207
213
  "surface-muted": "var(--panel-soft)",
@@ -233,6 +239,8 @@
233
239
  "orange-soft": "rgb(168, 95, 50, 0.13)",
234
240
  "danger": "#c01622",
235
241
  "danger-soft": "rgb(192, 22, 34, 0.1)",
242
+ "info": "#1f63c4",
243
+ "info-soft": "rgb(31, 99, 196, 0.12)",
236
244
  "code-bg": "rgb(10, 10, 10, 0.05)",
237
245
  "button-text": "#ffffff",
238
246
  "field-dot": "rgb(10, 10, 10, 0.16)",
@@ -266,6 +274,8 @@
266
274
  "orange-soft": "rgb(208, 140, 91, 0.15)",
267
275
  "danger": "#ff4d54",
268
276
  "danger-soft": "rgb(255, 77, 84, 0.15)",
277
+ "info": "#6fb0e6",
278
+ "info-soft": "rgb(111, 176, 230, 0.14)",
269
279
  "code-bg": "rgb(255, 255, 255, 0.05)",
270
280
  "button-text": "#000000",
271
281
  "field-dot": "rgb(242, 242, 242, 0.14)",
@@ -26,6 +26,7 @@
26
26
  "--bronto-color-success": "#2f7d4f",
27
27
  "--bronto-color-warning": "#806414",
28
28
  "--bronto-color-danger": "#c01622",
29
+ "--bronto-color-info": "#1f63c4",
29
30
  "--surface": "#ffffff",
30
31
  "--surface-raised": "#ffffff",
31
32
  "--surface-muted": "#ececea",
@@ -54,6 +55,8 @@
54
55
  "--orange-soft": "rgba(168, 95, 50, 0.13)",
55
56
  "--danger": "#c01622",
56
57
  "--danger-soft": "rgba(192, 22, 34, 0.1)",
58
+ "--info": "#1f63c4",
59
+ "--info-soft": "rgba(31, 99, 196, 0.12)",
57
60
  "--code-bg": "rgba(10, 10, 10, 0.05)",
58
61
  "--button-text": "#ffffff",
59
62
  "--field-dot": "rgba(10, 10, 10, 0.16)",
@@ -87,6 +90,7 @@
87
90
  "--bronto-color-success": "#4ec27e",
88
91
  "--bronto-color-warning": "#d8bd72",
89
92
  "--bronto-color-danger": "#ff4d54",
93
+ "--bronto-color-info": "#6fb0e6",
90
94
  "--surface": "#0c0c0c",
91
95
  "--surface-raised": "#141414",
92
96
  "--surface-muted": "#1a1a1a",
@@ -115,6 +119,8 @@
115
119
  "--orange-soft": "rgba(208, 140, 91, 0.15)",
116
120
  "--danger": "#ff4d54",
117
121
  "--danger-soft": "rgba(255, 77, 84, 0.15)",
122
+ "--info": "#6fb0e6",
123
+ "--info-soft": "rgba(111, 176, 230, 0.14)",
118
124
  "--code-bg": "rgba(255, 255, 255, 0.05)",
119
125
  "--button-text": "#000000",
120
126
  "--field-dot": "rgba(242, 242, 242, 0.14)",
@@ -80,15 +80,6 @@
80
80
  ]
81
81
  }
82
82
  },
83
- "display": {
84
- "DEFAULT": {
85
- "$type": "fontFamily",
86
- "$value": null,
87
- "$extensions": {
88
- "com.ponchia.css": "'Doto', var(--mono)"
89
- }
90
- }
91
- },
92
83
  "dot": {
93
84
  "font": {
94
85
  "$type": "fontFamily",
@@ -106,6 +97,15 @@
106
97
  "$value": "14px"
107
98
  }
108
99
  },
100
+ "display": {
101
+ "DEFAULT": {
102
+ "$type": "fontFamily",
103
+ "$value": null,
104
+ "$extensions": {
105
+ "com.ponchia.css": "var(--dot-font)"
106
+ }
107
+ }
108
+ },
109
109
  "text": {
110
110
  "2xs": {
111
111
  "$type": "dimension",
@@ -420,6 +420,13 @@
420
420
  "$extensions": {
421
421
  "com.ponchia.css": "var(--danger)"
422
422
  }
423
+ },
424
+ "color-info": {
425
+ "$type": "color",
426
+ "$value": null,
427
+ "$extensions": {
428
+ "com.ponchia.css": "var(--info)"
429
+ }
423
430
  }
424
431
  },
425
432
  "border": {
@@ -563,6 +570,16 @@
563
570
  "$value": "rgb(192, 22, 34, 0.1)"
564
571
  }
565
572
  },
573
+ "info": {
574
+ "DEFAULT": {
575
+ "$type": "color",
576
+ "$value": "#1f63c4"
577
+ },
578
+ "soft": {
579
+ "$type": "color",
580
+ "$value": "rgb(31, 99, 196, 0.12)"
581
+ }
582
+ },
566
583
  "code": {
567
584
  "bg": {
568
585
  "$type": "color",
@@ -738,6 +755,16 @@
738
755
  "$value": "rgb(255, 77, 84, 0.15)"
739
756
  }
740
757
  },
758
+ "info": {
759
+ "DEFAULT": {
760
+ "$type": "color",
761
+ "$value": "#6fb0e6"
762
+ },
763
+ "soft": {
764
+ "$type": "color",
765
+ "$value": "rgb(111, 176, 230, 0.14)"
766
+ }
767
+ },
741
768
  "code": {
742
769
  "bg": {
743
770
  "$type": "color",