@crewlethq/tokens 0.66.0 → 0.68.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 +5 -0
- package/dist/css/tokens.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,6 +83,10 @@ nearestContrastShade('#00baba', '#f6f7fb', WCAG_CONTRAST.aaLarge); // '#00a0a0',
|
|
|
83
83
|
|
|
84
84
|
Show the ratio of the value it returns, measured with `contrast`, rather than the floor it was asked for.
|
|
85
85
|
|
|
86
|
+
## Changed in 0.67.0: the Assistant's working gesture
|
|
87
|
+
|
|
88
|
+
`--motion-duration-spark` (1600ms, `motion.duration.spark`) is new. It is a PERIOD, like `--motion-duration-turn`: one working gesture of the Assistant's mark in `@crewlethq/ui`'s `ThinkingIndicator`, its main spark making a quarter turn while its companion dims, then resting. Nothing to change: no token is renamed or removed.
|
|
89
|
+
|
|
86
90
|
## Changed in 0.58.0: the working ring's own pace
|
|
87
91
|
|
|
88
92
|
`--motion-duration-turn` (1000ms, `motion.duration.turn`) and `--motion-duration-sweep` (1500ms, `motion.duration.sweep`) are new. They are PERIODS, like `--motion-duration-breath`: one full rotation of a working ring, and one round of its arc lengthening and shortening. `@crewlethq/ui`'s `Spinner` turned once per `--motion-duration-slow` (300ms), a transition step, which is more than three turns a second. Nothing to change: no token is renamed or removed, and a stylesheet of your own that spins a mark reads `--motion-duration-turn` rather than a transition step.
|
|
@@ -524,6 +528,7 @@ No token is renamed or removed here; values moved to the approved design, and se
|
|
|
524
528
|
| `--motion-duration-breath` | 2200ms | The PERIOD of a mark saying work is still happening: one full round, out and back, 0.45 cycles a second. Not a transition. A pulsing `StatusDot` breathes one round of it |
|
|
525
529
|
| `--motion-duration-turn` | 1000ms | The PERIOD of one full rotation of a working ring (`Spinner`), linear. Not a transition |
|
|
526
530
|
| `--motion-duration-sweep` | 1500ms | The PERIOD of a working ring's arc lengthening and shortening, out and back. Not a whole number of turns, so the arc's longest reach lands somewhere new each round. Not a transition |
|
|
531
|
+
| `--motion-duration-spark` | 1600ms | The PERIOD of the Assistant mark's working gesture (`ThinkingIndicator`): a quarter turn of its main spark and a dip of its companion over half of the period, then rest. Not a transition |
|
|
527
532
|
|
|
528
533
|
A component that moves stops every motion it starts in the same stylesheet, naming the rule's selector again, after it, inside `@media (prefers-reduced-motion: reduce)`, which is what `crewlet-css-check` in `@crewlethq/ui` holds it to; and `@crewlethq/tokens/css/base` collapses motion for the whole document under `prefers-reduced-motion: reduce`.
|
|
529
534
|
|
package/dist/css/tokens.css
CHANGED
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
--motion-duration-breath: 2200ms; /** The PERIOD of a mark saying that work is still happening: one full round, out and back. 0.45 cycles a second, the approved design's 2.2s, slow enough to read as breathing rather than as an alert and far under the three flashes a second that are a seizure risk. A PERIOD rather than a transition: nothing uses it to move a surface from one place to another. */
|
|
145
145
|
--motion-duration-turn: 1000ms; /** The PERIOD of one full rotation of the working ring (Spinner), linear. One turn a second reads as steady work rather than as urgency: the ring turned once per slow step (300ms), more than three turns a second, and read as frantic. A PERIOD rather than a transition. */
|
|
146
146
|
--motion-duration-sweep: 1500ms; /** The PERIOD of the working ring's arc lengthening and shortening, out and back. Deliberately not a multiple of the turn, so the arc's longest reach lands at a different angle each round and the motion never reads as a loop. A PERIOD rather than a transition. */
|
|
147
|
+
--motion-duration-spark: 1600ms; /** The PERIOD of the Assistant mark's working gesture (ThinkingIndicator): its main spark makes one quarter turn while its companion dims, over half of the period (20% to 70%), and both rest for the other half. One gesture in 1.6s reads as considered work rather than as a spinner, and it never flashes. A PERIOD rather than a transition. */
|
|
147
148
|
--motion-easing-default: ease;
|
|
148
149
|
--motion-easing-out: ease-out;
|
|
149
150
|
--motion-easing-in-out: ease-in-out;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED