@crewlethq/tokens 0.57.2 → 0.58.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 +6 -0
- package/dist/css/tokens.css +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -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.58.0: the working ring's own pace
|
|
87
|
+
|
|
88
|
+
`--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.
|
|
89
|
+
|
|
86
90
|
## Changed in 0.50.0: the nearest shade that clears a floor
|
|
87
91
|
|
|
88
92
|
| What changed | What to change | Details |
|
|
@@ -518,6 +522,8 @@ No token is renamed or removed here; values moved to the approved design, and se
|
|
|
518
522
|
| `--motion-duration-moderate` | 200ms | A rail row's hover, a bar's background |
|
|
519
523
|
| `--motion-duration-slow` | 300ms | A dialog entering, a drawer sliding |
|
|
520
524
|
| `--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
|
+
| `--motion-duration-turn` | 1000ms | The PERIOD of one full rotation of a working ring (`Spinner`), linear. Not a transition |
|
|
526
|
+
| `--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 |
|
|
521
527
|
|
|
522
528
|
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`.
|
|
523
529
|
|
package/dist/css/tokens.css
CHANGED
|
@@ -142,6 +142,8 @@
|
|
|
142
142
|
--motion-duration-moderate: 200ms; /** Nav hover, topbar background changes. */
|
|
143
143
|
--motion-duration-slow: 300ms; /** Modal enter, drawer slide. */
|
|
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
|
+
--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
|
+
--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. */
|
|
145
147
|
--motion-easing-default: ease;
|
|
146
148
|
--motion-easing-out: ease-out;
|
|
147
149
|
--motion-easing-in-out: ease-in-out;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED