@weasel-js/theme 1.4.4 → 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. Ordered — take them in sequence. Mode-invariant on purpose: a series keeps its color when the mode flips. */
46
- --wzl-swatch-green: #2fdd18;
47
- --wzl-swatch-pink: #ff5885;
48
- --wzl-swatch-cyan: #00dfff;
49
- --wzl-swatch-gold: #dcb700;
50
- --wzl-swatch-amber: #ff8c00;
51
- --wzl-swatch-violet: #a497ff;
52
- --wzl-swatch-mint: #00e7af;
53
- --wzl-swatch-sky: #00b8ff;
54
- --wzl-swatch-orange: #ff6b00;
55
- --wzl-swatch-magenta: #ff6eff;
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,22 +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
- --wzl-border-strong: var(--wzl-gray-600);
139
- /* 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. */
140
- --wzl-accent-fg: var(--wzl-accent-strong);
141
- /* 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. */
142
- --wzl-fg-inverse: var(--wzl-gray-900);
143
- /* Elevation. Always darker than any surface — never derived from fg, which is near-white on dark. */
144
- --wzl-shadow: rgba(0, 0, 0, 0.6);
145
- /* The line around a raised surface. Clears 3:1 against surface and surface-raised in either mode, which the general-purpose border does not; over surface-sunken it does not, so a panel on a sunken field needs its own answer. */
146
- --wzl-border-raised: var(--wzl-gray-400);
147
152
  }
148
153
 
149
154
  [data-wzl-theme='weasel'][data-wzl-mode='dark'],
@@ -156,11 +161,10 @@
156
161
  --wzl-fg-muted: var(--wzl-gray-300);
157
162
  --wzl-fg-subtle: var(--wzl-gray-400);
158
163
  --wzl-border: var(--wzl-gray-700);
159
- --wzl-border-strong: var(--wzl-gray-600);
164
+ --wzl-border-strong: var(--wzl-gray-400);
160
165
  --wzl-accent-fg: var(--wzl-accent-strong);
161
166
  --wzl-fg-inverse: var(--wzl-gray-900);
162
167
  --wzl-shadow: rgba(0, 0, 0, 0.6);
163
- --wzl-border-raised: var(--wzl-gray-400);
164
168
  --wzl-line-subtle: color-mix(in srgb, var(--wzl-fg) 10%, transparent);
165
169
  --wzl-line: color-mix(in srgb, var(--wzl-fg) 20%, transparent);
166
170
  --wzl-line-strong: color-mix(in srgb, var(--wzl-fg) 40%, transparent);
@@ -178,11 +182,10 @@
178
182
  --wzl-fg-muted: var(--wzl-gray-600);
179
183
  --wzl-fg-subtle: var(--wzl-gray-500);
180
184
  --wzl-border: var(--wzl-gray-200);
181
- --wzl-border-strong: var(--wzl-gray-300);
185
+ --wzl-border-strong: var(--wzl-gray-500);
182
186
  --wzl-accent-fg: var(--wzl-accent-base);
183
187
  --wzl-fg-inverse: var(--wzl-gray-50);
184
188
  --wzl-shadow: rgba(0, 0, 0, 0.18);
185
- --wzl-border-raised: var(--wzl-gray-400);
186
189
  --wzl-line-subtle: color-mix(in srgb, var(--wzl-fg) 10%, transparent);
187
190
  --wzl-line: color-mix(in srgb, var(--wzl-fg) 20%, transparent);
188
191
  --wzl-line-strong: color-mix(in srgb, var(--wzl-fg) 40%, transparent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weasel-js/theme",
3
- "version": "1.4.4",
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
  },