An open source design system that's fully customizable and agent ready
TypeScript
/* Copyright (c) Meta Platforms, Inc. and affiliates. */
/*
* The motion the lab is here to argue about.
*
* A CSS module rather than the `xstyle` prop because almost nothing in this
* file can be expressed as a style object: `@keyframes`, `@starting-style`,
* `transition-behavior: allow-discrete`, and the `:popover-open` state are the
* proposal's actual subject matter, not decoration around it. The exit-gap
* page in particular has to run the real technique in the real browser — a
* simulation would be answering a different question than the one the reader
* came with.
*
* Two rules hold everywhere below:
*
* 1. Nothing reads a raw `--duration-*` token. Demos read the `--lab-duration-*`
* aliases the store writes, which are the same values multiplied by the
* slow-mo factor. Tuning a token and watching it at 8x are then independent,
* and the value the export page writes out is never the stretched one.
*
* 2. Movement is multiplied by `--lab-translate` / `--lab-scale`. Reduced
* motion set to "degrade" zeroes those two and leaves opacity and colour
* alone, which is the whole distinction the degrade-or-delete decision
* turns on. Setting it to "delete" additionally collapses the durations.
*/
.scope {
/* Movement multipliers — the reduced-motion switch drives these. */
--lab-translate: 1;
--lab-scale: 1;
/* Fallbacks, so a demo still runs if it mounts before the store's effect. */
--lab-duration-instant: 0ms;
--lab-duration-press: 130ms;
--lab-duration-state: 175ms;
--lab-duration-enter: 230ms;
--lab-duration-exit: 175ms;
--lab-duration-reveal: 310ms;
--lab-duration-overlay: 410ms;
--lab-duration-continuous: 975ms;
--lab-stagger-tight: 30ms;
--lab-stagger-base: 50ms;
--lab-stagger-loose: 80ms;
--lab-speed: 1;
}
/* The reduced-motion policy is applied by MotionLabStore, not here: it writes
--lab-* inline on this element, and an inline custom property beats any
selector in this file. Redeclaring them under a [data-reduced-motion]
selector looked correct and silently did nothing. Only the loop rule below
stays in CSS, because `animation: none !important` does outrank the
element's own animation shorthand. */
/* NOTE: there is no `.loop` rule here on purpose. One used to stop continuous
loops under the reduced-motion policies and it never fired — nothing applies
the class, and LoopRig sets `animation: none` inline, which would outrank it
anyway. That is the same trap as the duration aliases above. The policy lives
in the rig; do not add a stylesheet rule back and assume it works.
Containment lives on each loop's own class below (`contain: paint`), because
the classes are what the demos actually apply. Three of those loops animate a
paint-only or layout property deliberately — they are the demonstration of
what criterion 13 forbids — and without containment the demonstration would
repaint the whole lab around itself at 60fps, which is the kt-fr88 bug being
committed by the page that documents it. The layer, where one is warranted,
is gated on no-preference so a reduced-motion reader is not charged layer
memory for a mark that has been stilled. */
/* ---------------------------------------------------------------- stage --- */
.stage {
position: relative;
display: grid;
place-items: center;
min-height: 132px;
padding: var(--space-4, 16px);
border-radius: var(--radius-md, 8px);
background: var(--color-background-base);
border: 1px solid var(--color-border-subtle, var(--color-border));
overflow: hidden;
}
.stageTall {
min-height: 210px;
}
.stageStart {
place-items: center start;
}
.stageBlock {
display: block;
}
/* ------------------------------------------------------------- runner ---- */
/* A single box travelling a fixed distance: the cleanest way to read a curve,
because there is nothing else in the frame to attribute the feel to. */
.runner {
position: relative;
height: 40px;
border-radius: var(--radius-md, 8px);
background: var(--color-background-base);
border: 1px dashed var(--color-border);
overflow: hidden;
}
.runnerDot {
position: absolute;
inset-block-start: 50%;
inset-inline-start: 5px;
width: 26px;
height: 26px;
margin-block-start: -13px;
border-radius: var(--radius-md, 7px);
background: var(--color-brand, var(--color-background-inverse));
}
/* ------------------------------------------------------------- layers ---- */
/*
* The exit gap, both halves.
*
* `.layerBefore` reproduces what eleven components do today: a transition on
* the way in, and nothing at all on the way out, so the element is simply
* hidden on the next frame. It is deliberately not "a fast exit" — the whole
* finding is that there is no exit.
*/
.layer {
position: absolute;
z-index: 5;
min-width: 132px;
padding: var(--space-2, 8px) var(--space-3, 12px);
border-radius: var(--radius-md, 9px);
background: var(--color-background-elevated, var(--color-background-surface));
border: 1px solid var(--color-border);
box-shadow: var(--shadow-overlay, 0 14px 34px -14px rgb(0 0 0 / 55%));
opacity: 0;
visibility: hidden;
transform: translateY(calc(-4px * var(--lab-translate)))
scale(calc(1 - 0.04 * var(--lab-scale)));
transform-origin: var(--layer-origin, top center);
}
.layerAfter {
transition:
opacity var(--lab-duration-exit) var(--ease-exit),
transform var(--lab-duration-exit) var(--ease-exit),
visibility 0s linear var(--lab-duration-exit);
}
.layerAfter[data-open='true'] {
opacity: 1;
visibility: visible;
transform: translateY(0) scale(1);
transition:
opacity var(--lab-duration-enter) var(--ease-entry),
transform var(--lab-duration-enter) var(--ease-entry),
visibility 0s linear 0s;
}
.layerBefore[data-open='true'] {
opacity: 1;
visibility: visible;
transform: translateY(0) scale(1);
transition:
opacity var(--lab-duration-enter) var(--ease-standard),
transform var(--lab-duration-enter) var(--ease-standard);
}
/* --------------------------------------------------- native popover ------ */
/*
* The proposed implementation, running for real: a transition on `display` and
* `overlay` with `allow-discrete` keeps the element in the top layer for the
* length of its exit, and `@starting-style` gives it somewhere to enter from.
* This is the card that decides whether the shared primitive needs a JS
* fallback, so it must not be faked.
*/
.nativePopover {
margin: 0;
padding: var(--space-3, 12px);
border-radius: var(--radius-md, 9px);
background: var(--color-background-elevated, var(--color-background-surface));
color: var(--color-text-primary);
border: 1px solid var(--color-border);
box-shadow: var(--shadow-overlay, 0 14px 34px -14px rgb(0 0 0 / 55%));
max-width: 320px;
opacity: 0;
transform: scale(0.96) translateY(-4px);
transform-origin: top center;
transition:
opacity var(--lab-duration-exit) var(--ease-exit),
transform var(--lab-duration-exit) var(--ease-exit),
display var(--lab-duration-exit) allow-discrete,
overlay var(--lab-duration-exit) allow-discrete;
}
.nativePopover:popover-open {
opacity: 1;
transform: scale(1) translateY(0);
transition:
opacity var(--lab-duration-enter) var(--ease-entry),
transform var(--lab-duration-enter) var(--ease-entry),
display var(--lab-duration-enter) allow-discrete,
overlay var(--lab-duration-enter) allow-discrete;
}
@starting-style {
.nativePopover:popover-open {
opacity: 0;
transform: scale(0.96) translateY(-4px);
}
}
/* -------------------------------------------------------------- dialog --- */
.scrim {
position: absolute;
inset: 0;
background: rgb(0 0 0 / 50%);
opacity: 0;
visibility: hidden;
}
/* The backdrop has no transition at all today, so the scrim hard-cuts even
where the panel animates. Two separate bugs, two separate controls. */
.scrimAfter {
transition:
opacity var(--lab-duration-overlay) linear,
visibility 0s linear var(--lab-duration-overlay);
}
.scrimAfter[data-open='true'] {
opacity: 1;
visibility: visible;
transition:
opacity var(--lab-duration-overlay) linear,
visibility 0s;
}
.scrimBefore[data-open='true'] {
opacity: 1;
visibility: visible;
}
.dialog {
position: absolute;
inset-inline-start: 50%;
inset-block-start: 50%;
z-index: 4;
width: min(260px, 78%);
opacity: 0;
visibility: hidden;
transform: translate(-50%, calc(-50% + 10px * var(--lab-translate)))
scale(calc(1 - 0.04 * var(--lab-scale)));
}
.dialogAfter {
transition:
opacity var(--lab-duration-exit) var(--ease-exit),
transform var(--lab-duration-exit) var(--ease-exit),
visibility 0s linear var(--lab-duration-exit);
}
.dialogAfter[data-open='true'] {
opacity: 1;
visibility: visible;
transform: translate(-50%, -50%) scale(1);
transition:
opacity var(--lab-duration-overlay) var(--ease-entry),
transform var(--lab-duration-overlay) var(--ease-entry),
visibility 0s;
}
.dialogBefore[data-open='true'] {
opacity: 1;
visibility: visible;
transform: translate(-50%, -50%) scale(1);
animation: dialogIn var(--lab-duration-overlay) var(--ease-standard);
}
@keyframes dialogIn {
from {
opacity: 0;
transform: translate(-50%, calc(-50% + 10px)) scale(0.96);
}
}
/* The trigger's focus ring, drawn as a marker so the race is watchable:
today it lights the instant the dialog closes, mid-exit. */
.focusMarker {
position: absolute;
border: 2px solid var(--color-border-focus, var(--color-brand));
border-radius: var(--radius-md, 8px);
opacity: 0;
pointer-events: none;
transition: opacity 90ms linear;
}
.focusMarkerOn {
opacity: 1;
}
/* -------------------------------------------------------------- drawer --- */
.drawer {
position: absolute;
inset-block: 0;
inset-inline-end: 0;
width: 62%;
z-index: 4;
padding: var(--space-4, 16px);
background: var(--color-background-surface);
border-inline-start: 1px solid var(--color-border);
transform: translateX(100%);
visibility: hidden;
transition:
transform var(--drawer-slide, 410ms) var(--ease-drawer),
visibility 0s linear var(--drawer-slide, 410ms);
}
.drawer[data-open='true'] {
transform: translateX(0);
visibility: visible;
transition:
transform var(--drawer-slide, 410ms) var(--ease-drawer),
visibility 0s;
}
/* The unmount timer firing while the slide is still running. */
.drawerCut {
visibility: hidden;
transition: none;
}
.track {
position: relative;
height: 22px;
border-radius: var(--radius-sm, 5px);
background: var(--color-background-base);
border: 1px solid var(--color-border);
overflow: hidden;
}
.trackFill {
position: absolute;
inset-block: 0;
inset-inline-start: 0;
width: 0;
}
.trackSlide {
background: color-mix(in srgb, var(--color-brand) 45%, transparent);
}
.trackTimer {
background: color-mix(
in srgb,
var(--color-text-error, #d3543f) 45%,
transparent
);
}
/* --------------------------------------------------- sliding indicator --- */
.indicator {
position: absolute;
inset-block-end: -1px;
height: 2px;
inset-inline-start: 0;
width: 0;
border-radius: 2px;
background: var(--color-brand);
transition:
transform var(--lab-duration-reveal) var(--ease-move),
width var(--lab-duration-reveal) var(--ease-move);
}
.indicatorTrack {
position: relative;
}
.segThumb {
position: absolute;
z-index: 0;
inset-block: 3px;
inset-inline-start: 0;
width: 0;
border-radius: var(--radius-md, 6px);
background: var(--color-background-elevated, var(--color-background-surface));
transition:
transform var(--lab-duration-reveal) var(--ease-move),
width var(--lab-duration-reveal) var(--ease-move);
}
/* ---------------------------------------------------------- disclosure --- */
.gridBody {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows var(--lab-duration-reveal) var(--ease-move);
}
.gridBody[data-open='true'] {
grid-template-rows: 1fr;
}
.gridBody > * {
overflow: hidden;
}
.heightBody {
height: 0;
overflow: hidden;
transition: height var(--lab-duration-reveal) var(--ease-move);
}
.offsetFade {
opacity: 0;
transform: translateY(calc(-6px * var(--lab-translate)));
transition:
opacity var(--lab-duration-state) var(--ease-entry),
transform var(--lab-duration-state) var(--ease-entry);
}
.offsetFade[data-open='true'] {
opacity: 1;
transform: none;
transition-delay: 80ms;
}
.chevron {
display: inline-flex;
transition: transform var(--lab-duration-state) var(--ease-state);
}
.chevronOpen {
transform: rotate(90deg);
}
/* ------------------------------------------------------ skeleton swap ---- */
.swap {
position: relative;
min-height: 66px;
}
.swapSkeleton {
position: absolute;
inset: 0;
transition: opacity var(--lab-duration-state) var(--ease-state);
}
.swapContent {
opacity: 0;
transition: opacity var(--lab-duration-state) var(--ease-state);
}
.swap[data-loaded='true'] .swapSkeleton {
opacity: 0;
}
.swap[data-loaded='true'] .swapContent {
opacity: 1;
transition-delay: var(--swap-overlap, 60ms);
}
.swapHard .swapSkeleton,
.swapHard .swapContent {
transition: none !important;
}
/* ---------------------------------------------------------- enter/exit --- */
.enter {
animation: enterIn var(--lab-duration-enter) var(--ease-entry) both;
}
.leave {
animation: leaveOut var(--lab-duration-exit) var(--ease-exit) both;
}
@keyframes enterIn {
from {
opacity: 0;
transform: translateY(calc(8px * var(--lab-translate)))
scale(calc(1 - 0.06 * var(--lab-scale)));
}
}
@keyframes leaveOut {
to {
opacity: 0;
transform: scale(calc(1 - 0.08 * var(--lab-scale)));
}
}
.staggerItem {
opacity: 0;
transform: translateY(calc(7px * var(--lab-translate)));
}
.staggerOn .staggerItem {
opacity: 1;
transform: none;
transition:
opacity var(--lab-duration-enter) var(--ease-entry),
transform var(--lab-duration-enter) var(--ease-entry);
}
.staggerHard .staggerItem {
transition: none !important;
opacity: 1;
transform: none;
}
/* --------------------------------------------------------- reflow slot --- */
.reflowSlot {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows var(--lab-duration-reveal) var(--ease-move);
}
.reflowSlot[data-open='true'] {
grid-template-rows: 1fr;
}
.reflowSlot > * {
overflow: hidden;
}
.reflowHard {
transition: none !important;
}
/* -------------------------------------------------------- compositor ----- */
/* Outline's marker, both ways. The "before" animates `top` and `height`, which
runs layout for the whole list every frame; the "after" is a 1px marker
moved and stretched with `transform` alone. */
.marker {
position: absolute;
inset-inline-start: 0;
width: 3px;
border-radius: 2px;
/* Astryx's accent: the sandbox defines no --color-brand, which left the
marker transparent. */
background: var(--color-accent);
}
.markerLayout {
transition:
top var(--lab-duration-reveal) var(--ease-move),
height var(--lab-duration-reveal) var(--ease-move);
}
.markerComposited {
inset-block-start: 0;
height: 1px;
transform-origin: top left;
transition: transform var(--lab-duration-reveal) var(--ease-move);
}
/* ---------------------------------------------------- interruptibility --- */
.ball {
width: 30px;
height: 30px;
border-radius: var(--radius-md, 9px);
background: var(--color-brand);
}
.ballTransition {
transition: transform var(--lab-duration-overlay) var(--ease-move);
}
.ballKeyframe {
animation-duration: var(--lab-duration-overlay);
animation-timing-function: var(--ease-move);
animation-fill-mode: both;
}
.ballGo {
animation-name: ballGo;
}
.ballBack {
animation-name: ballBack;
}
@keyframes ballGo {
from {
transform: translateX(0);
}
to {
transform: translateX(var(--ball-distance, 160px));
}
}
@keyframes ballBack {
from {
transform: translateX(var(--ball-distance, 160px));
}
to {
transform: translateX(0);
}
}
/* ---------------------------------------------------------------- press --- */
.pressTransform {
transition: transform var(--lab-duration-press) var(--ease-entry);
}
.pressTransform:active {
transform: scale(0.96);
}
/* The middle path: press feedback on the independent `scale` property, which
no longer collides with a motion library writing `transform` every frame. */
.pressScale {
transition: scale var(--lab-duration-press) var(--ease-entry);
}
.pressScale:active {
scale: 0.96;
}
/* ---------------------------------------------------------------- loops --- */
.spinner {
contain: paint;
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid var(--color-border);
border-block-start-color: var(--color-brand);
animation: spin var(--loop-duration, 975ms) var(--loop-ease, linear) infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.pulseDot {
contain: paint;
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--color-background-success, #3f9a6b);
animation: pulseRing var(--loop-duration, 2s) var(--loop-ease, ease-in-out)
infinite;
}
@keyframes pulseRing {
0%,
100% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-brand) 55%, transparent);
}
50% {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-brand) 0%, transparent);
}
}
.shimmer {
contain: paint;
height: 11px;
border-radius: 6px;
background: linear-gradient(
90deg,
var(--color-background-base) 0%,
var(--color-border) 40%,
var(--color-background-base) 80%
);
background-size: 220% 100%;
animation: shimmer var(--loop-duration, 1.5s) var(--loop-ease, ease-in-out)
infinite;
}
@keyframes shimmer {
from {
background-position: 130% 0;
}
to {
background-position: -30% 0;
}
}
.progressTrack {
position: relative;
height: 6px;
border-radius: 4px;
background: var(--color-background-base);
overflow: hidden;
}
.progressFillWidth {
contain: paint;
position: absolute;
inset-block: 0;
inset-inline-start: 0;
width: 34%;
border-radius: 4px;
background: var(--color-brand);
animation: progressWidth var(--loop-duration, 1.4s) linear infinite;
}
.progressFillTransform {
contain: paint;
position: absolute;
inset-block: 0;
inset-inline-start: 0;
width: 34%;
border-radius: 4px;
background: var(--color-brand);
animation: progressTransform var(--loop-duration, 1.4s) linear infinite;
}
@keyframes progressWidth {
from {
inset-inline-start: -34%;
}
to {
inset-inline-start: 100%;
}
}
@keyframes progressTransform {
from {
transform: translateX(-100%);
}
to {
transform: translateX(294%);
}
}
/* ------------------------------------------------------- progress fill ---- */
/* A copy of ProgressBar's track and fill (8px, muted track, accent fill, full
radius) whose fill moves with transform instead of width, on the same token
and curve core uses, so the pair differs only in technique. */
.fillTrack {
position: relative;
height: 8px;
border-radius: var(--radius-full);
overflow: hidden;
}
.fillScale {
position: absolute;
inset: 0;
border-radius: inherit;
transform-origin: left center;
transition: transform var(--duration-medium) var(--ease-standard);
}
/* Core's own paint, in Core's layer, so a theme's rule for the
ProgressBar targets (the copy carries their classes) wins as it does on
the real bar. */
@layer astryx-base {
.fillTrack {
background: var(--color-background-muted);
}
.fillScale {
background: var(--color-accent);
}
}
[dir='rtl'] .fillScale {
transform-origin: right center;
}
/* Forced colours paint the track and fill as Canvas: Core's fill keeps its
shape with a CanvasText outline, and so does the copy. */
@media (forced-colors: active) {
.fillScale {
outline: 1px solid CanvasText;
outline-offset: -1px;
}
}
/* ---------------------------------------------------------------- tint ---- */
/* The Table hover tint, at whatever duration and curve is being argued over.
Rows 1-9 of the violation table are this, and the honest finding is that
150ms and 175ms are near-indistinguishable at 1x, which is why the preview
also shows the tint with no transition at all. */
.tintTable {
width: 100%;
/* Three panes share a narrow window: the columns shrink to the pane. */
table-layout: fixed;
border-collapse: separate;
border-spacing: 0;
}
.tintTable td {
padding: var(--space-2, 6px) var(--space-3, 10px);
border-bottom: 1px solid var(--color-border);
overflow-wrap: anywhere;
}
/* Also the "real rule" rows on the Bugs page, which are divs: the padding
and radius are theirs (a table row ignores both). */
.tintRow {
padding: var(--space-2, 6px) var(--space-3, 10px);
border-radius: var(--radius-sm, 6px);
transition: background-color var(--tint-duration, 150ms)
var(--tint-ease, ease);
}
/* The hover overlay token Astryx ships (the rig used to read two names no
theme defines, so the tint never showed). */
.tintRow:hover {
background-color: var(--color-overlay-hover);
}
/* The state token, as Table would read it. */
.tintRowToken {
transition: background-color var(--lab-duration-state) var(--ease-state);
}
/* Reduce Motion: the tint is a change of state, so with a fine pointer it
lands at once (design:reduced-motion DR3), and an instant change is also
within DR2's "200 ms or less" on touch. */
@media (prefers-reduced-motion: reduce) {
.tintRowToken {
transition: none;
}
}
/* Deleting the transition, the option the preview makes visible. */
.tintRowNone {
transition: none;
}
/* NavItem's hover tint (NavTintRig). Before: as shipped, it snaps on where
the device hovers. After: it fades on the duration and curve the rig passes
in, and only where the device hovers with a fine pointer. */
.navTint,
.navTintFine {
padding: var(--space-2, 6px) var(--space-3, 10px);
border-radius: var(--radius-sm, 6px);
transition: background-color var(--tint-duration, 0ms) var(--tint-ease, ease);
}
/* Today, as shipped nav items paint it: on any device that hovers. */
@media (hover: hover) {
.navTint:hover {
background: var(--color-overlay-hover, var(--color-background-elevated));
}
}
@media (hover: hover) and (pointer: fine) {
.navTintFine:hover {
background: var(--color-overlay-hover, var(--color-background-elevated));
}
}
/* A `transitionProperty` with no duration: the rule reads like motion in
review and does nothing at all. */
.noopRow {
padding: var(--space-2, 6px) var(--space-3, 10px);
border-radius: var(--radius-sm, 6px);
transition-property: background-color;
}
/* The hover overlay token Astryx ships: the rule used to read two names no
theme defines, so the row never tinted and the pane showed nothing to
compare. */
.noopRow:hover {
background-color: var(--color-overlay-hover);
}
/* ------------------------------------------------------------- origin ----- */
.originSurface {
position: absolute;
padding: var(--space-2, 8px) var(--space-3, 11px);
border-radius: var(--radius-md, 8px);
background: var(--color-background-elevated, var(--color-background-surface));
border: 1px solid var(--color-border);
opacity: 0;
transition:
opacity var(--lab-duration-enter) var(--ease-entry),
transform var(--lab-duration-enter) var(--ease-entry);
}
.originZero {
transform: scale(0);
}
.originCentre {
transform: scale(0.94);
transform-origin: center;
}
.originAnchored {
transform: scale(0.94);
transform-origin: top left;
}
.originSurface[data-open='true'] {
opacity: 1;
transform: scale(1);
}
/* ----------------------------------------------------------- lightbox ----- */
.lightboxThumb {
width: 64px;
height: 48px;
border-radius: var(--radius-md, 6px);
border: 1px solid var(--color-border);
background: var(--color-brand);
cursor: pointer;
}
.lightboxSurface {
position: absolute;
z-index: 8;
border-radius: var(--radius-md, 8px);
background: var(--color-brand);
opacity: 0;
visibility: hidden;
}
.lightboxSurface[data-open='true'] {
opacity: 1;
visibility: visible;
}
.lightboxShared {
transition:
inset-inline-start var(--lab-duration-overlay) var(--ease-move),
inset-block-start var(--lab-duration-overlay) var(--ease-move),
width var(--lab-duration-overlay) var(--ease-move),
height var(--lab-duration-overlay) var(--ease-move),
opacity var(--lab-duration-exit) var(--ease-exit),
visibility 0s linear var(--lab-duration-overlay);
}
.lightboxShared[data-open='true'] {
transition:
inset-inline-start var(--lab-duration-overlay) var(--ease-entry),
inset-block-start var(--lab-duration-overlay) var(--ease-entry),
width var(--lab-duration-overlay) var(--ease-entry),
height var(--lab-duration-overlay) var(--ease-entry),
opacity var(--lab-duration-enter) var(--ease-entry),
visibility 0s;
}
.lightboxFade {
transition:
opacity var(--lab-duration-exit) var(--ease-exit),
visibility 0s linear var(--lab-duration-exit);
}
.lightboxFade[data-open='true'] {
transition:
opacity var(--lab-duration-enter) var(--ease-entry),
visibility 0s;
}
.lightboxNone {
transition: none;
}
/* --------------------------------------------------------------- check ---- */
.checkTick {
stroke: var(--color-text-inverse, #fff);
stroke-width: 2.4;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 18;
stroke-dashoffset: 18;
}
.checkDraw[data-checked='true'] .checkTick {
stroke-dashoffset: 0;
transition: stroke-dashoffset var(--lab-duration-enter) var(--ease-entry) 40ms;
}
.checkScale .checkTick {
stroke-dashoffset: 0;
transform: scale(0);
transform-origin: center;
}
.checkScale[data-checked='true'] .checkTick {
transform: scale(1);
transition: transform var(--lab-duration-enter) var(--ease-entry);
}
/* -------------------------------------------------------------- misc ------ */
.curveCanvas {
background: var(--color-background-base);
border: 1px solid var(--color-border);
border-radius: var(--radius-md, 8px);
touch-action: none;
}
.grabbable {
cursor: grab;
}
.fullBleedRow {
display: flex;
gap: var(--space-2, 8px);
align-items: center;
flex-wrap: wrap;
}
@media (prefers-reduced-motion: no-preference) {
.spinner {
will-change: transform;
}
}
@media (prefers-reduced-motion: no-preference) {
.progressFillTransform {
will-change: transform;
}
}