@fusion.dev/helix-theme 0.131.0 → 0.132.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/dist/types.d.ts +16 -1
- package/package.json +1 -1
- package/wasm/fusion_helix_theme_bg.wasm +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -88,6 +88,20 @@ export interface ThemeIntent {
|
|
|
88
88
|
* complement.
|
|
89
89
|
*/
|
|
90
90
|
accent?: Seed;
|
|
91
|
+
/**
|
|
92
|
+
* The page's own color for each scheme. Unset is pure white in light and
|
|
93
|
+
* pure black in dark.
|
|
94
|
+
*
|
|
95
|
+
* Set, the surfaces keep the contrast with it they keep with white or black,
|
|
96
|
+
* the grays take its cast unless `neutral` says otherwise, and every ink is
|
|
97
|
+
* solved against it. A page no ink can reach the contrast target on is
|
|
98
|
+
* refused: black on a light page, and white on a dark one, is the strongest
|
|
99
|
+
* ink there is.
|
|
100
|
+
*/
|
|
101
|
+
background?: {
|
|
102
|
+
dark?: Color;
|
|
103
|
+
light?: Color;
|
|
104
|
+
};
|
|
91
105
|
/**
|
|
92
106
|
* The one color most consumers care about, and the only required input.
|
|
93
107
|
*/
|
|
@@ -211,7 +225,8 @@ export interface ThemeIntent {
|
|
|
211
225
|
* Chroma 0 is a dead gray and is the default, matching `primitives.css`,
|
|
212
226
|
* which records why: a fixed chroma is a rising *saturation* as a surface
|
|
213
227
|
* darkens, so a trace that looks right on a light page reads navy across a
|
|
214
|
-
* dark one.
|
|
228
|
+
* dark one. Where `background` gives the page a color, the default is the
|
|
229
|
+
* page's own cast.
|
|
215
230
|
*/
|
|
216
231
|
neutral?: {
|
|
217
232
|
chroma?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-theme",
|
|
3
3
|
"description": "Theme derivation engine. Computes a complete, contrast-guaranteed token set from intent inputs.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.132.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
Binary file
|