@conductor-by-89soone/tokens 0.5.0 → 0.6.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
@@ -271,7 +271,13 @@ 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
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
+ semantic("motion.spin", "1000ms {ease.linear}", "One revolution of the indeterminate spinner."),
275
+ // CR-047: a press, an exit, a large surface, a spring settle, and the step between staged items.
276
+ semantic("motion.instant", "90ms {ease.entrance}", "Press feedback and pointer-tracking highlights."),
277
+ semantic("motion.exit", "160ms {ease.exit}", "Overlay, popover and drawer exits."),
278
+ semantic("motion.slow", "420ms {ease.emphasized}", "Drawers and other large surfaces entering."),
279
+ semantic("motion.spring", "520ms {ease.spring}", "Spring settle for dialogs, popovers and checked indicators (entrances only)."),
280
+ semantic("motion.stagger", "45ms", "Delay step between items of a staged entrance; a duration, never an easing.")
275
281
  ];
276
282
  var scaleTokens = [
277
283
  ...fontSize,
@@ -477,7 +483,7 @@ var overlay = [
477
483
  component("overlay.drawerBackground", ref("surface.raised"), "Drawer panel fill."),
478
484
  component("overlay.drawerWidth", value("500px"), "Drawer panel width."),
479
485
  component("overlay.enter", ref("motion.standard"), "Overlay entrance."),
480
- component("overlay.exit", ref("motion.fast"), "Overlay exit.")
486
+ component("overlay.exit", ref("motion.exit"), "Overlay exit.")
481
487
  ];
482
488
  var HEADING_MIN_PX = FONT_SIZE_PX.xl * 1.2;
483
489
  var HEADING_MAX_PX = FONT_SIZE_PX.xl * 1.6;
@@ -1314,7 +1320,15 @@ var nonColour = [
1314
1320
  primitive("curve.24", "24px", "Corner radius step."),
1315
1321
  primitive("ease.entrance", "cubic-bezier(0.2, 0, 0, 1)", "Entrance and state-change easing."),
1316
1322
  primitive("ease.overshoot", "cubic-bezier(0.34, 1.56, 0.64, 1)", "Toggle settle easing."),
1317
- primitive("ease.linear", "linear", "Constant-rate motion: spinners and marquees.")
1323
+ primitive("ease.linear", "linear", "Constant-rate motion: spinners and marquees."),
1324
+ // CR-047: exits accelerate away, large surfaces decelerate hard, and settles follow a sampled spring.
1325
+ primitive("ease.exit", "cubic-bezier(0.4, 0, 1, 1)", "Exit easing: accelerates out of view."),
1326
+ primitive("ease.emphasized", "cubic-bezier(0.05, 0.7, 0.1, 1)", "Emphasized deceleration for large surfaces and hero entrances."),
1327
+ primitive(
1328
+ "ease.spring",
1329
+ "linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1)",
1330
+ "Damped spring (ratio 0.72, ~4% overshoot) sampled into linear(); entrances only."
1331
+ )
1318
1332
  ];
1319
1333
  var primitiveTokens = [
1320
1334
  ...ink,
@@ -492,7 +492,13 @@ 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
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
+ semantic("motion.spin", "1000ms {ease.linear}", "One revolution of the indeterminate spinner."),
496
+ // CR-047: a press, an exit, a large surface, a spring settle, and the step between staged items.
497
+ semantic("motion.instant", "90ms {ease.entrance}", "Press feedback and pointer-tracking highlights."),
498
+ semantic("motion.exit", "160ms {ease.exit}", "Overlay, popover and drawer exits."),
499
+ semantic("motion.slow", "420ms {ease.emphasized}", "Drawers and other large surfaces entering."),
500
+ semantic("motion.spring", "520ms {ease.spring}", "Spring settle for dialogs, popovers and checked indicators (entrances only)."),
501
+ semantic("motion.stagger", "45ms", "Delay step between items of a staged entrance; a duration, never an easing.")
496
502
  ];
497
503
  var scaleTokens = [
498
504
  ...fontSize,
@@ -698,7 +704,7 @@ var overlay = [
698
704
  component("overlay.drawerBackground", ref("surface.raised"), "Drawer panel fill."),
699
705
  component("overlay.drawerWidth", value("500px"), "Drawer panel width."),
700
706
  component("overlay.enter", ref("motion.standard"), "Overlay entrance."),
701
- component("overlay.exit", ref("motion.fast"), "Overlay exit.")
707
+ component("overlay.exit", ref("motion.exit"), "Overlay exit.")
702
708
  ];
703
709
  var HEADING_MIN_PX = FONT_SIZE_PX.xl * 1.2;
704
710
  var HEADING_MAX_PX = FONT_SIZE_PX.xl * 1.6;
@@ -1535,7 +1541,15 @@ var nonColour = [
1535
1541
  primitive("curve.24", "24px", "Corner radius step."),
1536
1542
  primitive("ease.entrance", "cubic-bezier(0.2, 0, 0, 1)", "Entrance and state-change easing."),
1537
1543
  primitive("ease.overshoot", "cubic-bezier(0.34, 1.56, 0.64, 1)", "Toggle settle easing."),
1538
- primitive("ease.linear", "linear", "Constant-rate motion: spinners and marquees.")
1544
+ primitive("ease.linear", "linear", "Constant-rate motion: spinners and marquees."),
1545
+ // CR-047: exits accelerate away, large surfaces decelerate hard, and settles follow a sampled spring.
1546
+ primitive("ease.exit", "cubic-bezier(0.4, 0, 1, 1)", "Exit easing: accelerates out of view."),
1547
+ primitive("ease.emphasized", "cubic-bezier(0.05, 0.7, 0.1, 1)", "Emphasized deceleration for large surfaces and hero entrances."),
1548
+ primitive(
1549
+ "ease.spring",
1550
+ "linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1)",
1551
+ "Damped spring (ratio 0.72, ~4% overshoot) sampled into linear(); entrances only."
1552
+ )
1539
1553
  ];
1540
1554
  var primitiveTokens = [
1541
1555
  ...ink,
@@ -14,7 +14,7 @@
14
14
  "checks": 232,
15
15
  "passed": 232,
16
16
  "failed": 0,
17
- "excludedTokens": 236,
17
+ "excludedTokens": 241,
18
18
  "forbiddenPairs": 2
19
19
  },
20
20
  "results": [
@@ -3396,6 +3396,31 @@
3396
3396
  "usage": "decorative",
3397
3397
  "reason": "One revolution of the indeterminate spinner."
3398
3398
  },
3399
+ {
3400
+ "key": "motion.instant",
3401
+ "usage": "decorative",
3402
+ "reason": "Press feedback and pointer-tracking highlights."
3403
+ },
3404
+ {
3405
+ "key": "motion.exit",
3406
+ "usage": "decorative",
3407
+ "reason": "Overlay, popover and drawer exits."
3408
+ },
3409
+ {
3410
+ "key": "motion.slow",
3411
+ "usage": "decorative",
3412
+ "reason": "Drawers and other large surfaces entering."
3413
+ },
3414
+ {
3415
+ "key": "motion.spring",
3416
+ "usage": "decorative",
3417
+ "reason": "Spring settle for dialogs, popovers and checked indicators (entrances only)."
3418
+ },
3419
+ {
3420
+ "key": "motion.stagger",
3421
+ "usage": "decorative",
3422
+ "reason": "Delay step between items of a staged entrance; a duration, never an easing."
3423
+ },
3399
3424
  {
3400
3425
  "key": "button.minHeight",
3401
3426
  "usage": "decorative",
package/dist/index.js CHANGED
@@ -169,7 +169,12 @@ var tokens = {
169
169
  fast: "var(--cdt-motion-fast)",
170
170
  standard: "var(--cdt-motion-standard)",
171
171
  bounce: "var(--cdt-motion-bounce)",
172
- spin: "var(--cdt-motion-spin)"
172
+ spin: "var(--cdt-motion-spin)",
173
+ instant: "var(--cdt-motion-instant)",
174
+ exit: "var(--cdt-motion-exit)",
175
+ slow: "var(--cdt-motion-slow)",
176
+ spring: "var(--cdt-motion-spring)",
177
+ stagger: "var(--cdt-motion-stagger)"
173
178
  },
174
179
  button: {
175
180
  minHeight: "var(--cdt-button-min-height)",
package/dist/tokens.css CHANGED
@@ -145,6 +145,11 @@
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
147
  --cdt-motion-spin: 1000ms linear;
148
+ --cdt-motion-instant: 90ms cubic-bezier(0.2, 0, 0, 1);
149
+ --cdt-motion-exit: 160ms cubic-bezier(0.4, 0, 1, 1);
150
+ --cdt-motion-slow: 420ms cubic-bezier(0.05, 0.7, 0.1, 1);
151
+ --cdt-motion-spring: 520ms linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1);
152
+ --cdt-motion-stagger: 45ms;
148
153
 
149
154
  --cdt-button-min-height: 40px;
150
155
  --cdt-button-min-height-compact: 42px;
@@ -302,7 +307,7 @@
302
307
  --cdt-overlay-drawer-background: #141d2a;
303
308
  --cdt-overlay-drawer-width: 500px;
304
309
  --cdt-overlay-enter: 240ms cubic-bezier(0.2, 0, 0, 1);
305
- --cdt-overlay-exit: 140ms cubic-bezier(0.2, 0, 0, 1);
310
+ --cdt-overlay-exit: 160ms cubic-bezier(0.4, 0, 1, 1);
306
311
 
307
312
  --cdt-page-heading-size: clamp(24px, 3vw, 32px);
308
313
  --cdt-page-heading-line-height: 1.16;
@@ -498,6 +503,11 @@
498
503
  --cdt-motion-standard: 240ms cubic-bezier(0.2, 0, 0, 1);
499
504
  --cdt-motion-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
500
505
  --cdt-motion-spin: 1000ms linear;
506
+ --cdt-motion-instant: 90ms cubic-bezier(0.2, 0, 0, 1);
507
+ --cdt-motion-exit: 160ms cubic-bezier(0.4, 0, 1, 1);
508
+ --cdt-motion-slow: 420ms cubic-bezier(0.05, 0.7, 0.1, 1);
509
+ --cdt-motion-spring: 520ms linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1);
510
+ --cdt-motion-stagger: 45ms;
501
511
 
502
512
  --cdt-button-min-height: 40px;
503
513
  --cdt-button-min-height-compact: 42px;
@@ -655,7 +665,7 @@
655
665
  --cdt-overlay-drawer-background: #fbfcfd;
656
666
  --cdt-overlay-drawer-width: 500px;
657
667
  --cdt-overlay-enter: 240ms cubic-bezier(0.2, 0, 0, 1);
658
- --cdt-overlay-exit: 140ms cubic-bezier(0.2, 0, 0, 1);
668
+ --cdt-overlay-exit: 160ms cubic-bezier(0.4, 0, 1, 1);
659
669
 
660
670
  --cdt-page-heading-size: clamp(24px, 3vw, 32px);
661
671
  --cdt-page-heading-line-height: 1.16;
@@ -852,6 +862,11 @@
852
862
  --cdt-motion-standard: 240ms cubic-bezier(0.2, 0, 0, 1);
853
863
  --cdt-motion-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
854
864
  --cdt-motion-spin: 1000ms linear;
865
+ --cdt-motion-instant: 90ms cubic-bezier(0.2, 0, 0, 1);
866
+ --cdt-motion-exit: 160ms cubic-bezier(0.4, 0, 1, 1);
867
+ --cdt-motion-slow: 420ms cubic-bezier(0.05, 0.7, 0.1, 1);
868
+ --cdt-motion-spring: 520ms linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1);
869
+ --cdt-motion-stagger: 45ms;
855
870
 
856
871
  --cdt-button-min-height: 40px;
857
872
  --cdt-button-min-height-compact: 42px;
@@ -1009,7 +1024,7 @@
1009
1024
  --cdt-overlay-drawer-background: #fbfcfd;
1010
1025
  --cdt-overlay-drawer-width: 500px;
1011
1026
  --cdt-overlay-enter: 240ms cubic-bezier(0.2, 0, 0, 1);
1012
- --cdt-overlay-exit: 140ms cubic-bezier(0.2, 0, 0, 1);
1027
+ --cdt-overlay-exit: 160ms cubic-bezier(0.4, 0, 1, 1);
1013
1028
 
1014
1029
  --cdt-page-heading-size: clamp(24px, 3vw, 32px);
1015
1030
  --cdt-page-heading-line-height: 1.16;
package/dist/tokens.d.ts CHANGED
@@ -172,6 +172,11 @@ declare const tokens: {
172
172
  readonly standard: "var(--cdt-motion-standard)";
173
173
  readonly bounce: "var(--cdt-motion-bounce)";
174
174
  readonly spin: "var(--cdt-motion-spin)";
175
+ readonly instant: "var(--cdt-motion-instant)";
176
+ readonly exit: "var(--cdt-motion-exit)";
177
+ readonly slow: "var(--cdt-motion-slow)";
178
+ readonly spring: "var(--cdt-motion-spring)";
179
+ readonly stagger: "var(--cdt-motion-stagger)";
175
180
  };
176
181
  readonly button: {
177
182
  readonly minHeight: "var(--cdt-button-min-height)";
package/dist/tokens.js CHANGED
@@ -165,7 +165,12 @@ var tokens = {
165
165
  fast: "var(--cdt-motion-fast)",
166
166
  standard: "var(--cdt-motion-standard)",
167
167
  bounce: "var(--cdt-motion-bounce)",
168
- spin: "var(--cdt-motion-spin)"
168
+ spin: "var(--cdt-motion-spin)",
169
+ instant: "var(--cdt-motion-instant)",
170
+ exit: "var(--cdt-motion-exit)",
171
+ slow: "var(--cdt-motion-slow)",
172
+ spring: "var(--cdt-motion-spring)",
173
+ stagger: "var(--cdt-motion-stagger)"
169
174
  },
170
175
  button: {
171
176
  minHeight: "var(--cdt-button-min-height)",
package/dist/tokens.json CHANGED
@@ -1357,6 +1357,61 @@
1357
1357
  "light": "1000ms linear"
1358
1358
  }
1359
1359
  },
1360
+ {
1361
+ "key": "motion.instant",
1362
+ "cssName": "--cdt-motion-instant",
1363
+ "tier": "semantic",
1364
+ "usage": "decorative",
1365
+ "description": "Press feedback and pointer-tracking highlights.",
1366
+ "values": {
1367
+ "dark": "90ms cubic-bezier(0.2, 0, 0, 1)",
1368
+ "light": "90ms cubic-bezier(0.2, 0, 0, 1)"
1369
+ }
1370
+ },
1371
+ {
1372
+ "key": "motion.exit",
1373
+ "cssName": "--cdt-motion-exit",
1374
+ "tier": "semantic",
1375
+ "usage": "decorative",
1376
+ "description": "Overlay, popover and drawer exits.",
1377
+ "values": {
1378
+ "dark": "160ms cubic-bezier(0.4, 0, 1, 1)",
1379
+ "light": "160ms cubic-bezier(0.4, 0, 1, 1)"
1380
+ }
1381
+ },
1382
+ {
1383
+ "key": "motion.slow",
1384
+ "cssName": "--cdt-motion-slow",
1385
+ "tier": "semantic",
1386
+ "usage": "decorative",
1387
+ "description": "Drawers and other large surfaces entering.",
1388
+ "values": {
1389
+ "dark": "420ms cubic-bezier(0.05, 0.7, 0.1, 1)",
1390
+ "light": "420ms cubic-bezier(0.05, 0.7, 0.1, 1)"
1391
+ }
1392
+ },
1393
+ {
1394
+ "key": "motion.spring",
1395
+ "cssName": "--cdt-motion-spring",
1396
+ "tier": "semantic",
1397
+ "usage": "decorative",
1398
+ "description": "Spring settle for dialogs, popovers and checked indicators (entrances only).",
1399
+ "values": {
1400
+ "dark": "520ms linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1)",
1401
+ "light": "520ms linear(0, 0.075 5%, 0.242 10%, 0.435 15%, 0.616 20%, 0.766 25%, 0.878 30%, 0.967 36%, 1.015 42%, 1.037 50%, 1.033 60%, 1.012 75%, 1)"
1402
+ }
1403
+ },
1404
+ {
1405
+ "key": "motion.stagger",
1406
+ "cssName": "--cdt-motion-stagger",
1407
+ "tier": "semantic",
1408
+ "usage": "decorative",
1409
+ "description": "Delay step between items of a staged entrance; a duration, never an easing.",
1410
+ "values": {
1411
+ "dark": "45ms",
1412
+ "light": "45ms"
1413
+ }
1414
+ },
1360
1415
  {
1361
1416
  "key": "button.minHeight",
1362
1417
  "cssName": "--cdt-button-min-height",
@@ -3053,10 +3108,10 @@
3053
3108
  "tier": "component",
3054
3109
  "usage": "decorative",
3055
3110
  "description": "Overlay exit.",
3056
- "alias": "motion.fast",
3111
+ "alias": "motion.exit",
3057
3112
  "values": {
3058
- "dark": "140ms cubic-bezier(0.2, 0, 0, 1)",
3059
- "light": "140ms cubic-bezier(0.2, 0, 0, 1)"
3113
+ "dark": "160ms cubic-bezier(0.4, 0, 1, 1)",
3114
+ "light": "160ms cubic-bezier(0.4, 0, 1, 1)"
3060
3115
  }
3061
3116
  },
3062
3117
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conductor-by-89soone/tokens",
3
- "version": "0.5.0",
3
+ "version": "0.6.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/",