@leitware/composables 0.2.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,12 +10,16 @@
10
10
 
11
11
  ## What is this?
12
12
 
13
- Composables is a React component library with ~70 components across forms, layout, data display, feedback, and navigation — all built on [Base UI](https://base-ui.com/) primitives with a CSS custom property token system and 2 built-in design presets.
13
+ Composables is a React component library with ~70 components across forms, layout, data display, feedback, and navigation. Components are built on [Base UI](https://base-ui.com/) and styled through semantic CSS custom properties, so an application can change its visual language without rewriting component styles.
14
14
 
15
- It uses a **two-tier architecture**:
15
+ The downstream contract is deliberately small:
16
16
 
17
- - **`opinionated/`** — your API surface. These are the components you import and use day-to-day. They have clean, convenient props and sensible defaults.
18
- - **`_internal/`** — low-level primitives. These are what the opinionated layer is built on. Lint rules block you from importing from here directly so that internal refactors don't break your app.
17
+ 1. Import one stylesheet.
18
+ 2. Optionally import one alternative preset.
19
+ 3. Override known semantic tokens when your product needs a local decision.
20
+ 4. Use public components and documented semantic utility classes.
21
+
22
+ There is no required `ThemeProvider`, Tailwind installation, or Tailwind configuration.
19
23
 
20
24
  ---
21
25
 
@@ -25,16 +29,22 @@ It uses a **two-tier architecture**:
25
29
  npm install @leitware/composables
26
30
  ```
27
31
 
28
- Import the styles in your root CSS file:
32
+ Import the package stylesheet once in your application's root stylesheet (`app.css`, `globals.css`, or equivalent):
29
33
 
30
34
  ```css
31
35
  @import '@leitware/composables/styles.css';
36
+ ```
37
+
38
+ `styles.css` includes the default theme, component styles, and the documented semantic utilities. That is all a default setup needs.
32
39
 
33
- /* Optional: apply one preset after the base styles */
40
+ To use a different shipped preset, import exactly one after `styles.css`:
41
+
42
+ ```css
43
+ @import '@leitware/composables/styles.css';
34
44
  @import '@leitware/composables/presets/brutalist.css';
35
45
  ```
36
46
 
37
- The CSS is pre-compiled — no Tailwind installation or configuration needed downstream.
47
+ The order matters: base styles first, optional preset second, application overrides last.
38
48
 
39
49
  Then import components:
40
50
 
@@ -44,37 +54,148 @@ import { FormInput } from '@leitware/composables'
44
54
  import { Card } from '@leitware/composables'
45
55
  ```
46
56
 
47
- Optional AI components are exposed from their own entrypoint:
57
+ ### Override the theme
58
+
59
+ Override known semantic variables after the imports. Define both modes when a colour decision should change with the theme:
60
+
61
+ ```css
62
+ @import '@leitware/composables/styles.css';
63
+ @import '@leitware/composables/presets/signal-pop.css';
64
+
65
+ :root {
66
+ --bg-fill-brand: #6d28d9;
67
+ --border-brand: #8b5cf6;
68
+ --radius: 0.75rem;
69
+ }
70
+
71
+ .dark {
72
+ --bg-fill-brand: #a78bfa;
73
+ --border-brand: #8b5cf6;
74
+ }
75
+ ```
76
+
77
+ Add `class="dark"` to `<html>` (or a subtree) to activate the dark values. A provider is not required.
78
+
79
+ ### Use semantic styling
80
+
81
+ Documented semantic utility classes are a guaranteed public API and resolve through the same variables as the components:
82
+
83
+ ```tsx
84
+ <Card className="bg-surface-success text-success border-stroke-success">Saved successfully</Card>
85
+ ```
86
+
87
+ These classes are shipped as ordinary CSS, so they work whether or not the consuming application uses Tailwind. Consumers may use their own Tailwind setup, CSS Modules, plain CSS, or another styling system for layout and composition.
88
+
89
+ The registry generates only property combinations that match each token's role:
90
+
91
+ | Semantic token family | Guaranteed class family |
92
+ | --------------------- | --------------------------------------------- |
93
+ | `--bg-*` | `bg-*` |
94
+ | `--text-*` | `text-*` |
95
+ | `--icon-*` | `text-icon-*`, `fill-icon-*`, `stroke-icon-*` |
96
+ | `--border-*` | `border-stroke-*` |
97
+ | `--chart-*` | `fill-chart-*`, `stroke-chart-*` |
98
+
99
+ Only the documented semantic utilities are a package API. Layout utilities that happen to appear in the compiled stylesheet because library components use them internally are incidental and may change; do not rely on them as a downstream Tailwind bundle.
100
+
101
+ ### Optional Tailwind v4 adapter
102
+
103
+ `styles.css` is sufficient for components and the guaranteed semantic class families above. If the consuming application already builds with Tailwind v4 and wants state or responsive variants of those exact public classes, include the optional adapter in its Tailwind CSS entrypoint:
104
+
105
+ ```css
106
+ @import 'tailwindcss';
107
+ @import '@leitware/composables/tailwind.css';
108
+ @import '@leitware/composables/styles.css';
109
+ @import '@leitware/composables/presets/signal-pop.css'; /* Optional */
110
+ ```
111
+
112
+ `tailwind.css` contains exact generated `@utility` definitions for the public semantic class contract. With that adapter imported, variant-prefixed forms such as `hover:bg-surface-hover`, `md:text-success`, and `group-hover:border-stroke-success` are supported when the suffix is an exact documented class. Without it, only the shipped unprefixed semantic classes are guaranteed. The adapter does not expose internal shadcn compatibility aliases, include Tailwind itself, replace `styles.css`, or turn incidental layout classes from the package build into public API.
113
+
114
+ ### One component entrypoint
115
+
116
+ All non-AI components and their integrations are available from the package root. The package owns those runtime dependencies, so consumers do not need to choose feature packages or remember component-specific import paths:
117
+
118
+ ```tsx
119
+ import {
120
+ Button,
121
+ Calendar,
122
+ Carousel,
123
+ FormDropZone,
124
+ ThemeInjector,
125
+ Toaster,
126
+ } from '@leitware/composables'
127
+ ```
128
+
129
+ AI components are exposed from their own entrypoint:
48
130
 
49
131
  ```tsx
50
132
  import { AIMessage, AIPromptInput } from '@leitware/composables/ai'
51
133
  ```
52
134
 
135
+ The AI libraries remain optional peer dependencies because they are a materially larger, specialised integration surface. Applications that do not import `@leitware/composables/ai` do not need to install or configure them. If you use that entrypoint, install its optional peers; see the table below.
136
+
137
+ ### Consumer agent skill
138
+
139
+ The npm package includes a `use-composables` agent skill at `skills/use-composables/SKILL.md`. Install or point your coding agent at that directory to give it the package workflow, semantic-styling rules, exact public entrypoints, and optional-dependency guidance. Its utility manifest is generated from the token registry by `bun scripts/generate-css.ts`; its public API manifest is generated from package metadata and public barrels by `bun scripts/generate-rules.ts`. Both generators support `--check`, keeping agent guidance aligned with the shipped contract.
140
+
53
141
  ---
54
142
 
55
143
  ## Optional Dependencies
56
144
 
57
- Only the core (layout, forms, typography, feedback) is installed by default. Components that depend on heavier libraries require you to install the relevant package:
145
+ React remains a peer dependency. Normal component integrations such as calendars, carousels, drop zones, resizable panels, toasts, and the token editor are regular dependencies installed with Composables. Only the AI entrypoint and preset fonts require optional packages:
58
146
 
59
- | Install when using… | Package |
60
- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
61
- | `Calendar`, `FormCalendarPopover` | `react-day-picker` |
62
- | `Carousel` | `embla-carousel-react` |
63
- | `Dropzone`, `FormDropzone`, `FormMultiDropzone` | `react-dropzone` |
64
- | `ResizablePanels` | `react-resizable-panels` |
65
- | `Sonner` (toasts) | `sonner` |
66
- | AI elements from `@leitware/composables/ai` | `ai`, `shiki`, `streamdown`, `@streamdown/cjk`, `@streamdown/code`, `@streamdown/math`, `@streamdown/mermaid`, `use-stick-to-bottom`, `nanoid`, `@radix-ui/react-use-controllable-state` |
67
- | `ThemeInjector` / `TokenConfigPanel` | `react-colorful` |
68
- | Default preset fonts | `@fontsource-variable/inter` |
69
- | Brutalist preset fonts | `@fontsource-variable/space-grotesk`, `@fontsource-variable/jetbrains-mono` |
147
+ | Install when using… | Import from | Optional packages |
148
+ | ------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
149
+ | AI elements | `@leitware/composables/ai` | `ai`, `shiki`, `streamdown`, `@streamdown/cjk`, `@streamdown/code`, `@streamdown/math`, `@streamdown/mermaid`, `use-stick-to-bottom`, `nanoid`, `@radix-ui/react-use-controllable-state`, `cmdk`, `motion` |
150
+ | Preset typography | CSS or application entrypoint | The Fontsource packages listed below |
151
+
152
+ These packages are declared as optional peers. Exact missing-peer diagnostics depend on the consuming package manager and bundler.
153
+
154
+ ### Load preset fonts
155
+
156
+ Fonts are optional peers too. Components and presets still work with their CSS fallback stacks when fonts are not loaded. To reproduce the intended preset typography, install the matching packages and place these imports before `styles.css`.
157
+
158
+ Default:
159
+
160
+ ```css
161
+ @import '@fontsource-variable/inter';
162
+ @import '@fontsource-variable/bricolage-grotesque';
163
+ @import '@leitware/composables/styles.css';
164
+ ```
70
165
 
71
- If you use a component without its optional dependency installed, you'll get a clear module-not-found error at build time telling you exactly what to add.
166
+ Brutalist:
167
+
168
+ ```css
169
+ @import '@fontsource-variable/space-grotesk';
170
+ @import '@fontsource-variable/jetbrains-mono';
171
+ @import '@leitware/composables/styles.css';
172
+ @import '@leitware/composables/presets/brutalist.css';
173
+ ```
174
+
175
+ Signal Pop:
176
+
177
+ ```css
178
+ @import '@fontsource/ibm-plex-sans/400.css';
179
+ @import '@fontsource/ibm-plex-sans/500.css';
180
+ @import '@fontsource/ibm-plex-sans/600.css';
181
+ @import '@fontsource/ibm-plex-sans/700.css';
182
+ @import '@fontsource-variable/space-grotesk';
183
+ @import '@fontsource-variable/jetbrains-mono';
184
+ @import '@fontsource/ibm-plex-mono/400.css';
185
+ @import '@fontsource/ibm-plex-mono/500.css';
186
+ @import '@fontsource/ibm-plex-mono/600.css';
187
+ @import '@fontsource/ibm-plex-mono/700.css';
188
+ @import '@leitware/composables/styles.css';
189
+ @import '@leitware/composables/presets/signal-pop.css';
190
+ ```
191
+
192
+ The variable entrypoints include their preset weight ranges. The explicit IBM Plex files load normal weights 400–700; add italic entrypoints only if your interface uses them. The same package paths can instead be loaded as side-effect imports from an application entry file, for example `import '@fontsource-variable/inter'` or `import '@fontsource/ibm-plex-sans/600.css'`.
72
193
 
73
194
  ---
74
195
 
75
196
  ## Design Tokens
76
197
 
77
- The token system is built on CSS custom properties. Everything — colours, spacing, typography, radius, borders, shadows — is expressed as a token that you can override.
198
+ The token system is built on CSS custom properties. Colours, spacing, typography, radius, borders, shadows, and motion are expressed as semantic or component tokens that presets and applications can override.
78
199
 
79
200
  ### Token Files
80
201
 
@@ -85,47 +206,61 @@ styles/
85
206
  │ ├── palette.css ← Primitive color scales (build-time + runtime)
86
207
  │ ├── semantic.css ← Semantic role tokens (:root + .dark)
87
208
  │ ├── components.css ← Component-level tunables
88
- │ ├── tailwind-theme.css ← Tailwind utility registrations (@theme)
209
+ │ ├── tailwind-color-adapter.css ← Generated Tailwind colour aliases
210
+ │ ├── tailwind-public-utilities.css ← Generated optional public Tailwind variants
211
+ │ ├── tailwind-theme.css ← Non-colour Tailwind registrations (@theme)
212
+ │ ├── semantic-utilities.css ← Generated public semantic classes
89
213
  │ └── base.css ← Global base styles
90
214
  ├── presets/ ← Generated standalone preset CSS files
91
215
  │ ├── default.css
92
- │ └── brutalist.css
216
+ │ ├── brutalist.css
217
+ │ └── signal-pop.css
93
218
  └── presets-data/ ← Source of truth for preset token values (TS)
94
219
  ```
95
220
 
96
221
  Generated CSS ownership:
97
222
 
98
- | File | Source of truth | Generated by |
99
- | --------------------------- | ------------------------------------ | -------------------------------- |
100
- | `tokens/palette.css` | `scripts/palette.ts` | `bun run generate:palette` |
101
- | `presets/*.css` | `src/styles/presets-data/index.ts` | `bun run generate:presets` |
102
- | `rules/composables.md` | `README.md` + package barrel exports | `bun run generate:rules` |
103
- | `dist/styles.css` | `src/styles/composable.css` + `src` | `bun run build:css` |
104
- | `dist/presets/*.css` | `src/styles/presets/*.css` | `bun run build:css` |
105
- | `tokens/semantic.css` | Hand-authored semantic mappings | Checked by `bun run test:tokens` |
106
- | `tokens/tailwind-theme.css` | Hand-authored Tailwind aliases | Checked by `bun run test:tokens` |
223
+ | File | Source of truth | Generated by |
224
+ | --------------------------------------------------------- | -------------------------------------- | -------------------------------- |
225
+ | `tokens/palette.css` | `scripts/palette.ts` | `bun scripts/generate-css.ts` |
226
+ | `tokens/tailwind-color-adapter.css` | `src/styles/tokens/registry.ts` | `bun scripts/generate-css.ts` |
227
+ | `tokens/tailwind-public-utilities.css` | `src/styles/tokens/registry.ts` | `bun scripts/generate-css.ts` |
228
+ | `tokens/semantic-utilities.css` | `src/styles/tokens/registry.ts` | `bun scripts/generate-css.ts` |
229
+ | `skills/use-composables/references/semantic-utilities.md` | `src/styles/tokens/registry.ts` | `bun scripts/generate-css.ts` |
230
+ | `skills/use-composables/references/public-api.md` | `package.json` + public barrels | `bun scripts/generate-rules.ts` |
231
+ | `presets/*.css` | `src/styles/presets-data/index.ts` | `bun run generate:presets` |
232
+ | `rules/composables.md` | `README.md` + package barrel exports | `bun run generate:rules` |
233
+ | `dist/styles.css` | `src/styles/composable.css` + `src` | `bun run build:css` |
234
+ | `dist/tailwind.css` | `tokens/tailwind-public-utilities.css` | `bun run build:css` |
235
+ | `dist/presets/*.css` | `src/styles/presets/*.css` | `bun run build:css` |
236
+ | `tokens/semantic.css` | Hand-authored baseline semantic values | Checked by `bun run test:tokens` |
237
+ | `tokens/tailwind-theme.css` | Hand-authored non-colour theme aliases | Checked by `bun run test:tokens` |
107
238
 
108
239
  ### Customising Tokens
109
240
 
110
- Override tokens in your own CSS:
241
+ Override public tokens after the package and preset imports. Prefer semantic roles such as `--bg-fill-brand` over palette primitives such as `--violet-800`; this keeps application intent stable when a preset changes.
111
242
 
112
243
  ```css
113
244
  :root {
114
245
  --font-size-base: 15px;
115
246
  --radius: 0.75rem;
116
- --bg-fill-primary: var(--blue-800);
247
+ --bg-fill-primary: #1e40af;
117
248
  --font-heading: 'Fraunces Variable', serif;
118
249
  }
250
+
251
+ .dark {
252
+ --bg-fill-primary: #93c5fd;
253
+ }
119
254
  ```
120
255
 
121
256
  Key token groups:
122
257
 
123
258
  | Group | Example tokens |
124
259
  | -------------- | ------------------------------------------------------------------------------------- |
125
- | Colour palette | `--neutral-100`, `--blue-800`, `--red-950` |
126
- | Background | `--bg-default`, `--bg-fill-primary`, `--bg-surface-success` |
127
- | Text | `--text-default`, `--text-secondary`, `--text-critical` |
128
- | Border | `--border-default`, `--border-focus`, `--border-brand` |
260
+ | Colour palette | `--neutral-100`, `--blue-800`, `--red-950` (package/preset implementation) |
261
+ | Background | `--bg-default`, `--bg-fill-primary`, `--bg-surface-popover`, `--bg-surface-success` |
262
+ | Text | `--text-default`, `--text-on-fill-primary`, `--text-secondary`, `--text-critical` |
263
+ | Border | `--border-default`, `--border-input`, `--border-focus`, `--border-brand` |
129
264
  | Icon | `--icon-default`, `--icon-success`, `--icon-critical` |
130
265
  | Typography | `--font-size-base`, `--leading-base`, `--font-heading` |
131
266
  | Spacing | `--spacing` (base unit, used in `calc()`) |
@@ -183,20 +318,20 @@ export default function RootLayout({ children }) {
183
318
 
184
319
  ## Presets
185
320
 
186
- Two built-in design presets are available as standalone CSS files you can paste into your `index.css`:
321
+ The default theme is included in `styles.css`. Alternative presets are available as standalone CSS files:
187
322
 
188
- | Preset | Vibe | Fonts |
189
- | ------------- | -------------------------------------- | ------------------------------ |
190
- | **Default** | Clean neutral system, works everywhere | Inter + Bricolage Grotesque |
191
- | **Brutalist** | Bold, high-contrast, raw aesthetic | Space Grotesk + JetBrains Mono |
323
+ | Preset | Vibe | Fonts |
324
+ | -------------- | ----------------------------------------- | ---------------------------------------------- |
325
+ | **Default** | Clean neutral system, works everywhere | Inter + Bricolage Grotesque |
326
+ | **Brutalist** | Bold, high-contrast, raw aesthetic | Space Grotesk + JetBrains Mono |
327
+ | **Signal Pop** | Bright consumer-tech, modular and graphic | IBM Plex Sans + Space Grotesk + JetBrains Mono |
192
328
 
193
329
  ```css
194
- /* Use exactly one shipped preset by importing it after styles.css */
330
+ /* Optional: use exactly one alternative preset after styles.css */
331
+ @import '@leitware/composables/styles.css';
195
332
  @import '@leitware/composables/presets/brutalist.css';
196
333
  ```
197
334
 
198
- Font imports for non-default presets are commented out at the top of `composable.css` — uncomment the one you need.
199
-
200
335
  ### Creating a Preset
201
336
 
202
337
  Add one preset data file, then register it once:
@@ -220,9 +355,9 @@ App-level overrides should come after the preset import.
220
355
 
221
356
  The token system self-regulates through CI checks:
222
357
 
223
- - `bun scripts/generate-css.ts --check` verifies generated palette CSS.
358
+ - `bun scripts/generate-css.ts --check` verifies the generated palette, Tailwind colour adapter, and public semantic utilities.
224
359
  - `bun scripts/generate-preset-css.ts --check` verifies generated preset CSS.
225
- - `bun scripts/generate-rules.ts --check` verifies generated AI usage rules.
360
+ - `bun scripts/generate-rules.ts --check` verifies generated AI usage rules and the consumer skill's public API manifest.
226
361
  - `bun run test:tokens` verifies semantic token registry coverage, Tailwind aliases, preset keys, and semantic class usage.
227
362
  - `bun run test:css` verifies the compiled downstream CSS contains required tokens and utilities.
228
363
 
@@ -254,6 +389,8 @@ Live component demo: **[https://rowanhen.github.io/composables/](https://rowanhe
254
389
 
255
390
  ## Components
256
391
 
392
+ All normal components import from `@leitware/composables`; AI components import from `/ai`. The packaged `use-composables` skill includes a generated, exact entrypoint/export manifest.
393
+
257
394
  ### Foundation
258
395
 
259
396
  | Component | Description |
@@ -14,6 +14,8 @@
14
14
  --bg-inverse: #0a0a0aff;
15
15
  --bg-muted: #f0f0f0ff;
16
16
  --bg-surface-default: #ffffffff;
17
+ --bg-surface-popover: #ffffffff;
18
+ --bg-surface-accent: #f0f0f0ff;
17
19
  --bg-surface-info: #e8f0f8ff;
18
20
  --bg-surface-success: #e8f4e8ff;
19
21
  --bg-surface-warning: #fbf4e0ff;
@@ -21,6 +23,7 @@
21
23
  --bg-surface-emphasis: #e8e8f4ff;
22
24
  --bg-surface-inverse: #3a3a3aff;
23
25
  --bg-surface-transparent: #00000010;
26
+ --bg-overlay: var(--overlays-black-alpha-800);
24
27
  --bg-surface-brand: #ffefebff;
25
28
  --bg-surface-brand-2: #f0f0f0ff;
26
29
  --bg-surface-brand-3: #fff8e0ff;
@@ -40,13 +43,16 @@
40
43
  --bg-fill-critical: #cc0000ff;
41
44
  --bg-fill-emphasis: #0a0a0aff;
42
45
  --bg-fill-transparent: #00000010;
43
- --bg-fill-secondary: #0a0a0aff;
46
+ --bg-fill-secondary: #f0f0f0ff;
44
47
  --bg-fill-secondary-inverse: #ffffffff;
45
48
  --text-default: #0a0a0aff;
46
49
  --text-secondary: #2e2e2eff;
47
50
  --text-muted: #5a5a5aff;
48
51
  --text-disabled: #aaaaaaff;
49
52
  --text-inverse: #f8f8f8ff;
53
+ --text-on-fill-primary: #ffffffff;
54
+ --text-on-fill-secondary: #0a0a0aff;
55
+ --text-on-surface-accent: #0a0a0aff;
50
56
  --text-info: #001e5eff;
51
57
  --text-success: #003a00ff;
52
58
  --text-warning: #5e2e00ff;
@@ -74,6 +80,7 @@
74
80
  --icon-brand-5: #0044aaff;
75
81
  --border-default: #0a0a0aff;
76
82
  --border-secondary: #0a0a0aff;
83
+ --border-input: #c8c8c8ff;
77
84
  --border-tertiary: #4a4a4aff;
78
85
  --border-disabled: #aaaaaaff;
79
86
  --border-inverse: #f8f8f8ff;
@@ -93,24 +100,6 @@
93
100
  --chart-3: #4a4a4aff;
94
101
  --chart-4: #007700ff;
95
102
  --chart-5: #0044aaff;
96
- --background: #ffffffff;
97
- --foreground: #0a0a0aff;
98
- --card: #ffffffff;
99
- --card-foreground: #0a0a0aff;
100
- --popover: #ffffffff;
101
- --popover-foreground: #0a0a0aff;
102
- --primary: #0a0a0aff;
103
- --primary-foreground: #ffffffff;
104
- --secondary: #f0f0f0ff;
105
- --secondary-foreground: #0a0a0aff;
106
- --muted: #f0f0f0ff;
107
- --muted-foreground: #5a5a5aff;
108
- --accent: #f0f0f0ff;
109
- --accent-foreground: #0a0a0aff;
110
- --destructive: #cc0000ff;
111
- --border: #0a0a0aff;
112
- --input: #c8c8c8ff;
113
- --ring: #cc2200ff;
114
103
  --sidebar-background: #ffffffff;
115
104
  --sidebar-foreground: #0a0a0aff;
116
105
  --sidebar-primary: #0a0a0aff;
@@ -180,13 +169,33 @@
180
169
  --card-title-size: var(--text-base);
181
170
  --card-title-font-weight: 700;
182
171
  --card-title-letter-spacing: var(--tracking-normal);
172
+ --background: var(--bg-default);
173
+ --foreground: var(--text-default);
174
+ --card: var(--bg-surface-default);
175
+ --card-foreground: var(--text-default);
176
+ --popover: var(--bg-surface-popover);
177
+ --popover-foreground: var(--text-default);
178
+ --primary: var(--bg-fill-primary);
179
+ --primary-foreground: var(--text-on-fill-primary);
180
+ --secondary: var(--bg-fill-secondary);
181
+ --secondary-foreground: var(--text-on-fill-secondary);
182
+ --muted: var(--bg-muted);
183
+ --muted-foreground: var(--text-muted);
184
+ --accent: var(--bg-surface-accent);
185
+ --accent-foreground: var(--text-on-surface-accent);
186
+ --destructive: var(--bg-fill-critical);
187
+ --border: var(--border-default);
188
+ --input: var(--border-input);
189
+ --ring: var(--border-focus);
183
190
  }
184
191
 
185
192
  .dark {
186
193
  --bg-default: #0a0a0aff;
187
194
  --bg-inverse: #f8f8f8ff;
188
- --bg-muted: #141414ff;
195
+ --bg-muted: #1a1a1aff;
189
196
  --bg-surface-default: #0a0a0aff;
197
+ --bg-surface-popover: #141414ff;
198
+ --bg-surface-accent: #1a1a1aff;
190
199
  --bg-surface-info: #0a1828ff;
191
200
  --bg-surface-success: #0a180aff;
192
201
  --bg-surface-warning: #1e1406ff;
@@ -194,6 +203,7 @@
194
203
  --bg-surface-emphasis: #0a0a1eff;
195
204
  --bg-surface-inverse: #606060ff;
196
205
  --bg-surface-transparent: #ffffff10;
206
+ --bg-overlay: var(--overlays-black-alpha-800);
197
207
  --bg-surface-brand: #1e0a08ff;
198
208
  --bg-surface-brand-2: #141414ff;
199
209
  --bg-surface-brand-3: #1e1a08ff;
@@ -213,13 +223,16 @@
213
223
  --bg-fill-critical: #dd2222ff;
214
224
  --bg-fill-emphasis: #f0f0f0ff;
215
225
  --bg-fill-transparent: #ffffff10;
216
- --bg-fill-secondary: #f0f0f0ff;
226
+ --bg-fill-secondary: #1a1a1aff;
217
227
  --bg-fill-secondary-inverse: #0a0a0aff;
218
228
  --text-default: #f0f0f0ff;
219
229
  --text-secondary: #c0c0c0ff;
220
230
  --text-muted: #888888ff;
221
231
  --text-disabled: #444444ff;
222
232
  --text-inverse: #0a0a0aff;
233
+ --text-on-fill-primary: #0a0a0aff;
234
+ --text-on-fill-secondary: #f0f0f0ff;
235
+ --text-on-surface-accent: #f0f0f0ff;
223
236
  --text-info: #99bbffff;
224
237
  --text-success: #77dd77ff;
225
238
  --text-warning: #ffbb44ff;
@@ -247,6 +260,7 @@
247
260
  --icon-brand-5: #3366ccff;
248
261
  --border-default: #f0f0f0ff;
249
262
  --border-secondary: #c0c0c0ff;
263
+ --border-input: #383838ff;
250
264
  --border-tertiary: #888888ff;
251
265
  --border-disabled: #444444ff;
252
266
  --border-inverse: #0a0a0aff;
@@ -266,24 +280,6 @@
266
280
  --chart-3: #888888ff;
267
281
  --chart-4: #44bb44ff;
268
282
  --chart-5: #5588eeff;
269
- --background: #0a0a0aff;
270
- --foreground: #f0f0f0ff;
271
- --card: #0a0a0aff;
272
- --card-foreground: #f0f0f0ff;
273
- --popover: #141414ff;
274
- --popover-foreground: #f0f0f0ff;
275
- --primary: #f0f0f0ff;
276
- --primary-foreground: #0a0a0aff;
277
- --secondary: #1a1a1aff;
278
- --secondary-foreground: #f0f0f0ff;
279
- --muted: #1a1a1aff;
280
- --muted-foreground: #888888ff;
281
- --accent: #1a1a1aff;
282
- --accent-foreground: #f0f0f0ff;
283
- --destructive: #dd2222ff;
284
- --border: #f0f0f0ff;
285
- --input: #383838ff;
286
- --ring: #ff3322ff;
287
283
  --sidebar-background: #0a0a0aff;
288
284
  --sidebar-foreground: #f0f0f0ff;
289
285
  --sidebar-primary: #f0f0f0ff;
@@ -295,4 +291,22 @@
295
291
  --font-sans: 'JetBrains Mono Variable', monospace;
296
292
  --font-heading: 'Space Grotesk Variable', 'Arial', sans-serif;
297
293
  --font-brand: 'Space Grotesk Variable', 'Arial', sans-serif;
294
+ --background: var(--bg-default);
295
+ --foreground: var(--text-default);
296
+ --card: var(--bg-surface-default);
297
+ --card-foreground: var(--text-default);
298
+ --popover: var(--bg-surface-popover);
299
+ --popover-foreground: var(--text-default);
300
+ --primary: var(--bg-fill-primary);
301
+ --primary-foreground: var(--text-on-fill-primary);
302
+ --secondary: var(--bg-fill-secondary);
303
+ --secondary-foreground: var(--text-on-fill-secondary);
304
+ --muted: var(--bg-muted);
305
+ --muted-foreground: var(--text-muted);
306
+ --accent: var(--bg-surface-accent);
307
+ --accent-foreground: var(--text-on-surface-accent);
308
+ --destructive: var(--bg-fill-critical);
309
+ --border: var(--border-default);
310
+ --input: var(--border-input);
311
+ --ring: var(--border-focus);
298
312
  }