diff --git a/apps/web/src/app.css b/apps/web/src/app.css index 6c827d7c..119c7d17 100644 --- a/apps/web/src/app.css +++ b/apps/web/src/app.css @@ -55,9 +55,19 @@ --text-3xs: 0.625rem; --text-3xs--line-height: 0.9rem; + /* Radius scale — derived from --radius so that both the `rounded-*` + utilities and direct `var(--radius-*)` references (used in button and + select variants) resolve to the same values. Defined in a plain `@theme` + block (not `@theme inline`) so the tokens are emitted as :root custom + properties and can be referenced with var(). */ --radius-default: 0.5rem; - --radius-lg: 0.75rem; - --radius-sm: 0.25rem; + --radius-sm: calc(var(--radius) * 0.6); + --radius-md: calc(var(--radius) * 0.8); + --radius-lg: var(--radius); + --radius-xl: calc(var(--radius) * 1.4); + --radius-2xl: calc(var(--radius) * 1.8); + --radius-3xl: calc(var(--radius) * 2.2); + --radius-4xl: calc(var(--radius) * 2.6); } @theme inline { @@ -94,13 +104,6 @@ --color-card: var(--card); --color-foreground: var(--foreground); --color-background: var(--background); - --radius-sm: calc(var(--radius) * 0.6); - --radius-md: calc(var(--radius) * 0.8); - --radius-lg: var(--radius); - --radius-xl: calc(var(--radius) * 1.4); - --radius-2xl: calc(var(--radius) * 1.8); - --radius-3xl: calc(var(--radius) * 2.2); - --radius-4xl: calc(var(--radius) * 2.6); } /* ─── Light Mode: Warm Cream ─── */ diff --git a/apps/web/src/components/article/comparison.tsx b/apps/web/src/components/article/comparison.tsx index 3f8551f2..777863bd 100644 --- a/apps/web/src/components/article/comparison.tsx +++ b/apps/web/src/components/article/comparison.tsx @@ -14,8 +14,8 @@ export function Comparison({ }) { return (
-
-
+
+

{helpsTitle} @@ -29,15 +29,15 @@ export function Comparison({ > {item} ))}

-
-
+
+

{hurtsTitle} @@ -51,7 +51,7 @@ export function Comparison({ > {item} diff --git a/apps/web/src/components/article/encouragement.tsx b/apps/web/src/components/article/encouragement.tsx index a7dc5d2b..d711f526 100644 --- a/apps/web/src/components/article/encouragement.tsx +++ b/apps/web/src/components/article/encouragement.tsx @@ -3,8 +3,8 @@ import { Heart } from "lucide-react"; export function Encouragement({ children }: { children: ReactNode }) { return ( -