@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 +1 -1
- package/dist/css/density.css +1 -1
- package/dist/css/themes/all.css +1 -1
- package/dist/css/themes/origin.css +1 -1
- package/dist/css/tokens.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/themes.d.ts +1 -1
- package/dist/themes.js +1 -1
- package/package.json +1 -1
- package/test/palette.mjs +4 -0
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.
|
|
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.
|
package/dist/css/density.css
CHANGED
package/dist/css/themes/all.css
CHANGED
|
@@ -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: #
|
|
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: #
|
|
38
|
+
--color-border-default: #2e2e30;
|
|
39
39
|
--color-border-hover: #3f4145;
|
|
40
40
|
--color-border-strong: #4a4d52;
|
|
41
41
|
--color-border-strong-hover: #4a4d52;
|
package/dist/css/tokens.css
CHANGED
|
@@ -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.
|
|
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.
|
|
143
|
+
readonly comfortable: "1.16";
|
|
144
144
|
};
|
|
145
145
|
export declare const motion: {
|
|
146
146
|
readonly duration: {
|
package/dist/index.js
CHANGED
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: "#
|
|
376
|
+
readonly hairline: "#2e2e30";
|
|
377
377
|
readonly text: "#ececee";
|
|
378
378
|
readonly muted: "#60646b";
|
|
379
379
|
readonly accent: "#5469d4";
|
package/dist/themes.js
CHANGED
package/package.json
CHANGED
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',
|