diff --git a/src/app/globals.css b/src/app/globals.css index 58614f4..7ec6c58 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -123,11 +123,21 @@ --sidebar-ring: oklch(0.552 0.016 285.938); } -@supports (corner-shape: squircle) { - * { - corner-shape: superellipse(2); - --radius:1.5rem; - } +/* Inside @layer base so utilities like [corner-shape:round] can override it. + Unlayered rules beat every layer, which would make overrides a no-op. */ +@layer base { + @supports (corner-shape: squircle) { + * { + corner-shape: superellipse(2); + --radius:1.5rem; + } + } +} + +/* Capsule/circle radii stay round: a superellipse corner on a full radius + distorts the pill/circle shape. Merges with Tailwind's built-in rounded-full. */ +@utility rounded-full { + corner-shape: round; } @layer base { diff --git a/src/components/ui/questionnaire.tsx b/src/components/ui/questionnaire.tsx index ab3bc78..9a53893 100644 --- a/src/components/ui/questionnaire.tsx +++ b/src/components/ui/questionnaire.tsx @@ -122,7 +122,7 @@ function QuestionnaireChoice({