Rounded Corners
Set
--radiusonce and the banner card, buttons, checkboxes, and tab pills all update together.
Control how rounded every interactive element feels — from a flat, corporate look at 0px through the default 8px, to a friendly 24px large radius, all the way to fully pill-shaped buttons with 9999px. Because --radius is a shared token, one change propagates to every component that uses it.
The CSS
Section titled “The CSS”/* ── Corner radius: choose one ─────────────────────────── */.ag-banner { /* Option A — Sharp / corporate (no rounding) */ /* --radius: 0px; */
/* Option B — Default Kookiok (balanced) */ /* --radius: 8px; */
/* Option C — Friendly / rounded */ --radius: 24px;
/* Option D — Pill (fully rounded) */ /* --radius: 9999px; */
/* Optional: match the banner card corner separately */ /* --radius-card: 16px; */}Live preview — sharp (0 px)
Section titled “Live preview — sharp (0 px)”classic · dialog · center Live preview — large rounded (24 px)
Section titled “Live preview — large rounded (24 px)”classic · dialog · center Live preview — pill (9999 px)
Section titled “Live preview — pill (9999 px)”classic · dialog · center What’s happening
Section titled “What’s happening”--radiusis consumed as-is by.ag-btn,.ag-detail-toggle,.ag-bar-cat, and the banner card itself.- The banner card uses
--radius-card, which defaults to--radius. Override it separately if you want a rounder card but less-rounded buttons. - The pill value (
9999px) works reliably even on elements much taller than they are wide — CSS clamps the effective radius to half the element’s shortest dimension. - Setting
0pxdisables rounding on every component simultaneously, giving a flat, no-border-radius appearance throughout.
Variations
Section titled “Variations”Card rounded, buttons sharp — a common enterprise look where the container is soft but the calls-to-action are crisp:
.ag-banner { --radius: 0px; /* buttons, checkboxes, tabs */ --radius-card: 16px; /* banner card only */}Medium pill buttons on a flat card:
.ag-banner { --radius: 9999px; /* fully pill buttons */ --radius-card: 4px; /* slight rounding on card */}Match a design system — if your UI uses 6px everywhere:
.ag-banner { --radius: 6px;}Compliance notes
Section titled “Compliance notes”Changing --radius is a purely visual modification. No GDPR elements are hidden or de-emphasised — all buttons remain visible and equally styled.
Related recipes
Section titled “Related recipes”- Brand Colors — combine with a custom color palette
- Full Redesign — see how
--radiusfits into a complete restyle