From 7771af058693c1625a8c71b97c3acc8163b9614e Mon Sep 17 00:00:00 2001 From: Shreyash Anand Date: Sun, 4 Oct 2026 16:54:50 +0530 Subject: [PATCH 01/18] Ease structural motion and collapse it under reduced motion --- src/app/globals.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/app/globals.css b/src/app/globals.css index 5e137ac..ecf069e 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -22,6 +22,13 @@ --shadow-pixel: 4px 4px 0 0 var(--border); --shadow-pixel-lg: 6px 6px 0 0 var(--border); + /* Structural motion -- panes, dialogs, hovers, arriving messages -- eases. + Decorative motion (caret, typing blocks, burst) stays stepped below. These + two become the default for every transition-* utility. */ + --ease-pixel: cubic-bezier(0.2, 0.8, 0.2, 1); + --default-transition-duration: 180ms; + --default-transition-timing-function: var(--ease-pixel); + --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); @@ -298,3 +305,22 @@ .reduce-motion .pixel-caret { animation: none; } + +/* Transitions and enter/exit animations collapse to near-instant rather than + none: Radix waits on animationend before unmounting a closed dialog, and a + 0.01ms animation still fires it. */ +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + transition-duration: 0.01ms !important; + animation-duration: 0.01ms !important; + } +} + +.reduce-motion *, +.reduce-motion *::before, +.reduce-motion *::after { + transition-duration: 0.01ms !important; + animation-duration: 0.01ms !important; +} From 317d8960e0336cef5fdaa6f6c8016f937691c9a1 Mon Sep 17 00:00:00 2001 From: Shreyash Anand Date: Sun, 4 Oct 2026 16:55:07 +0530 Subject: [PATCH 02/18] Scale the root size and add fluid gutter and section utilities --- src/app/globals.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/app/globals.css b/src/app/globals.css index ecf069e..c0e7f0e 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -111,7 +111,22 @@ --dust: oklch(0.812 0.171 165 / 42%); } +/* Fluid gutters and section rhythm: scale with the viewport instead of + jumping at breakpoints. */ +@utility gutter { + padding-inline: clamp(1rem, 4vw, 2.5rem); +} + +@utility section-y { + padding-block: clamp(3rem, 8vw, 6rem); +} + @layer base { + /* 16px on phones easing to 17px by ~1050px. Expressed in rem, so a larger + browser default still scales everything. */ + html { + font-size: clamp(1rem, 0.9rem + 0.25vw, 1.0625rem); + } * { @apply border-border outline-ring/50; } From ce28c1392b026113ffea692ebe2002d739b8f94c Mon Sep 17 00:00:00 2001 From: Shreyash Anand Date: Sun, 4 Oct 2026 16:55:07 +0530 Subject: [PATCH 03/18] Give the site header and footer fluid gutters --- src/components/site-footer.tsx | 2 +- src/components/site-header.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/site-footer.tsx b/src/components/site-footer.tsx index 7e0b117..d8685c2 100644 --- a/src/components/site-footer.tsx +++ b/src/components/site-footer.tsx @@ -9,7 +9,7 @@ const LINKS = [ export function SiteFooter() { return (