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): fainter candy glow on the light theme

EtienneLescot2dbf569bcf33
diff --git a/design/tokens/v4.css b/design/tokens/v4.css
index 11159a01c..bed800943 100644
--- a/design/tokens/v4.css
+++ b/design/tokens/v4.css
@@ -91,6 +91,9 @@
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;
+ /* 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%;
--success: #10b981;
--success-soft: rgba(16, 185, 129, 0.10);
@@ -221,6 +224,7 @@
--speed: #fb923c;
--speed-soft: rgba(251, 146, 60, 0.16);
--speed-wash: rgba(251, 146, 60, 0.16);
+ --candy-glow: 35%;
--success: #10b981;
--success-soft: rgba(16, 185, 129, 0.14);
diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.css
index a2893e0ac..1072c6a1e 100644
--- a/src/components/ai-edition/v4/EditorShellV4.module.css
+++ b/src/components/ai-edition/v4/EditorShellV4.module.css
@@ -1577,7 +1577,7 @@
border: 1px solid var(--_c);
background: linear-gradient(180deg, color-mix(in oklab, var(--_c) 72%, white), var(--_c));
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4),
- 0 2px 6px color-mix(in oklab, var(--_c) 35%, transparent);
+ 0 2px 6px color-mix(in oklab, var(--_c) var(--candy-glow), transparent);
color: #0b1220;
font-size: 12px;
font-weight: 600;
@@ -1793,7 +1793,7 @@
border: 1px solid var(--clip);
background: linear-gradient(180deg, color-mix(in oklab, var(--clip) 78%, white), var(--clip));
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35),
- 0 3px 10px color-mix(in oklab, var(--clip) 35%, transparent);
+ 0 3px 10px color-mix(in oklab, var(--clip) var(--candy-glow), transparent);
overflow: hidden;
cursor: grab;
box-sizing: border-box;
@@ -1843,7 +1843,7 @@
border-color: var(--warn);
background: linear-gradient(180deg, color-mix(in oklab, var(--warn) 78%, white), var(--warn));
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35),
- 0 3px 10px color-mix(in oklab, var(--warn) 35%, transparent);
+ 0 3px 10px color-mix(in oklab, var(--warn) var(--candy-glow), transparent);
}
/* The clip being carried during a reorder drag — follows the pointer 1:1
(no transition lag) while its siblings slide out of the way with the
@@ -1991,7 +1991,8 @@
border-radius: 999px;
border: 1px solid var(--playhead);
background: linear-gradient(180deg, color-mix(in oklab, var(--playhead) 72%, white), var(--playhead));
- box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 2px 6px var(--playhead-shadow);
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35),
+ 0 2px 6px color-mix(in oklab, var(--playhead) var(--candy-glow), transparent);
box-sizing: border-box;
cursor: grab;
}
diff --git a/src/styles/design-tokens.css b/src/styles/design-tokens.css
index 83f9b0d0f..79c985479 100644
--- a/src/styles/design-tokens.css
+++ b/src/styles/design-tokens.css
@@ -89,6 +89,9 @@
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;
+ /* 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%;
--success: #10b981;
--success-soft: rgba(16, 185, 129, 0.10);
@@ -219,6 +222,7 @@
--speed: #fb923c;
--speed-soft: rgba(251, 146, 60, 0.16);
--speed-wash: rgba(251, 146, 60, 0.16);
+ --candy-glow: 35%;
--success: #10b981;
--success-soft: rgba(16, 185, 129, 0.14);