@kanzo-tech/theme 0.23.1 → 0.24.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 +17 -22
- package/dist/index.d.ts +28 -88
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +177 -182
- package/dist/index.js.map +1 -1
- package/dist/obligations.d.ts.map +1 -1
- package/dist/sections.d.ts +8 -0
- package/dist/sections.d.ts.map +1 -1
- package/package.json +1 -1
- package/theme-data.json +4 -94
- package/themes.css +4 -54
- package/tokens.css +5 -6
package/tokens.css
CHANGED
|
@@ -172,10 +172,9 @@
|
|
|
172
172
|
/* Fonts. Declared as values in a plain `@theme`, never as `var(--font-x, …)` of themselves inside
|
|
173
173
|
the inline bridge: that spelling made `--font-mono` refer to its own name, which is a cycle, so the
|
|
174
174
|
property computed to nothing and a host that set it without a fallback lost the face entirely.
|
|
175
|
-
`font-mono` compiles to `var(--font-mono)`, read on the element, so
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
host has not loaded the webfont. `static`, so the variables are emitted even where no utility asks
|
|
175
|
+
`font-mono` compiles to `var(--font-mono)`, read on the element, so a theme that carries a face
|
|
176
|
+
still wins. The faces are the theme's: these are what a theme that names none falls back to —
|
|
177
|
+
Geist's stacks, each falling back to the system face when the host has not loaded the webfont. `static`, so the variables are emitted even where no utility asks
|
|
179
178
|
for them: `CodeEditor` reads `--font-mono` from a style object. */
|
|
180
179
|
@theme static {
|
|
181
180
|
--font-sans: var(--font-geist-sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
|
|
@@ -286,8 +285,8 @@
|
|
|
286
285
|
--chart-8: #6a8a2a;
|
|
287
286
|
|
|
288
287
|
/* The shape knobs with no theme applied. Plain values, never `var()` of one another — see the
|
|
289
|
-
inheritance note on the radius scale.
|
|
290
|
-
|
|
288
|
+
inheritance note on the radius scale. A theme declares its own; there is no user preference
|
|
289
|
+
layered over them.
|
|
291
290
|
|
|
292
291
|
There is no `--radius` any more. It was one knob standing for three, and the size-named
|
|
293
292
|
utilities now answer to `--radius-field` — `rounded-lg` sits on a button far more often than
|