@crewlethq/tokens 0.13.0 → 0.15.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 CHANGED
@@ -273,7 +273,7 @@ The surface ramp was three rungs (`background`, `subtle` and `elevated`) plus fo
273
273
  ```css
274
274
  :root { --density: 1 }
275
275
  :root[data-density="compact"] { --density: 0.82 }
276
- :root[data-density="comfortable"] { --density: 1.14 }
276
+ :root[data-density="comfortable"] { --density: 1.16 }
277
277
  ```
278
278
 
279
279
  Every spacing and size token is emitted as `calc(Npx * var(--density, 1))`, so a density setting is a real change to every gap, pad, row and control rather than to three font sizes, and every value is unchanged at density 1. The stylesheet is a separate import because a product with no density control should not ship the selectors that switch one; the tokens themselves work without it.
@@ -19,5 +19,5 @@
19
19
  }
20
20
 
21
21
  :root[data-density="comfortable"] {
22
- --density: 1.14;
22
+ --density: 1.16;
23
23
  }
@@ -355,7 +355,7 @@
355
355
  --color-brand-accent-soft: rgba(84, 105, 212, 0.158);
356
356
  --color-brand-accent-rgb: 84, 105, 212;
357
357
  --color-brand-accent-soft-strong: rgba(84, 105, 212, 0.32);
358
- --color-border-default: #3f4145;
358
+ --color-border-default: #2e2e30;
359
359
  --color-border-hover: #3f4145;
360
360
  --color-border-strong: #4a4d52;
361
361
  --color-border-strong-hover: #4a4d52;
@@ -35,7 +35,7 @@
35
35
  --color-brand-accent-soft: rgba(84, 105, 212, 0.158);
36
36
  --color-brand-accent-rgb: 84, 105, 212;
37
37
  --color-brand-accent-soft-strong: rgba(84, 105, 212, 0.32);
38
- --color-border-default: #3f4145;
38
+ --color-border-default: #2e2e30;
39
39
  --color-border-hover: #3f4145;
40
40
  --color-border-strong: #4a4d52;
41
41
  --color-border-strong-hover: #4a4d52;
@@ -120,7 +120,7 @@
120
120
  --color-scrollbar-hover: rgba(255, 255, 255, 0.26);
121
121
  --density-compact: 0.82; /** The three steps --density takes, set on the root by @crewlethq/tokens/css/density. Every spacing and size token is emitted as calc(Npx * var(--density, 1)), so a density is a real change to every surface rather than to three font sizes, and every value is unchanged at 1. */
122
122
  --density-normal: 1;
123
- --density-comfortable: 1.14;
123
+ --density-comfortable: 1.16;
124
124
  --motion-duration-instant: 75ms; /** Tooltip flash, dropdown indicator nudge. */
125
125
  --motion-duration-fast: 120ms; /** Menu hover and active state changes. */
126
126
  --motion-duration-base: 150ms; /** Default UI transition. */
package/dist/index.d.ts CHANGED
@@ -140,7 +140,7 @@ export declare const color: {
140
140
  export declare const density: {
141
141
  readonly compact: "0.82";
142
142
  readonly normal: "1";
143
- readonly comfortable: "1.14";
143
+ readonly comfortable: "1.16";
144
144
  };
145
145
  export declare const motion: {
146
146
  readonly duration: {
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ export const color = {
141
141
  export const density = {
142
142
  "compact": "0.82",
143
143
  "normal": "1",
144
- "comfortable": "1.14"
144
+ "comfortable": "1.16"
145
145
  };
146
146
  export const motion = {
147
147
  "duration": {
package/dist/themes.d.ts CHANGED
@@ -373,7 +373,7 @@ export declare const themeRegistry: readonly [{
373
373
  readonly sheet: "#0e0f13";
374
374
  readonly card: "#1c1e24";
375
375
  readonly raised: "#23262c";
376
- readonly hairline: "#3f4145";
376
+ readonly hairline: "#2e2e30";
377
377
  readonly text: "#ececee";
378
378
  readonly muted: "#60646b";
379
379
  readonly accent: "#5469d4";
package/dist/themes.js CHANGED
@@ -381,7 +381,7 @@ export const themeRegistry = [
381
381
  "sheet": "#0e0f13",
382
382
  "card": "#1c1e24",
383
383
  "raised": "#23262c",
384
- "hairline": "#3f4145",
384
+ "hairline": "#2e2e30",
385
385
  "text": "#ececee",
386
386
  "muted": "#60646b",
387
387
  "accent": "#5469d4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/tokens",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Crewlet design tokens. Single JSON source compiled to CSS variables and typed JS modules.",
5
5
  "license": "MIT AND OFL-1.1",
6
6
  "repository": {
package/test/palette.mjs CHANGED
@@ -374,6 +374,10 @@ export const RAIL_PAINTS = [
374
374
  ['a hovered row, label and glyph', '--color-text-primary', null, ['a hovered row'], 4.5],
375
375
  ['the current row, label, glyph and count', '--color-text-primary', null, ['the row the reader is on'], 4.5],
376
376
  ['a group label and its action, a count, a foot row', '--color-text-tertiary', null, ['a row', 'a hovered row'], 4.5],
377
+ // A foot row's count of what is wrong (the alarms standing on a node), its
378
+ // figure and mark in the warning ink. The row lifts under the pointer and
379
+ // while the panel it opens is open, the hover's ground both times.
380
+ ["a foot row's warning count", '--color-feedback-warning-ink', null, ['a row', 'a hovered row'], 4.5],
377
381
  [
378
382
  "a project's key chip",
379
383
  '--color-text-secondary',