Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

style(timeline): the clip back in the brand's green, zooms in blue

EtienneLescot69268fddcde2
diff --git a/design/tokens/v4.css b/design/tokens/v4.css
index bed800943..c43c6f0ba 100644
--- a/design/tokens/v4.css
+++ b/design/tokens/v4.css
@@ -87,10 +87,12 @@
--speed: #f97316;
--speed-soft: rgba(249, 115, 22, 0.14);
--speed-wash: rgba(249, 115, 22, 0.14);
- /* the recording clip: blue sits between the mint accent and the violet playhead,
- so it colours the timeline without competing with either. Same value in both
- themes: the clip is a solid card with white text on it. */
- --clip: #2563eb;
+ /* the recording clip: the brand's green, on the main object of the timeline. A solid
+ candy card with dark ink on it (mint cannot carry white), in both themes. */
+ --clip: var(--accent);
+ /* zoom pills: blue, so the most common effect never reads as the clip under it.
+ Light enough to carry the pills' dark ink. */
+ --zoom: #3b82f6;
/* strength of the coloured glow under candy pills and clips: on a light surface
a glow reads as an outline, so it is much fainter there than on dark. */
--candy-glow: 12%;
diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.css
index d3b9c3a61..7fe1372d4 100644
--- a/src/components/ai-edition/v4/EditorShellV4.module.css
+++ b/src/components/ai-edition/v4/EditorShellV4.module.css
@@ -1631,7 +1631,7 @@
--_c: var(--danger);
}
.laneZoom {
- --_c: var(--accent);
+ --_c: var(--zoom);
}
.laneCameraFullscreen {
--_c: #a855f7;
@@ -1789,9 +1789,9 @@
/* px, like .lanePill's: the gutter is subtracted from the clip's width, so a
clip narrower than 6px would otherwise compute to nothing. */
min-width: 1px;
- /* Blue (--clip), not mint: the accent belongs to what the user ADDED (zoom pills).
- A solid "candy" card, same recipe as .lanePill. Text on it is white
- (.tlClipDuration), in both themes. */
+ /* The brand's green (--clip): the recording is the main object, and the zoom pills
+ are blue so they never read as it. A solid "candy" card, same recipe as .lanePill,
+ with the pills' dark ink on it (.tlClipDuration, the waveform), in both themes. */
border-radius: 12px;
border: 1px solid transparent;
background: linear-gradient(180deg, color-mix(in oklab, var(--clip) 78%, white), var(--clip)) border-box;
@@ -1806,7 +1806,7 @@
transform 150ms var(--ease);
}
/* A halo ring set off by a gap in the panel colour: a border alone does not show on a
- card that is already solid blue. */
+ card that is already solid colour. */
.tlClipSel {
box-shadow: 0 0 0 2px var(--bg),
0 0 0 4px var(--clip);
@@ -1877,19 +1877,14 @@
stroke-linejoin: round;
vector-effect: non-scaling-stroke;
}
-/* Inside an audio pill it is dark ink, like the label on the candy. */
-.lanePill .tlWaveArea {
- fill: rgb(11 18 32 / 0.16);
-}
-.lanePill .tlWaveLine {
- stroke: rgb(11 18 32 / 0.5);
-}
-/* On the solid clip card the waveform is white, like the text on it. */
+/* Inside an audio pill or on the clip card it is dark ink, like the label on the candy. */
+.lanePill .tlWaveArea,
.tlClip .tlWaveArea {
- fill: rgb(255 255 255 / 0.22);
+ fill: rgb(11 18 32 / 0.16);
}
+.lanePill .tlWaveLine,
.tlClip .tlWaveLine {
- stroke: rgb(255 255 255 / 0.75);
+ stroke: rgb(11 18 32 / 0.5);
}
.tlClipLabel {
position: absolute;
@@ -1928,8 +1923,7 @@
.tlClipDuration {
font: 500 12px/1.2 var(--font-body);
font-variant-numeric: tabular-nums;
- color: #fff;
- text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
+ color: #0b1220;
white-space: nowrap;
flex-shrink: 0;
}
diff --git a/src/styles/design-tokens.css b/src/styles/design-tokens.css
index 79c985479..102bffe02 100644
--- a/src/styles/design-tokens.css
+++ b/src/styles/design-tokens.css
@@ -85,10 +85,12 @@
--speed: #f97316;
--speed-soft: rgba(249, 115, 22, 0.14);
--speed-wash: rgba(249, 115, 22, 0.14);
- /* the recording clip: blue sits between the mint accent and the violet playhead,
- so it colours the timeline without competing with either. Same value in both
- themes: the clip is a solid card with white text on it. */
- --clip: #2563eb;
+ /* the recording clip: the brand's green, on the main object of the timeline. A solid
+ candy card with dark ink on it (mint cannot carry white), in both themes. */
+ --clip: var(--accent);
+ /* zoom pills: blue, so the most common effect never reads as the clip under it.
+ Light enough to carry the pills' dark ink. */
+ --zoom: #3b82f6;
/* strength of the coloured glow under candy pills and clips: on a light surface
a glow reads as an outline, so it is much fainter there than on dark. */
--candy-glow: 12%;