@weasel-js/theme 1.5.0 → 1.5.1

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/tokens.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /* GENERATED by packages/theme/scripts/build-tokens.ts — do not edit.
2
- * Source: packages/theme/tokens/<theme>/
2
+ * Source: packages/theme/themes/<theme>.json
3
3
  */
4
4
 
5
5
  :root {
@@ -18,6 +18,32 @@
18
18
  /* Midnight blue-violet. Deep and saturated; anchors primary actions on light and dark surfaces alike. */
19
19
  --wzl-accent-base: #2e1f7a;
20
20
  --wzl-accent-strong: #5841b8;
21
+ /* First of ten categorical spot colors for plotting, status and data viz. Take them in sequence: the order is farthest-point over hue, so the first N are as separated as N colors can be (first three 87° apart, all ten 32°). Mode-invariant on purpose — a series keeps its color when the mode flips, which is why they are tuned for a dark surface and clear only 1.5:1 on a light one. */
22
+ --wzl-swatch-fuchsia: #f641f7;
23
+ --wzl-swatch-green: #48e628;
24
+ --wzl-swatch-sky: #36bff2;
25
+ --wzl-swatch-amber: #e69628;
26
+ --wzl-swatch-teal: #3ee1cb;
27
+ --wzl-swatch-red: #f75034;
28
+ --wzl-swatch-blue: #407ef7;
29
+ --wzl-swatch-citron: #d5d23a;
30
+ --wzl-swatch-rose: #fa4590;
31
+ --wzl-swatch-violet: #955cf9;
32
+ --wzl-surface: var(--wzl-gray-800);
33
+ --wzl-surface-raised: var(--wzl-gray-700);
34
+ --wzl-surface-sunken: var(--wzl-gray-900);
35
+ --wzl-fg: var(--wzl-gray-100);
36
+ --wzl-fg-muted: var(--wzl-gray-300);
37
+ --wzl-fg-subtle: var(--wzl-gray-400);
38
+ --wzl-border: var(--wzl-gray-700);
39
+ /* The line that has to be seen: a control's edge, a raised surface's outline. Clears WCAG 1.4.11's 3:1 against every surface in both modes. */
40
+ --wzl-border-strong: var(--wzl-gray-400);
41
+ /* Accent for foreground use — text, icons, selected labels drawn on a surface. accent is a fill; the midnight base is too dim to read as text on dark surfaces. */
42
+ --wzl-accent-fg: var(--wzl-accent-strong);
43
+ /* Text drawn on a filled foreground-colored element (e.g. a slider thumb). Flips with the mode, so it is a semantic, not an alias to a primitive. */
44
+ --wzl-fg-inverse: var(--wzl-gray-900);
45
+ /* Elevation. Always darker than any surface — never derived from fg, which is near-white on dark. */
46
+ --wzl-shadow: rgba(0, 0, 0, 0.6);
21
47
  --wzl-danger-base: #d94a3f;
22
48
  --wzl-warning-base: #d99a3f;
23
49
  --wzl-success-base: #2ec27e;
@@ -42,17 +68,6 @@
42
68
  --wzl-surface-hover: color-mix(in srgb, var(--wzl-fg) 10%, transparent);
43
69
  /* Pressed wash over a raised surface. */
44
70
  --wzl-surface-pressed: color-mix(in srgb, var(--wzl-fg) 18%, transparent);
45
- /* First of ten categorical spot colors for plotting, status and data viz. Take them in sequence: the order is farthest-point over hue, so the first N are as separated as N colors can be (first three 87° apart, all ten 32°). Mode-invariant on purpose — a series keeps its color when the mode flips, which is why they are tuned for a dark surface and clear only 1.5:1 on a light one. */
46
- --wzl-swatch-fuchsia: #f641f7;
47
- --wzl-swatch-green: #48e628;
48
- --wzl-swatch-sky: #36bff2;
49
- --wzl-swatch-amber: #e69628;
50
- --wzl-swatch-teal: #3ee1cb;
51
- --wzl-swatch-red: #f75034;
52
- --wzl-swatch-blue: #407ef7;
53
- --wzl-swatch-citron: #d5d23a;
54
- --wzl-swatch-rose: #fa4590;
55
- --wzl-swatch-violet: #955cf9;
56
71
  --wzl-radius-sm: 3px;
57
72
  --wzl-radius-md: 5px;
58
73
  --wzl-radius-lg: 14px;
@@ -75,6 +90,12 @@
75
90
  --wzl-slider-track-mix: 18%;
76
91
  /* Accent proportion in a range thumb, as a color-mix percentage — not a color. */
77
92
  --wzl-slider-thumb-mix: 70%;
93
+ /* Edge of a draggable handle on a plot or timeline — a keyframe diamond, a timeline key, an event mark. The default rank; -sm and -lg are the two deliberate departures from it. */
94
+ --wzl-handle-size: 9px;
95
+ /* A handle that is drawn but not draggable — a locked or pinned point. Smaller so it reads as inert next to a live one. */
96
+ --wzl-handle-size-sm: 7px;
97
+ /* A handle that is a category of its own rather than one of a row — a curve's endpoint. Larger so it separates from the handles it sits in line with. */
98
+ --wzl-handle-size-lg: 10px;
78
99
  /* Horizontal padding inside a boxed field. Pairs with --wzl-field-h, which is a container override and has no :root default. */
79
100
  --wzl-field-pad-x: 8px;
80
101
  /* Backdrop blur radius for frosted surfaces. Pairs with glass-tint. */
@@ -128,21 +149,6 @@
128
149
  --wzl-font-weight-normal: 300;
129
150
  --wzl-font-weight-medium: 350;
130
151
  --wzl-font-weight-bold: 400;
131
- --wzl-surface: var(--wzl-gray-800);
132
- --wzl-surface-raised: var(--wzl-gray-700);
133
- --wzl-surface-sunken: var(--wzl-gray-900);
134
- --wzl-fg: var(--wzl-gray-100);
135
- --wzl-fg-muted: var(--wzl-gray-300);
136
- --wzl-fg-subtle: var(--wzl-gray-400);
137
- --wzl-border: var(--wzl-gray-700);
138
- /* The line that has to be seen: a control's edge, a raised surface's outline. Clears WCAG 1.4.11's 3:1 against every surface in both modes. */
139
- --wzl-border-strong: var(--wzl-gray-400);
140
- /* Accent for foreground use — text, icons, selected labels drawn on a surface. accent is a fill; the midnight base is too dim to read as text on dark surfaces. */
141
- --wzl-accent-fg: var(--wzl-accent-strong);
142
- /* Text drawn on a filled foreground-colored element (e.g. a slider thumb). Flips with the mode, so it is a semantic, not an alias to a primitive. */
143
- --wzl-fg-inverse: var(--wzl-gray-900);
144
- /* Elevation. Always darker than any surface — never derived from fg, which is near-white on dark. */
145
- --wzl-shadow: rgba(0, 0, 0, 0.6);
146
152
  }
147
153
 
148
154
  [data-wzl-theme='weasel'][data-wzl-mode='dark'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weasel-js/theme",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Design tokens shared by weasel-ui and weasel-hud — CSS variables + a parallel TS export.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,10 +19,17 @@
19
19
  "import": "./dist/react.js",
20
20
  "types": "./dist/react.d.ts"
21
21
  },
22
+ "./engine": {
23
+ "import": "./dist/engine.js",
24
+ "types": "./dist/engine.d.ts"
25
+ },
22
26
  "./tokens.css": "./dist/tokens.css",
23
27
  "./fonts.css": "./dist/fonts.css",
24
28
  "./package.json": "./package.json"
25
29
  },
30
+ "dependencies": {
31
+ "@weasel-js/paint": "1.5.1"
32
+ },
26
33
  "peerDependencies": {
27
34
  "react": ">=18"
28
35
  },