Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Remove decorative glows

Bitti7dae6d7264ae
diff --git a/src/components/PromptComposer.tsx b/src/components/PromptComposer.tsx
index 656bbc7..98262b1 100644
--- a/src/components/PromptComposer.tsx
+++ b/src/components/PromptComposer.tsx
@@ -118,8 +118,6 @@ export function PromptComposer({ busy, onCreate, onClose }: PromptComposerProps)
<h2 id="create-heading">What do you want to make?</h2></div>
<button className="icon-button icon-button--strong" onClick={onClose} disabled={busy} aria-label="Close new project"><X size={18} /></button>
</header>
- <div className="composer-shell__glow" />
-
<div className="composer">
<div className="composer__input-row">
<PolStudioLogo compact decorative className="composer__brand-mark" />
diff --git a/src/styles/base.css b/src/styles/base.css
index 1585fcc..451cfc1 100644
--- a/src/styles/base.css
+++ b/src/styles/base.css
@@ -131,6 +131,17 @@ a:focus-visible,
outline-offset: 2px;
}
+@media (prefers-reduced-motion: reduce) {
+ *,
+ *::before,
+ *::after {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ scroll-behavior: auto !important;
+ }
+}
+
/* --- Utilities ------------------------------------------------------------- */
.sr-only {
diff --git a/src/styles/export.css b/src/styles/export.css
index 625f81b..ea95349 100644
--- a/src/styles/export.css
+++ b/src/styles/export.css
@@ -10,9 +10,7 @@
min-height: 0;
overflow-y: auto;
padding: var(--space-6) var(--space-7) var(--space-7);
- background:
- radial-gradient(circle at 80% -20%, var(--glow-accent), transparent 38%),
- var(--bg);
+ background: var(--bg);
}
/* Title, notification, action. The middle column holds its place whether or
diff --git a/src/styles/library.css b/src/styles/library.css
index 73d4c6f..2a72cda 100644
--- a/src/styles/library.css
+++ b/src/styles/library.css
@@ -75,18 +75,6 @@
box-shadow: var(--shadow);
}
-.composer-shell__glow {
- position: absolute;
- width: 360px;
- height: 240px;
- right: -80px;
- top: -120px;
- border-radius: 50%;
- background: var(--glow-accent);
- filter: blur(50px);
- pointer-events: none;
-}
-
.composer-heading {
position: relative;
z-index: 1;
@@ -463,12 +451,11 @@
border-radius: var(--radius-lg);
background: var(--panel);
overflow: hidden;
- transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
+ transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.project-card:hover,
.project-card:focus-within {
- transform: translateY(-2px);
border-color: var(--accent-line);
box-shadow: var(--shadow-sm);
}
diff --git a/src/styles/shell.css b/src/styles/shell.css
index 6040ee2..c238a4d 100644
--- a/src/styles/shell.css
+++ b/src/styles/shell.css
@@ -6,9 +6,7 @@
display: grid;
grid-template-columns: minmax(0, 1fr);
min-height: 100vh;
- background:
- radial-gradient(circle at 72% -20%, var(--glow-accent), transparent 37%),
- var(--bg);
+ background: var(--bg);
}
/* --- Brand ----------------------------------------------------------------- */
diff --git a/src/styles/tokens.css b/src/styles/tokens.css
index 462fc46..4adf1a6 100644
--- a/src/styles/tokens.css
+++ b/src/styles/tokens.css
@@ -111,9 +111,12 @@
--topbar-height: 72px;
--content-max: 1180px;
- /* Step 1's primary button transition consumes this immediately. Step 2 adds
- the slower panel duration and the full motion policy. */
+ /* --- Motion -------------------------------------------------------------
+ Two durations. State changes are fast; things that actually open are not.
+ Motion in an editor belongs to the content — the playhead, a clip being
+ dragged, a render bar filling — not to the furniture. */
--motion-fast: 120ms;
+ --motion-panel: 200ms;
/* ==========================================================================
COLOUR — dark (the base palette; light redefines every name below)
@@ -174,7 +177,6 @@
--accent-line: rgba(107, 141, 255, 0.28);
--accent-line-strong: rgba(103, 138, 245, 0.55);
--accent-ring: rgba(63, 94, 198, 0.1); /* 3px halo on a focused composite */
- --glow-accent: rgba(49, 76, 153, 0.11); /* blurred page-corner light */
--eyebrow: #8fa0d8; /* uppercase accent-tinted section label */
/* --- On-accent -----------------------------------------------------------
@@ -331,7 +333,6 @@
--accent-line: rgba(45, 91, 215, 0.3);
--accent-line-strong: rgba(30, 79, 208, 0.6);
--accent-ring: rgba(45, 91, 215, 0.14);
- --glow-accent: rgba(45, 91, 215, 0.07);
--eyebrow: #47549a; /* 6.6:1 on --panel */
--button-primary-bg: #2d5bd7; /* white on it is 5.9:1 — the old --accent-fill value */
@@ -435,7 +436,6 @@
--accent-line: rgba(45, 91, 215, 0.3);
--accent-line-strong: rgba(30, 79, 208, 0.6);
--accent-ring: rgba(45, 91, 215, 0.14);
- --glow-accent: rgba(45, 91, 215, 0.07);
--eyebrow: #47549a;
--button-primary-bg: #2d5bd7;