@weasel-js/theme 1.15.2 → 1.16.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 +7 -4
- package/dist/{chunk-Z675UQ26.js → chunk-7OMMT3WJ.js} +2 -2
- package/dist/{chunk-Z675UQ26.js.map → chunk-7OMMT3WJ.js.map} +1 -1
- package/dist/{chunk-TG3EV42T.js → chunk-SFVRMAMW.js} +4 -20
- package/dist/chunk-SFVRMAMW.js.map +1 -0
- package/dist/{chunk-NCAQ54LO.js → chunk-X2KI4SSJ.js} +4 -3
- package/dist/chunk-X2KI4SSJ.js.map +1 -0
- package/dist/{definition-nZbgRG7A.d.ts → definition-DfbYMDu0.d.ts} +5 -1
- package/dist/engine.d.ts +2 -2
- package/dist/engine.js +1 -1
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/prefs.d.ts +8 -8
- package/dist/prefs.js +22 -19
- package/dist/prefs.js.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +3 -3
- package/dist/react.js.map +1 -1
- package/dist/themes/platinum.d.ts +1 -1
- package/dist/themes/platinum.js +1 -1
- package/dist/themes/win9x.d.ts +1 -1
- package/dist/themes/win9x.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-NCAQ54LO.js.map +0 -1
- package/dist/chunk-TG3EV42T.js.map +0 -1
|
@@ -41,6 +41,8 @@ interface RawToken {
|
|
|
41
41
|
/** Render the referenced color at this alpha, 0–1. */
|
|
42
42
|
readonly alpha?: number | undefined;
|
|
43
43
|
readonly description?: string | undefined;
|
|
44
|
+
/** Axes the token's pref is scoped by even where its values do not differ along them. */
|
|
45
|
+
readonly scope?: readonly string[] | undefined;
|
|
44
46
|
}
|
|
45
47
|
/** A token graph flattened to one level, keyed by token name (no `--wzl-`
|
|
46
48
|
* prefix). Still unresolved — see `ResolvedTokenMap` for the output side. */
|
|
@@ -1309,6 +1311,8 @@ interface PinObject {
|
|
|
1309
1311
|
readonly description?: string;
|
|
1310
1312
|
/** Render the referenced color at this alpha, 0–1. */
|
|
1311
1313
|
readonly alpha?: number;
|
|
1314
|
+
/** Axes the token's pref is scoped by even where its values do not differ along them. */
|
|
1315
|
+
readonly scope?: readonly string[];
|
|
1312
1316
|
}
|
|
1313
1317
|
/** A bare value or `{ value, type?, description?, alpha? }`. The value may be a `{token}` reference. */
|
|
1314
1318
|
type PinValue = TokenValue | PinObject;
|
|
@@ -1435,4 +1439,4 @@ interface ThemeDefinition {
|
|
|
1435
1439
|
readonly tints?: SerializableColorList;
|
|
1436
1440
|
}
|
|
1437
1441
|
|
|
1438
|
-
export { themeTints as $, type AxisDefs as A, type BakedTheme as B, type CategoricalRampDef as C, type RampColors as D, type SerializableColorList as E, type FlatTokens as F, type GeneratedColors as G, THEMES as H, THEME_SOURCES as I, type ThemeInput as J, colorCount as K, type Lookup as L, defineTheme as M, type NumberParam as N, type OffsetRule as O, type PinObject as P, enumerateSelections as Q, type RawToken as R, type Selection as S, type ThemeDefinition as T, fullSelection as U, type Varying as V, isByAxis as W, rampSteps as X, resolveTheme as Y, selectionKey as Z, themeAxes as _, type Theme as a, weaselTheme as a0, type ContrastRule as b, type LightnessRampDef as c, type LiteralRule as d, type PinValue as e, type RampDef as f, type RefRule as g, type ScaleDef as h, type SemanticCommon as i, type SemanticRule as j, type StepRule as k, bake as l, bakeChain as m, mergeChain as n, type
|
|
1442
|
+
export { themeTints as $, type AxisDefs as A, type BakedTheme as B, type CategoricalRampDef as C, type RampColors as D, type SerializableColorList as E, type FlatTokens as F, type GeneratedColors as G, THEMES as H, THEME_SOURCES as I, type ThemeInput as J, colorCount as K, type Lookup as L, defineTheme as M, type NumberParam as N, type OffsetRule as O, type PinObject as P, enumerateSelections as Q, type RawToken as R, type Selection as S, type ThemeDefinition as T, fullSelection as U, type Varying as V, isByAxis as W, rampSteps as X, resolveTheme as Y, selectionKey as Z, themeAxes as _, type Theme as a, weaselTheme as a0, type ContrastRule as b, type LightnessRampDef as c, type LiteralRule as d, type PinValue as e, type RampDef as f, type RefRule as g, type ScaleDef as h, type SemanticCommon as i, type SemanticRule as j, type StepRule as k, bake as l, bakeChain as m, mergeChain as n, type TokenName as o, type ResolvedTheme as p, type TokenValue as q, type ColorList as r, type ColorSourceContext as s, type AxisDef as t, type AxisValue as u, BAKED_THEMES as v, type ByAxis as w, type ColorContext as x, type ColorListItem as y, type GeneratedTheme as z };
|
package/dist/engine.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OklchDeg, oklchDegToHex } from '@weasel-js/paint';
|
|
2
|
-
import { T as ThemeDefinition, L as Lookup, F as FlatTokens, R as RawToken, S as Selection, B as BakedTheme, A as AxisDefs, a as Theme } from './definition-
|
|
3
|
-
export { C as CategoricalRampDef, b as ContrastRule, c as LightnessRampDef, d as LiteralRule, N as NumberParam, O as OffsetRule, P as PinObject, e as PinValue, f as RampDef, g as RefRule, h as ScaleDef, i as SemanticCommon, j as SemanticRule, k as StepRule, l as bake, m as bakeChain, n as mergeChain } from './definition-
|
|
2
|
+
import { T as ThemeDefinition, L as Lookup, F as FlatTokens, R as RawToken, S as Selection, B as BakedTheme, A as AxisDefs, a as Theme } from './definition-DfbYMDu0.js';
|
|
3
|
+
export { C as CategoricalRampDef, b as ContrastRule, c as LightnessRampDef, d as LiteralRule, N as NumberParam, O as OffsetRule, P as PinObject, e as PinValue, f as RampDef, g as RefRule, h as ScaleDef, i as SemanticCommon, j as SemanticRule, k as StepRule, l as bake, m as bakeChain, n as mergeChain } from './definition-DfbYMDu0.js';
|
|
4
4
|
|
|
5
5
|
/** A color in OKLCH: lightness 0–1, chroma, hue in degrees. paint's own type,
|
|
6
6
|
* under the name this engine has always called it. */
|
package/dist/engine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { overrideKey, AXES_EXT, ALPHA_EXT } from './chunk-
|
|
1
|
+
import { overrideKey, AXES_EXT, ALPHA_EXT } from './chunk-7OMMT3WJ.js';
|
|
2
2
|
import { toLch, toHex, generate, DEFAULT_CONSTRAINTS, contrast } from './chunk-44CG54ZK.js';
|
|
3
3
|
export { CHROMA_WEIGHT, DEFAULT_CONSTRAINTS, anchorFromHex, chromaCap, contrast, deltaE, floorDegrees, generate, hexToRgb, hueGap, hueName, luminance, toHex, toHexPreview, toLab, toLch, vividAt } from './chunk-44CG54ZK.js';
|
|
4
4
|
import { resolveTokens, mixAlpha, themeAxes, tokensAt, tokenAt } from './chunk-UCQC6GZR.js';
|