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(theme): set the light shell apart with a greyer canvas and visible rules

EtienneLescot41872b69f6ff
diff --git a/src/components/ai-edition/NewEditorShell.tsx b/src/components/ai-edition/NewEditorShell.tsx
index d9273e77c..1ab5054e1 100644
--- a/src/components/ai-edition/NewEditorShell.tsx
+++ b/src/components/ai-edition/NewEditorShell.tsx
@@ -1674,7 +1674,7 @@ export function NewEditorShell() {
gridRow: 3,
minHeight: 0,
background: "var(--surface)",
- borderTop: "1px solid var(--border)",
+ borderTop: "1px solid var(--shell-rule)",
}}
>
{mode !== "media" ? (
diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.css
index dc37056a1..bed8df50d 100644
--- a/src/components/ai-edition/v4/EditorShellV4.module.css
+++ b/src/components/ai-edition/v4/EditorShellV4.module.css
@@ -54,7 +54,7 @@
18px + 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px)
);
background: transparent;
- border-bottom: 1px solid var(--border-soft);
+ border-bottom: 1px solid var(--shell-rule-soft);
min-width: 0;
-webkit-app-region: drag;
app-region: drag;
@@ -1324,7 +1324,7 @@
/* Room above AND below the 34px play button: at 40px it sat on the bottom rule. */
height: 48px;
flex-shrink: 0;
- border-bottom: 1px solid var(--border-soft);
+ border-bottom: 1px solid var(--shell-rule-soft);
}
.tlTools {
/* Both side groups take an equal share of the row, so the transport between
diff --git a/src/styles/design-tokens.css b/src/styles/design-tokens.css
index 102bffe02..4b9c51434 100644
--- a/src/styles/design-tokens.css
+++ b/src/styles/design-tokens.css
@@ -12,7 +12,7 @@
* depending on import order. */
:root:root {
/* canvas */
- --bg: #f8fafc;
+ --bg: #eaeef3;
--bg-grad: radial-gradient(ellipse 1200px 800px at 50% -200px, #ffffff 0%, #f1f5f9 80%);
--surface: #ffffff;
--surface-1: #f1f5f9;
@@ -26,6 +26,10 @@
--border-soft: #e6eaef;
--border-hi: #cbd5e1;
--border-dark: #0f172a;
+ /* the shell's rules (under the top bar, above and inside the timeline): on light the plain
+ borders vanish against white, so they are darker than --border / --border-soft. */
+ --shell-rule: #cbd5e1;
+ --shell-rule-soft: #d3dbe4;
/* foreground */
--fg: #0f172a;
@@ -190,6 +194,8 @@
--border-soft: #1c2029;
--border-hi: #3a4150;
--border-dark: #0a0d12;
+ --shell-rule: #252a35;
+ --shell-rule-soft: #1c2029;
--fg: #e6e9ef;
--fg-2: #f3f5f8;