Radical is a shadcn/ui theme built around a vivid pink primary color (#f52477) with muted deep indigo accents (#302e52). The light mode uses an indigo-tinted background (#131221). Dark mode keeps the vivid pink primary (#f52477) on an indigo-tinted background (#131221).
| Token | Light | Dark |
|---|---|---|
| Background | #131221black | #131221black |
| Foreground | #92b3c3darkgray | #92b3c3darkgray |
| Card | #0f0f1ablack | #0f0f1ablack |
| Card foreground | #a3bfcclightsteelblue | #a3bfcclightsteelblue |
| Popover | #0e0d17black | #0e0d17black |
| Popover foreground | #b3cad5lightsteelblue | #b3cad5lightsteelblue |
| Primary | #f52477deeppink | #f52477deeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2acbbsilver | #d2acbbsilver |
| Secondary foreground | #321b24black | #321b24black |
| Muted | #22222bdarkslategray | #22222bdarkslategray |
| Muted foreground | #9c9bb0darkgray | #9c9bb0darkgray |
| Accent | #302e52darkslategray | #302e52darkslategray |
| Accent foreground | #cfcee3lightgrey | #cfcee3lightgrey |
| Destructive | #ec1713red | #ec1713red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #201f2ddarkslategray | #201f2ddarkslategray |
| Input | #272636darkslategray | #272636darkslategray |
| Ring | #f52477deeppink | #f52477deeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.30:1 | AAA |
| Text on card | 9.86:1 | AAA |
| Primary button | 3.89:1 | AA Large |
| Secondary button | 7.87:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.47:1 | AA Large |
| Text on background | 8.30:1 | AAA |
| Text on card | 9.86:1 | AAA |
| Primary button | 3.89:1 | AA Large |
| Secondary button | 7.87:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Radical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.193 0.029 286.433);
--foreground: oklch(0.748 0.042 229.655);
--muted: oklch(0.255 0.017 288.173);
--muted-foreground: oklch(0.698 0.031 288.626);
--popover: oklch(0.165 0.021 286.919);
--popover-foreground: oklch(0.826 0.029 229.265);
--card: oklch(0.174 0.023 286.737);
--card-foreground: oklch(0.787 0.036 229.44);
--border: oklch(0.248 0.026 287.401);
--input: oklch(0.276 0.03 287.286);
--primary: oklch(0.634 0.239 4.846);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.783 0.049 352.316);
--secondary-foreground: oklch(0.256 0.039 354.68);
--accent: oklch(0.321 0.063 285.344);
--accent-foreground: oklch(0.859 0.029 288.826);
--destructive: oklch(0.598 0.237 28.842);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.634 0.239 4.846);
--chart-1: oklch(0.634 0.239 4.846);
--chart-2: oklch(0.783 0.049 352.316);
--chart-3: oklch(0.321 0.063 285.344);
--chart-4: oklch(0.81 0.043 352.057);
--chart-5: oklch(0.639 0.243 5.411);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.193 0.029 286.433);
--foreground: oklch(0.748 0.042 229.655);
--muted: oklch(0.255 0.017 288.173);
--muted-foreground: oklch(0.698 0.031 288.626);
--popover: oklch(0.165 0.021 286.919);
--popover-foreground: oklch(0.826 0.029 229.265);
--card: oklch(0.174 0.023 286.737);
--card-foreground: oklch(0.787 0.036 229.44);
--border: oklch(0.248 0.026 287.401);
--input: oklch(0.276 0.03 287.286);
--primary: oklch(0.634 0.239 4.846);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.783 0.049 352.316);
--secondary-foreground: oklch(0.256 0.039 354.68);
--accent: oklch(0.321 0.063 285.344);
--accent-foreground: oklch(0.859 0.029 288.826);
--destructive: oklch(0.598 0.237 28.842);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.634 0.239 4.846);
--chart-1: oklch(0.634 0.239 4.846);
--chart-2: oklch(0.783 0.049 352.316);
--chart-3: oklch(0.321 0.063 285.344);
--chart-4: oklch(0.81 0.043 352.057);
--chart-5: oklch(0.639 0.243 5.411);
}