Files
hyperframes/packages/studio/src/styles/theme.css
T
Miguel Ángel a57e095468 feat(studio): panel tabs take the decided Current design (#4266)
Studio's panels become cards on a dark shell, and each panel's tabs take the "Current" design: the open tab is a fill in the card's colour that slides to the tab you pick, only the open tab shows its icon and close glyph, and a strip that is too narrow scrolls with a soft edge instead of hiding tabs behind a menu. This replaces the pill, underline and close treatment that was on this PR before.

## Before

![Before 2x: main, dark](https://github.com/user-attachments/assets/00ec6f33-082a-4209-917d-dea3c73c5b3d)

![Before 2x: main, paper theme](https://github.com/user-attachments/assets/09b01028-fa94-4946-bc47-a9abe7111a2f)

## After

![After 2x: dark](https://github.com/user-attachments/assets/041dfebf-c2cd-48bb-9ad4-5200d9f2ef9a)

![After 2x: paper theme](https://github.com/user-attachments/assets/d901bda4-ed7a-462f-8b83-0a7e3d4a7eff)

Switching tabs (the fill slides in about 140 ms and the new icon fades in over 80 ms; the panel body switches at once):

https://github.com/user-attachments/assets/8d359ada-c9e1-4425-9c95-61d5d4f5271b

### Every label whole, and the tabs use the whole strip (2x)

An earlier head clipped the left strip's fourth tab next to empty strip space. That space was a 72 px slot (plus 4 px) held on every strip for the strip actions, even on strips whose panel is not focused and so draws no actions. Dockview sizes that slot by its content; this PR had pinned it. Now the slot takes room only where the actions are drawn, so an unfocused strip gives its tabs the whole width. Tab padding is 6 px with no gap between tabs, so the tabs also fit next to the actions. Labels, icons and close glyphs sit on the tab's centre in every strip.

Left strip at 1440 x 900, tabs width against the room before the action slot:

| | macOS | Linux (these captures) |
|---|---|---|
| Earlier head | 322 in 280, clipped | 312 in 280, clipped |
| Now, panel unfocused | 278 in 358 | 268 in 358 |
| Now, panel focused (actions shown) | 278 in 282 | 268 in 282 |

![Left strip 2x at 1440, earlier head: Catalog clipped](https://github.com/user-attachments/assets/42d8eae9-67f5-49b6-b581-19c5185a4bdc)

![Left strip 2x at 1440, now: every label whole](https://github.com/user-attachments/assets/fc5d9137-1cfe-42eb-a6cd-f8bd90c19b4d)

![Left strip 2x at 1440, panel focused: actions shown, labels still whole](https://github.com/user-attachments/assets/66ce47c2-5bd9-47ca-870e-9c3acf6001fc)

At 1280 x 800 the left column is narrower, and the pinned slot clipped Catalog next to the empty space. Room for the tabs there went from 241 px to 317 px:

![Left strip 2x at 1280, earlier head: Catalog clipped next to the empty action slot](https://github.com/user-attachments/assets/b0603454-7c2f-4a4c-98b4-9028bc9c0d31)

![Left strip 2x at 1280, now: the tabs use the whole strip](https://github.com/user-attachments/assets/f3dfb3ce-ccb8-4221-8339-e481ff31df7f)

Captured at the PR head (5fd6c7bd) from a fixture project (the `warm-grain` registry example) in headless Chrome on Linux, 2x, each state loaded fresh so Studio builds its default layout for that window. Before is `main`; the strip Befores use the earlier heads' `dock.css` (8079c635 at 1440, 8ed7ab69 at 1280) on the same build. The macOS column was measured live in Chrome on macOS. The paper theme only re-themes the timeline today, so the panels look the same in both themes.

## What changed

- **Cards on the shell.** Each dock group is a card with the only 1 px border (radius 10) and a 6 px gutter to its neighbours. The preview and timeline no longer draw a second rounded border inside it; the preview stage is an inset well. Dockview's tab dividers and separators are gone.
- **Tabs.** Tabs use the whole strip unless the panel shows its actions. Every label is whole at the default 1440 x 900 layout (6 px side padding, no gap between tabs), and labels and icons are centred in the tab. The open tab is a fill with rounded top corners, flush with the card body. Only the open tab shows its type icon and close glyph (the glyph appears on hover or keyboard focus, and its space is kept so the label never moves). Other tabs are labels.
- **One sliding fill per strip.** One element slides (transform and width, 140 ms ease-out) under the open tab. Reduced motion turns the slide and the icon fade off. Hover is instant.
- **Strip actions** (panel menu, maximise or restore, close group) sit on the active group only, at half opacity while the pointer is in the panel and full on hover or focus. They take room only on the strip that draws them, so the other strips give their tabs the whole width. The panel menu lists that side's panels as checkboxes, plus Reset layout.
- **Narrow strips** scroll sideways with a 12 px fade on the clipped edge. Dockview's overflow dropdown is off.
- Tokens: `--panel-shell-bg`, `--panel-card-bg`, `--panel-card-border`, `--panel-strip-bg`, `--panel-tab-bg-hover`, with contrast pairs registered.

## Timeline viewport gate

The first head of this rebuild (b20ff32a4) cost the timeline gate one frame on CI: interaction p95 33 ms on every run (first attempt 100 ms on three runs), against main's 20 ms. Main-thread traces were identical; the extra cost was compositing, from a fade mask on every tab strip. Masking only a strip that is actually clipped brought it back:

| Head | Interaction p95 per run (ms) | Frame p95 (ms) | Runs passing |
|---|---|---|---|
| main | 20, 20, 19, 20, 18 | 34 | 5/5 |
| b20ff32a4 (rerun) | 33, 33, 33, 33, 33 | 33 | 5/5 |
| 41302773 | 18, 20, 19, 20, 17 | 33 | 5/5 |
| eefaa839 | 18, 20, 18, 18, 20 | 17 | 5/5 |
| af4f2b9b (tab spacing), first attempt | 18, 79, 18, 116, 19 | 100 | 3/5 |
| af4f2b9b, rerun | 18, 16, 20, 18, 18 | 33 | 5/5 |
| 8ed7ab69 | 17, 16, 19, 24, 20 | 33 | 5/5 |
| 6a5edd89 | 33, 33, 33, 33, 33 | 17 | 5/5 |

From about 14:30Z `main` itself reads 33 ms on every run (three consecutive `main` CI runs), and CI tests this PR merged with the current `main`, so the 6a5edd89 row matches `main`'s level at that time.

The af4f2b9b first attempt had three runs at main's level and two single-run spikes; the same commit's rerun passed 5/5, and the change is tab spacing only.

## Tests

Each rule that could regress without anyone noticing has a test, and each test was proved by breaking the code once:

| Rule | Test | Break | Result |
|---|---|---|---|
| Icon and close glyph on the open tab only | `DockTabs.test.tsx` (dock.css applied, computed display) | delete the hide rule | 2 red |
| Actions on the active group only | `DockTabs.test.tsx` | drop the active-group check | 1 red |
| One fill per strip, following the open tab | `DockTabs.test.tsx` | fill stays at 0 / a second fill | 1 red each |
| One border per surface | `dockTabs.contract.test.ts` | add a strip border | 1 red |
| Only the slide and icon fade animate | `dockTabs.contract.test.ts` | add a hover transition | 1 red |
| Reduced motion turns them off | `dockTabs.contract.test.ts` | remove the reduced-motion rule | 1 red |
| Label and icon centred in the tab | `dockTabs.contract.test.ts` | drop the full-height rule | 1 red |
| Every tab label whole at 1440 x 900 on each strip while its panel is focused (the least room it gets), with 10 px for macOS's wider system font (CI renders a Linux fallback) | `scripts/studio-runtime-smoke.mjs` (CI "Studio: load smoke", real Chrome) | the "Ca" head's spacing; a spacing that fits on Linux but clips on macOS | red on both ("312px of tabs in 280px", "276px of tabs in 280px"); green on main and this head |
| Unfocused strips hold no room for actions they do not draw | `scripts/studio-runtime-smoke.mjs` | pin the action slot at 72 px again | red: "3 inactive dock strips hold width for actions they do not draw" |
| The shown tab stays whole when its strip narrows (its panel gains focus and the actions appear), comes back narrower than it was before it was hidden, or when a neighbouring tab closes and it moves | `DockTabs.test.tsx` | ignore each of those changes in turn | 1 red each; checked live at 1280 x 800: clicking into the left panel's body used to leave Catalog 37 px hidden, now it is whole |
| A strip the user scrolled by hand stays put when something else in the dock changes, when it widens, and through another panel's maximise and restore | `DockTabs.test.tsx` | reveal on every pass; on any width change; after a hidden spell | red each; checked live: a hand scroll of 20 px is still 20 px after a maximise and restore |

Run alone, each exits 0: `DockTabs.test.tsx` 5, `dockTabs.contract.test.ts` 5, `Dock.test.tsx` 14, `dockAccessibility.test.ts` 10, `PreviewPane.test.tsx` 1, `Menu.test.tsx` 10, `scripts/contrastRatchet.test.ts` passing.

## Independent review

An adversarial review (separate agent, mandate to refute) at 41302773, eefaa839, 8079c635, af4f2b9b and 8ed7ab69: **no blockers; one major, fixed.**

- MAJOR (af4f2b9b), fixed in 8ed7ab69: CI renders Studio's system font stack with a narrower Linux fallback, so the clip check could pass while a Mac clips. The check now keeps 10 px of room for the macOS font, and a spacing that fits on Linux but clips on macOS turns it red. The 8ed7ab69 review asked whether 10 px holds for every strip, not just the left one it was measured on. Measured macOS minus Linux tab width at 1440 x 900: left 10 px, right 6 px, Preview and Timeline 2 px each, so the left strip is the widest gap and 10 px covers all four.
- MINOR, left as is: the room check has no unit test of its own; it runs only in a real browser, and the smoke is its test (red on both broken spacings above).

- MINOR: a panel cannot be closed from the focused tab itself by keyboard. The keyboard path is focused tab, Tab to "Panel menu", Enter, uncheck the panel (checked live: closes that one panel; checking it again reopens it). The tab's close glyph is not focusable, the same as dockview's stock tab on main, because a tab cannot hold a focusable button.
- MINOR: the open tab is 16 px wider than on the design page (the close glyph's space is kept; see For Miguel).
- Resolved: a contrast pair cited stale line numbers.

## UX checklist

**Job:** someone editing a video moves between panels (Compositions, Assets, Code, Catalog; Design, Layers, Renders, Variables) many times an hour and needs to see which one is open and reach the next without hunting.
**One action:** click the tab of the panel you want.

| # | Question | Y/N | Evidence |
|---|---|---|---|
| 1 | First-time user knows what to do | Y | Tabs keep their labels; the open tab is joined to the body it controls (After captures) |
| 2 | Interactive things look interactive | N | Strip actions are hidden until the pointer is in the panel (Miguel's decision; see Traded off) |
| 3 | User's words, no internal ids | Y | Titles unchanged; controls named "Close Design", "Panel menu", "Maximize panel", "Close group" |
| 4 | Works like other tools | Y | Editor-style tabs with maximise and a panel menu |
| 5 | Guidance at the control | N | The three icon buttons have accessible names but no visible tooltip |
| 6 | Primary action reachable without reading | Y | The tabs are the strip |
| 7 | Exactly one primary action | Y | Tabs; actions are secondary and quiet |
| 8 | Counts match data | Y | Titles come from each panel through `Dock.Panel` (`Dock.tsx` setTitle) |
| 9 | Excluded items announce themselves | Y | Every label is whole at the default width (the load smoke checks it); a narrowed strip scrolls with an edge fade, and the panel menu lists every panel |
| 10 | Long names recoverable | Y | Tabs never truncate; the strip scrolls |
| 11 | Keyboard path | Y | Arrow keys move and activate tabs (existing); strip actions are buttons and show on focus |
| 12 | Nothing hover-only that must be acted on | N | Same as 2 |
| 13 | Refusals say what next | n/a | No refusals here |
| 14 | Refusal next to the thing | n/a | |
| 15 | Error prevented | n/a | |
| 16 | Can leave any state without losing work | Y | Closed panels reopen from Window or the panel menu; Reset layout restores the default |
| 17 | Destructive looks different | N | "Close group" uses the same x as a tab's close; it loses no work, and the Window menu reopens the panels |
| 18 | Empty state names what is empty | n/a | |
| 19 | Feedback within 400 ms | Y | The tab state and icon change in the same frame as the click; the fill arrives in 140 ms |
| 20 | Progress on waits | n/a | |
| 21 | Hand-built state survives reload | Y | Layout, open tab and maximised group persist per project (existing dock persistence) |

**Choice:** four tabs per side, one click each. **The end:** the panel body appears at once and the fill settles under the tab you picked.
**Not exercised:** a screen reader pass; touch input.
**Traded off:** hover-only strip actions (rows 2 and 12) and scroll-plus-fade instead of an overflow menu when a strip is narrowed are Miguel's decided design.

## For Miguel

- **Paper (light) theme:** Studio's paper block only re-themes the timeline today, so the panels are dark in both the Before and After paper shots. Panel paper values are Desktop's to set (design principles, section 7); this PR adds the token names Desktop can override.
- **Action slot:** the design review asked for the action slot to be reserved on every strip, so tabs never move when focus changes panel. That reservation is what clipped "Ca" next to empty space, so it now holds room only on the focused panel. The cost: when a strip that is already too narrow gains focus, its actions take 76 px. The strip then scrolls so the shown tab stays whole, and a neighbouring tab can go under the edge fade. At the default 1440 x 900 nothing clips either way.
- **Tab spacing:** side padding is 6 px (10 on the design page) and tabs have no gap. The design's 10 px would need 322 px on macOS; the left strip has 282 px beside its actions at 1440. A wider default left column would allow the design padding again. A narrower window scrolls the strip with the edge fade; per the decision there is no overflow chevron.
- **Close glyph space:** the open tab keeps its close glyph's space at rest, so it is 16 px wider than on the design page, where the label shifts on hover.
- **Not in this PR:** inspector section headers and the focused-card border step (later build steps).
2026-09-23 14:34:10 -04:00

400 lines
17 KiB
CSS

/* Studio's design tokens, the one place a design value is decided. Tailwind emits
* each as a utility and a CSS custom property; `@theme static` keeps unused
* tokens in `:root` so plain CSS and canvas code can still read them. */
@theme static {
/* ---------------------------------------------------------------- colour */
/* Background levels, darkest (app shell) to lightest (inset panel body). */
--color-bg-0: #0a0a0a;
--color-bg-1: #0c0c0e;
--color-bg-2: #121214;
/* Raised surfaces. */
--color-surface: #18181b;
--color-surface-alt: #141414;
--color-input: #161618;
--color-hover: #27272a;
/* Separators, weakest to strongest. */
--color-hairline: #1a1a1c;
--color-border: #1e1e1e;
--color-border-input: #27272a;
--color-border-strong: #262626;
/* Text, brightest (0) to dimmest (5). */
--color-text-0: #fafafa;
--color-text-1: #e4e4e7;
--color-text-2: #a1a1aa;
--color-text-3: #71717a;
--color-text-4: #52525b;
--color-text-5: #3f3f46;
--color-text-body: #e5e5e5;
--color-text-muted: #737373;
/* Roles. Selection and playhead are reserved and differ from the accent so a
* selected clip, the playhead and an accented control stay tellable apart. */
--color-accent: #3ce6ac;
--color-selection: #4ba3d2;
--color-playhead: #ffffff;
--color-danger: #ef4444;
--color-media: #00e3ff;
--color-container: #f5a623;
/* The two stops of the HeyGen brand gradient, worn by the header logo. Fixed brand values
* rather than roles, so they are not reachable as a background or text colour by mistake. */
--color-brand-gradient-from: #06e3fa;
--color-brand-gradient-to: #4fdb5e;
/* The timeline's own surfaces: darker and bluer than the shared scale, so they
* get their own names instead of snapping to the nearest --color-bg/-surface
* step (a host themes the timeline by overriding these). */
--timeline-shell-bg: #0a0a0b;
--timeline-shell-border: rgba(255, 255, 255, 0.05);
--timeline-ruler-border: rgba(255, 255, 255, 0.16);
--timeline-row-bg: #101014;
--timeline-row-border: rgba(255, 255, 255, 0.06);
--timeline-gutter-bg: #0e0f12;
--timeline-gutter-border: rgba(255, 255, 255, 0.1);
--timeline-text-primary: rgba(255, 255, 255, 0.92);
--timeline-text-secondary: rgba(255, 255, 255, 0.62);
--timeline-tick-text: rgba(255, 255, 255, 0.34);
--timeline-tick-major: rgba(255, 255, 255, 0.1);
--timeline-tick-minor: rgba(255, 255, 255, 0.06);
--timeline-clip-bg: rgba(255, 255, 255, 0.12);
--timeline-clip-label-active: rgba(232, 255, 247, 0.95);
--timeline-clip-label-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
--timeline-clip-audio-bg: rgba(167, 139, 250, 0.16);
--timeline-clip-audio-border: rgba(167, 139, 250, 0.4);
--timeline-clip-audio-bg-hover: rgba(167, 139, 250, 0.24);
--timeline-clip-audio-bg-dragging: rgba(60, 52, 84, 0.96);
--timeline-clip-audio-muted-bg: rgb(72, 74, 78);
--timeline-audio-link: #a0aaa4;
--timeline-clip-selection: rgba(255, 255, 255, 0.85);
--timeline-clip-selection-highlight: rgb(255 255 255 / 0.55);
--timeline-clip-radius: 8px;
--timeline-clip-audio-radius: 21px;
--timeline-clip-highlight: rgb(255 255 255 / 0.08);
--timeline-clip-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
--timeline-clip-chip-bg: rgba(15, 22, 18, 0.73);
--timeline-clip-chip-audio-bg: rgba(25, 16, 38, 0.7);
--timeline-clip-chip-text: #ffffff;
--timeline-shortcut-bg: rgba(17, 23, 35, 0.84);
/* Composition and text clips draw their frame as it is, like video filmstrips; a host may dim them. */
--timeline-composition-thumbnail-opacity: 1;
--timeline-composition-thumbnail-blend: normal;
--timeline-thumbnail-shimmer: linear-gradient(
90deg,
rgba(255, 255, 255, 0.02) 0%,
rgba(255, 255, 255, 0.05) 50%,
rgba(255, 255, 255, 0.02) 100%
);
--timeline-thumbnail-label-gradient: linear-gradient(
to top,
rgba(0, 0, 0, 0.85) 0%,
rgba(0, 0, 0, 0.4) 60%,
transparent 100%
);
--timeline-thumbnail-label-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
--timeline-waveform-bar-rgb: 245, 237, 255;
--timeline-waveform-muted-rgb: 236, 238, 242;
--timeline-waveform-baseline-rgb: 226, 216, 238;
--timeline-waveform-error: repeating-linear-gradient(
90deg,
rgba(245, 237, 255, 0.35) 0 2px,
transparent 2px 5px
);
--timeline-waveform-label-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
--timeline-clip-bg-active: rgba(60, 230, 172, 0.2);
--timeline-clip-bg-hover: rgba(255, 255, 255, 0.16);
--timeline-clip-bg-dragging: rgba(38, 42, 52, 0.96);
--timeline-clip-border: rgba(255, 255, 255, 0.22);
--timeline-clip-border-hover: rgba(60, 230, 172, 0.75);
--timeline-clip-border-active: rgba(60, 230, 172, 0.55);
--timeline-handle: rgba(255, 255, 255, 0.55);
/* Audio clip fades: the shaded wedge over the faded gain, and the corner dots. */
--timeline-fade-shade: rgba(0, 0, 0, 0.38);
--timeline-fade-dot-active: rgba(255, 255, 255, 1);
--timeline-fade-dot-ring: rgba(0, 0, 0, 0.55);
--timeline-resize-seam: rgba(255, 255, 255, 0.12);
--timeline-resize-active: rgba(255, 255, 255, 0.24);
--timeline-track-clip-fill: rgba(255, 255, 255, 0.055);
--timeline-track-clip-active: rgba(60, 230, 172, 0.16);
--timeline-track-label: rgba(255, 255, 255, 0.5);
--timeline-border-strong: rgba(255, 255, 255, 0.2);
--timeline-group-member-tint: rgba(255, 255, 255, 0.035);
--timeline-overlay-text: rgba(255, 255, 255, 0.8);
--timeline-accent: #3ce6ac;
--timeline-accent-soft: rgba(60, 230, 172, 0.18);
--timeline-accent-faint: rgba(60, 230, 172, 0.055);
--timeline-accent-fill: rgba(60, 230, 172, 0.1);
--timeline-accent-glow: rgba(60, 230, 172, 0.5);
--timeline-accent-border: rgba(60, 230, 172, 0.7);
--timeline-accent-rail: rgba(60, 230, 172, 0.35);
--timeline-accent-hover: rgba(60, 230, 172, 0.25);
--timeline-accent-button-bg: rgba(60, 230, 172, 0.15);
--timeline-danger: rgba(239, 68, 68, 0.7);
--timeline-info-bg: rgba(59, 130, 246, 0.12);
--timeline-info-border: rgba(59, 130, 246, 0.4);
--timeline-dialog-bg: #1b1b1f;
--timeline-diamond-bg: #171717;
--timeline-diamond-border: rgba(255, 255, 255, 0.14);
--timeline-text-solid: #ffffff;
--timeline-text-faint: rgba(255, 255, 255, 0.35);
--timeline-text-dim: rgba(255, 255, 255, 0.4);
--timeline-text-soft: rgba(255, 255, 255, 0.75);
--timeline-text-bright: rgba(255, 255, 255, 0.7);
--timeline-snap-guide: rgba(255, 255, 255, 0.6);
--timeline-overlay-bg: rgba(0, 0, 0, 0.8);
--timeline-overlay-bg-strong: rgba(0, 0, 0, 0.85);
--timeline-input-bg: rgba(0, 0, 0, 0.3);
--timeline-automation-rail: rgba(255, 255, 255, 0.08);
--timeline-automation-point-muted: rgba(0, 0, 0, 0.5);
--timeline-diamond-muted: #a3a3a3;
--timeline-beat: rgb(34, 197, 94);
--timeline-clip-shadow-dragging: rgba(0, 0, 0, 0.4);
--timeline-playhead-glow: rgba(60, 230, 172, 0.14);
--timeline-playhead-shadow: rgba(0, 0, 0, 0.55);
--timeline-transition-zone: rgba(255, 255, 255, 0.2);
--timeline-transition-badge: rgba(237, 244, 239, 0.98);
--timeline-transition-badge-ink: rgba(36, 56, 45, 0.96);
/* -------------------------------------------------------------- geometry */
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
/* The one radius every push-button wears, named by its role so a button does
* not have to know which step of the scale it sits on. */
--radius-button: var(--radius-md);
/* Control heights: 24, 28 and 32 px. `--spacing-*` gives `h-ctl`, `min-h-ctl`
* and friends. */
--spacing-ctl-sm: 24px;
--spacing-ctl: 28px;
--spacing-ctl-lg: 32px;
/* ------------------------------------------------------------------ type */
/* Dense UI type sizes named by pixel value. `step` avoids a clash with
* Tailwind's own `--text-*` scale, whose `xs`, `sm` and `lg` are unchanged. */
--text-step-7: 7px;
--text-step-8: 8px;
--text-step-9: 9px;
--text-step-10: 10px;
--text-step-11: 11px;
--text-step-12: 12px;
--text-step-13: 13px;
--text-step-14: 14px;
--text-step-15: 15px;
--text-step-16: 16px;
--text-step-17: 17px;
--text-step-18: 18px;
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", "Fira Code", monospace;
/* ---------------------------------------------------------------- shadow */
/* Floating chrome over a near-black canvas: the hairline ring does the edge
* definition that a light-mode drop shadow cannot. */
--shadow-menu: 0 8px 24px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(0 0 0 / 0.4);
--shadow-popover: 0 16px 40px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.45);
/* The primary button is the one light surface in a dark UI, so it reads as a
* raised key rather than a floating panel: a tight contact shadow, a soft
* ambient one, and an inner top highlight. */
--shadow-btn-primary:
0 1px 2px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.65);
/* ---------------------------------------------------------------- motion */
--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
--ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out-circ: cubic-bezier(0.77, 0, 0.175, 1);
/* The curve for a small state change (hover, press, focus), named by role so
* a control does not have to pick one. The other two stay for motion that is
* meant to be noticed. */
--ease-standard: var(--ease-out-quint);
/* Durations have no Tailwind namespace, so these are plain variables paired
* with the `@utility` rules at the bottom of this file. All are at or under
* 200 ms. */
--duration-focus: 100ms;
--duration-press: 120ms;
--duration-hover: 150ms;
--duration-expand: 160ms;
/* Menus, popovers, and dropdowns. Open is ease-out; close is shorter and ease-in. */
--duration-open: 120ms;
--duration-close: 90ms;
/* Tooltips use the same enter shape on a shorter open. */
--duration-tooltip: 100ms;
/* Visible on the first frame. Never enter from scale 0 or opacity 0. */
--popup-enter-opacity: 0.8;
--popup-enter-scale: 0.97;
/* ------------------------------------------------------------------ icon */
/* Read by `readIconTokens` and handed to Phosphor's `IconContext`. */
--icon-size: 16px;
--icon-weight: regular;
/* ------------------------------------------------- deprecated: old names */
/* The `studio.*` and `panel.*` scales, aliases of the tokens above so existing
* markup keeps working during the sweep. U12 removes them from Studio's
* source; the published JS preset keeps them one more major. */
--color-studio-bg: var(--color-bg-0);
--color-studio-surface: var(--color-surface-alt);
--color-studio-border: var(--color-border-strong);
--color-studio-text: var(--color-text-body);
--color-studio-muted: var(--color-text-muted);
--color-studio-accent: var(--color-accent);
--color-panel-bg: var(--color-bg-1);
--color-panel-bg-inset: var(--color-bg-2);
--color-panel-input: var(--color-input);
--color-panel-surface: var(--color-surface);
--color-panel-hover: var(--color-hover);
--color-panel-border: var(--color-border);
--color-panel-border-input: var(--color-border-input);
--color-panel-hairline: var(--color-hairline);
--color-panel-text-0: var(--color-text-0);
--color-panel-text-1: var(--color-text-1);
--color-panel-text-2: var(--color-text-2);
--color-panel-text-3: var(--color-text-3);
--color-panel-text-4: var(--color-text-4);
--color-panel-text-5: var(--color-text-5);
--color-panel-bg-soft: var(--color-bg-2);
--color-panel-bg-2: var(--color-bg-2);
--color-panel-accent: var(--color-accent);
--color-panel-danger: var(--color-danger);
--color-panel-media: var(--color-media);
--color-panel-container: var(--color-container);
/* Dock panels are cards on the shell. The card owns the only border; its tab
* strip sits below the card body and the shown tab is a fill in the body colour. */
--panel-shell-bg: var(--color-bg-1);
--panel-card-bg: var(--color-surface);
--panel-card-border: #303034;
--panel-strip-bg: var(--color-bg-0);
--panel-tab-bg-hover: #202023;
/* Names Studio's markup invented that no config ever defined, so the classes
* compiled to nothing. Aliased to the token that was meant, rather than
* given values of their own, so there is still one source per decision.
* U12 rewrites the call sites and deletes these. */
--color-surface-hover: var(--color-hover);
--color-accent-red: var(--color-danger);
--text-2xs: var(--text-step-10);
/* ------------------------------------------- deprecated: Tailwind palette */
/* Verbatim Tailwind 4.3.3 defaults for stock colours markup still names, so
* `--color-*: initial` does not blank them. U12 deletes this block;
* `theme.test.ts` fails if a value drifts from upstream. */
--color-amber-50: oklch(98.7% 0.022 95.277);
--color-amber-100: oklch(96.2% 0.059 95.617);
--color-amber-200: oklch(92.4% 0.12 95.746);
--color-amber-300: oklch(87.9% 0.169 91.605);
--color-amber-400: oklch(82.8% 0.189 84.429);
--color-amber-500: oklch(76.9% 0.188 70.08);
--color-amber-900: oklch(41.4% 0.112 45.904);
--color-amber-950: oklch(27.9% 0.077 45.635);
--color-black: #000;
--color-blue-400: oklch(70.7% 0.165 254.624);
--color-blue-500: oklch(62.3% 0.214 259.815);
--color-cyan-400: oklch(78.9% 0.154 211.53);
--color-cyan-500: oklch(71.5% 0.143 215.221);
--color-emerald-300: oklch(84.5% 0.143 164.978);
--color-emerald-400: oklch(76.5% 0.177 163.223);
--color-emerald-500: oklch(69.6% 0.17 162.48);
--color-emerald-600: oklch(59.6% 0.145 163.225);
--color-emerald-700: oklch(50.8% 0.118 165.612);
--color-green-400: oklch(79.2% 0.209 151.711);
--color-green-500: oklch(72.3% 0.219 149.579);
--color-green-600: oklch(62.7% 0.194 149.214);
--color-neutral-50: oklch(98.5% 0 none);
--color-neutral-100: oklch(97% 0 none);
--color-neutral-200: oklch(92.2% 0 none);
--color-neutral-300: oklch(87% 0 none);
--color-neutral-400: oklch(70.8% 0 none);
--color-neutral-500: oklch(55.6% 0 none);
--color-neutral-600: oklch(43.9% 0 none);
--color-neutral-700: oklch(37.1% 0 none);
--color-neutral-800: oklch(26.9% 0 none);
--color-neutral-900: oklch(20.5% 0 none);
--color-neutral-950: oklch(14.5% 0 none);
--color-orange-300: oklch(83.7% 0.128 66.29);
--color-orange-400: oklch(75% 0.183 55.934);
--color-pink-400: oklch(71.8% 0.202 349.761);
--color-pink-500: oklch(65.6% 0.241 354.308);
--color-purple-200: oklch(90.2% 0.063 306.703);
--color-purple-300: oklch(82.7% 0.119 306.383);
--color-purple-400: oklch(71.4% 0.203 305.504);
--color-purple-500: oklch(62.7% 0.265 303.9);
--color-purple-900: oklch(38.1% 0.176 304.987);
--color-red-100: oklch(93.6% 0.032 17.717);
--color-red-200: oklch(88.5% 0.062 18.334);
--color-red-300: oklch(80.8% 0.114 19.571);
--color-red-400: oklch(70.4% 0.191 22.216);
--color-red-500: oklch(63.7% 0.237 25.331);
--color-red-600: oklch(57.7% 0.245 27.325);
--color-red-700: oklch(50.5% 0.213 27.518);
--color-red-800: oklch(44.4% 0.177 26.899);
--color-red-900: oklch(39.6% 0.141 25.723);
--color-red-950: oklch(25.8% 0.092 26.042);
--color-rose-400: oklch(71.2% 0.194 13.428);
--color-rose-500: oklch(64.5% 0.246 16.439);
--color-sky-200: oklch(90.1% 0.058 230.902);
--color-sky-300: oklch(82.8% 0.111 230.318);
--color-sky-400: oklch(74.6% 0.16 232.661);
--color-sky-500: oklch(68.5% 0.169 237.323);
--color-sky-700: oklch(50% 0.134 242.749);
--color-sky-900: oklch(39.1% 0.09 240.876);
--color-sky-950: oklch(29.3% 0.066 243.157);
--color-violet-400: oklch(70.2% 0.183 293.541);
--color-violet-500: oklch(60.6% 0.25 292.717);
--color-white: #fff;
}
/* One paper block. A host sets data-theme="paper" on the document element. */
:root[data-theme="paper"] {
--timeline-shell-bg: #f4f6f3;
--timeline-row-bg: #edf0ed;
--timeline-clip-bg: #c9d1cb;
--timeline-clip-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
--timeline-clip-highlight: rgb(255 255 255 / 0.08);
--timeline-clip-selection: #0f766e;
--timeline-clip-selection-highlight: rgb(255 255 255 / 0.55);
--timeline-clip-chip-bg: rgba(15, 22, 18, 0.73);
--timeline-clip-chip-audio-bg: rgba(25, 16, 38, 0.7);
--timeline-clip-chip-text: #ffffff;
--timeline-clip-audio-bg: rgb(150, 128, 180);
--timeline-clip-audio-bg-hover: rgb(135, 109, 170);
--timeline-clip-audio-bg-dragging: rgb(232, 224, 242);
--timeline-clip-audio-border: rgba(113, 80, 155, 0.45);
--timeline-clip-audio-muted-bg: rgb(156, 161, 157);
--timeline-audio-link: #626d66;
--timeline-waveform-bar-rgb: 20, 12, 32;
--timeline-waveform-muted-rgb: 24, 28, 26;
--timeline-waveform-baseline-rgb: 76, 62, 88;
--timeline-waveform-error: repeating-linear-gradient(
90deg,
rgba(20, 12, 32, 0.35) 0 2px,
transparent 2px 5px
);
}
/* Motion durations as utilities, since Tailwind has no `--duration-*`
* namespace. Each one zeroes itself under `prefers-reduced-motion`, so a
* caller cannot forget the reduced-motion case. */
@utility duration-* {
transition-duration: --value(--duration-*);
@media (prefers-reduced-motion: reduce) {
transition-duration: 0ms;
}
}