@conductor-by-89soone/tokens 0.2.1 → 0.4.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/dist/cli.js CHANGED
@@ -270,7 +270,8 @@ var breakpoint = Object.keys(BREAKPOINT_PX).map(
270
270
  var motion = [
271
271
  semantic("motion.fast", "140ms {ease.entrance}", "Colour, background and border transitions."),
272
272
  semantic("motion.standard", "240ms {ease.entrance}", "Overlay and page entrance."),
273
- semantic("motion.bounce", "300ms {ease.overshoot}", "Toggle and switch settle.")
273
+ semantic("motion.bounce", "300ms {ease.overshoot}", "Toggle and switch settle."),
274
+ semantic("motion.spin", "1000ms {ease.linear}", "One revolution of the indeterminate spinner.")
274
275
  ];
275
276
  var scaleTokens = [
276
277
  ...fontSize,
@@ -555,6 +556,11 @@ var shell = [
555
556
  component("topBar.titleText", ref("text.secondary"), "TopBar context title."),
556
557
  component("topBar.minHeight", value("68px"), "TopBar minimum height.")
557
558
  ];
559
+ var workbench = [
560
+ component("workbench.background", ref("surface.canvas"), "Flat workspace surface."),
561
+ component("workbench.compactPadding", ref("space.2"), "Opt-in compact table cell padding."),
562
+ component("workbench.listHeight", value("240px"), "Bounded combobox option viewport.")
563
+ ];
558
564
  var componentTokens = [
559
565
  ...button,
560
566
  ...card,
@@ -571,7 +577,8 @@ var componentTokens = [
571
577
  ...input,
572
578
  ...overlay,
573
579
  ...page,
574
- ...shell
580
+ ...shell,
581
+ ...workbench
575
582
  ];
576
583
 
577
584
  // src/palette.dark.ts
@@ -1282,7 +1289,8 @@ var nonColour = [
1282
1289
  primitive("curve.18", "18px", "Corner radius step."),
1283
1290
  primitive("curve.24", "24px", "Corner radius step."),
1284
1291
  primitive("ease.entrance", "cubic-bezier(0.2, 0, 0, 1)", "Entrance and state-change easing."),
1285
- primitive("ease.overshoot", "cubic-bezier(0.34, 1.56, 0.64, 1)", "Toggle settle easing.")
1292
+ primitive("ease.overshoot", "cubic-bezier(0.34, 1.56, 0.64, 1)", "Toggle settle easing."),
1293
+ primitive("ease.linear", "linear", "Constant-rate motion: spinners and marquees.")
1286
1294
  ];
1287
1295
  var primitiveTokens = [
1288
1296
  ...ink,
@@ -491,7 +491,8 @@ var breakpoint = Object.keys(BREAKPOINT_PX).map(
491
491
  var motion = [
492
492
  semantic("motion.fast", "140ms {ease.entrance}", "Colour, background and border transitions."),
493
493
  semantic("motion.standard", "240ms {ease.entrance}", "Overlay and page entrance."),
494
- semantic("motion.bounce", "300ms {ease.overshoot}", "Toggle and switch settle.")
494
+ semantic("motion.bounce", "300ms {ease.overshoot}", "Toggle and switch settle."),
495
+ semantic("motion.spin", "1000ms {ease.linear}", "One revolution of the indeterminate spinner.")
495
496
  ];
496
497
  var scaleTokens = [
497
498
  ...fontSize,
@@ -776,6 +777,11 @@ var shell = [
776
777
  component("topBar.titleText", ref("text.secondary"), "TopBar context title."),
777
778
  component("topBar.minHeight", value("68px"), "TopBar minimum height.")
778
779
  ];
780
+ var workbench = [
781
+ component("workbench.background", ref("surface.canvas"), "Flat workspace surface."),
782
+ component("workbench.compactPadding", ref("space.2"), "Opt-in compact table cell padding."),
783
+ component("workbench.listHeight", value("240px"), "Bounded combobox option viewport.")
784
+ ];
779
785
  var componentTokens = [
780
786
  ...button,
781
787
  ...card,
@@ -792,7 +798,8 @@ var componentTokens = [
792
798
  ...input,
793
799
  ...overlay,
794
800
  ...page,
795
- ...shell
801
+ ...shell,
802
+ ...workbench
796
803
  ];
797
804
 
798
805
  // src/palette.dark.ts
@@ -1503,7 +1510,8 @@ var nonColour = [
1503
1510
  primitive("curve.18", "18px", "Corner radius step."),
1504
1511
  primitive("curve.24", "24px", "Corner radius step."),
1505
1512
  primitive("ease.entrance", "cubic-bezier(0.2, 0, 0, 1)", "Entrance and state-change easing."),
1506
- primitive("ease.overshoot", "cubic-bezier(0.34, 1.56, 0.64, 1)", "Toggle settle easing.")
1513
+ primitive("ease.overshoot", "cubic-bezier(0.34, 1.56, 0.64, 1)", "Toggle settle easing."),
1514
+ primitive("ease.linear", "linear", "Constant-rate motion: spinners and marquees.")
1507
1515
  ];
1508
1516
  var primitiveTokens = [
1509
1517
  ...ink,
@@ -14,7 +14,7 @@
14
14
  "checks": 232,
15
15
  "passed": 232,
16
16
  "failed": 0,
17
- "excludedTokens": 228,
17
+ "excludedTokens": 232,
18
18
  "forbiddenPairs": 2
19
19
  },
20
20
  "results": [
@@ -3391,6 +3391,11 @@
3391
3391
  "usage": "decorative",
3392
3392
  "reason": "Toggle and switch settle."
3393
3393
  },
3394
+ {
3395
+ "key": "motion.spin",
3396
+ "usage": "decorative",
3397
+ "reason": "One revolution of the indeterminate spinner."
3398
+ },
3394
3399
  {
3395
3400
  "key": "button.minHeight",
3396
3401
  "usage": "decorative",
@@ -4175,6 +4180,21 @@
4175
4180
  "key": "topBar.minHeight",
4176
4181
  "usage": "decorative",
4177
4182
  "reason": "TopBar minimum height."
4183
+ },
4184
+ {
4185
+ "key": "workbench.background",
4186
+ "usage": "decorative",
4187
+ "reason": "Flat workspace surface."
4188
+ },
4189
+ {
4190
+ "key": "workbench.compactPadding",
4191
+ "usage": "decorative",
4192
+ "reason": "Opt-in compact table cell padding."
4193
+ },
4194
+ {
4195
+ "key": "workbench.listHeight",
4196
+ "usage": "decorative",
4197
+ "reason": "Bounded combobox option viewport."
4178
4198
  }
4179
4199
  ],
4180
4200
  "forbidden": [
package/dist/index.js CHANGED
@@ -168,7 +168,8 @@ var tokens = {
168
168
  motion: {
169
169
  fast: "var(--cdt-motion-fast)",
170
170
  standard: "var(--cdt-motion-standard)",
171
- bounce: "var(--cdt-motion-bounce)"
171
+ bounce: "var(--cdt-motion-bounce)",
172
+ spin: "var(--cdt-motion-spin)"
172
173
  },
173
174
  button: {
174
175
  minHeight: "var(--cdt-button-min-height)",
@@ -420,6 +421,11 @@ var tokens = {
420
421
  eyebrowText: "var(--cdt-top-bar-eyebrow-text)",
421
422
  titleText: "var(--cdt-top-bar-title-text)",
422
423
  minHeight: "var(--cdt-top-bar-min-height)"
424
+ },
425
+ workbench: {
426
+ background: "var(--cdt-workbench-background)",
427
+ compactPadding: "var(--cdt-workbench-compact-padding)",
428
+ listHeight: "var(--cdt-workbench-list-height)"
423
429
  }
424
430
  };
425
431
 
package/dist/tokens.css CHANGED
@@ -144,6 +144,7 @@
144
144
  --cdt-motion-fast: 140ms cubic-bezier(0.2, 0, 0, 1);
145
145
  --cdt-motion-standard: 240ms cubic-bezier(0.2, 0, 0, 1);
146
146
  --cdt-motion-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
147
+ --cdt-motion-spin: 1000ms linear;
147
148
 
148
149
  --cdt-button-min-height: 40px;
149
150
  --cdt-button-min-height-compact: 42px;
@@ -346,6 +347,10 @@
346
347
  --cdt-top-bar-eyebrow-text: #5f6d80;
347
348
  --cdt-top-bar-title-text: #c5cfdd;
348
349
  --cdt-top-bar-min-height: 68px;
350
+
351
+ --cdt-workbench-background: #0b101a;
352
+ --cdt-workbench-compact-padding: 8px;
353
+ --cdt-workbench-list-height: 240px;
349
354
  }
350
355
 
351
356
  :root[data-cdt-theme="light"] {
@@ -488,6 +493,7 @@
488
493
  --cdt-motion-fast: 140ms cubic-bezier(0.2, 0, 0, 1);
489
494
  --cdt-motion-standard: 240ms cubic-bezier(0.2, 0, 0, 1);
490
495
  --cdt-motion-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
496
+ --cdt-motion-spin: 1000ms linear;
491
497
 
492
498
  --cdt-button-min-height: 40px;
493
499
  --cdt-button-min-height-compact: 42px;
@@ -690,6 +696,10 @@
690
696
  --cdt-top-bar-eyebrow-text: #6b788c;
691
697
  --cdt-top-bar-title-text: #33415a;
692
698
  --cdt-top-bar-min-height: 68px;
699
+
700
+ --cdt-workbench-background: #eef1f6;
701
+ --cdt-workbench-compact-padding: 8px;
702
+ --cdt-workbench-list-height: 240px;
693
703
  }
694
704
 
695
705
  @media (prefers-color-scheme: light) {
@@ -833,6 +843,7 @@
833
843
  --cdt-motion-fast: 140ms cubic-bezier(0.2, 0, 0, 1);
834
844
  --cdt-motion-standard: 240ms cubic-bezier(0.2, 0, 0, 1);
835
845
  --cdt-motion-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
846
+ --cdt-motion-spin: 1000ms linear;
836
847
 
837
848
  --cdt-button-min-height: 40px;
838
849
  --cdt-button-min-height-compact: 42px;
@@ -1035,5 +1046,9 @@
1035
1046
  --cdt-top-bar-eyebrow-text: #6b788c;
1036
1047
  --cdt-top-bar-title-text: #33415a;
1037
1048
  --cdt-top-bar-min-height: 68px;
1049
+
1050
+ --cdt-workbench-background: #eef1f6;
1051
+ --cdt-workbench-compact-padding: 8px;
1052
+ --cdt-workbench-list-height: 240px;
1038
1053
  }
1039
1054
  }
package/dist/tokens.d.ts CHANGED
@@ -171,6 +171,7 @@ declare const tokens: {
171
171
  readonly fast: "var(--cdt-motion-fast)";
172
172
  readonly standard: "var(--cdt-motion-standard)";
173
173
  readonly bounce: "var(--cdt-motion-bounce)";
174
+ readonly spin: "var(--cdt-motion-spin)";
174
175
  };
175
176
  readonly button: {
176
177
  readonly minHeight: "var(--cdt-button-min-height)";
@@ -423,6 +424,11 @@ declare const tokens: {
423
424
  readonly titleText: "var(--cdt-top-bar-title-text)";
424
425
  readonly minHeight: "var(--cdt-top-bar-min-height)";
425
426
  };
427
+ readonly workbench: {
428
+ readonly background: "var(--cdt-workbench-background)";
429
+ readonly compactPadding: "var(--cdt-workbench-compact-padding)";
430
+ readonly listHeight: "var(--cdt-workbench-list-height)";
431
+ };
426
432
  };
427
433
  /** Shape of the token object, with every leaf narrowed to its own string literal. */
428
434
  type Tokens = typeof tokens;
package/dist/tokens.js CHANGED
@@ -164,7 +164,8 @@ var tokens = {
164
164
  motion: {
165
165
  fast: "var(--cdt-motion-fast)",
166
166
  standard: "var(--cdt-motion-standard)",
167
- bounce: "var(--cdt-motion-bounce)"
167
+ bounce: "var(--cdt-motion-bounce)",
168
+ spin: "var(--cdt-motion-spin)"
168
169
  },
169
170
  button: {
170
171
  minHeight: "var(--cdt-button-min-height)",
@@ -416,6 +417,11 @@ var tokens = {
416
417
  eyebrowText: "var(--cdt-top-bar-eyebrow-text)",
417
418
  titleText: "var(--cdt-top-bar-title-text)",
418
419
  minHeight: "var(--cdt-top-bar-min-height)"
420
+ },
421
+ workbench: {
422
+ background: "var(--cdt-workbench-background)",
423
+ compactPadding: "var(--cdt-workbench-compact-padding)",
424
+ listHeight: "var(--cdt-workbench-list-height)"
419
425
  }
420
426
  };
421
427
 
package/dist/tokens.json CHANGED
@@ -1346,6 +1346,17 @@
1346
1346
  "light": "300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
1347
1347
  }
1348
1348
  },
1349
+ {
1350
+ "key": "motion.spin",
1351
+ "cssName": "--cdt-motion-spin",
1352
+ "tier": "semantic",
1353
+ "usage": "decorative",
1354
+ "description": "One revolution of the indeterminate spinner.",
1355
+ "values": {
1356
+ "dark": "1000ms linear",
1357
+ "light": "1000ms linear"
1358
+ }
1359
+ },
1349
1360
  {
1350
1361
  "key": "button.minHeight",
1351
1362
  "cssName": "--cdt-button-min-height",
@@ -3465,6 +3476,41 @@
3465
3476
  "dark": "68px",
3466
3477
  "light": "68px"
3467
3478
  }
3479
+ },
3480
+ {
3481
+ "key": "workbench.background",
3482
+ "cssName": "--cdt-workbench-background",
3483
+ "tier": "component",
3484
+ "usage": "decorative",
3485
+ "description": "Flat workspace surface.",
3486
+ "alias": "surface.canvas",
3487
+ "values": {
3488
+ "dark": "#0b101a",
3489
+ "light": "#eef1f6"
3490
+ }
3491
+ },
3492
+ {
3493
+ "key": "workbench.compactPadding",
3494
+ "cssName": "--cdt-workbench-compact-padding",
3495
+ "tier": "component",
3496
+ "usage": "decorative",
3497
+ "description": "Opt-in compact table cell padding.",
3498
+ "alias": "space.2",
3499
+ "values": {
3500
+ "dark": "8px",
3501
+ "light": "8px"
3502
+ }
3503
+ },
3504
+ {
3505
+ "key": "workbench.listHeight",
3506
+ "cssName": "--cdt-workbench-list-height",
3507
+ "tier": "component",
3508
+ "usage": "decorative",
3509
+ "description": "Bounded combobox option viewport.",
3510
+ "values": {
3511
+ "dark": "240px",
3512
+ "light": "240px"
3513
+ }
3468
3514
  }
3469
3515
  ]
3470
3516
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conductor-by-89soone/tokens",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "Theme-aware design tokens and validation CLIs for Conductor.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://89sooner.github.io/design-system/",