Casual Apocalyptic Orange is a shadcn/ui theme built around a vivid red primary color (#e11d48) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid orange primary (#f8701e) on an orange-tinted background (#14100f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #14100fblack |
| Foreground | #09090bblack | #f2f2f2whitesmoke |
| Card | #ffffffwhite | #181514black |
| Card foreground | #09090bblack | #f2f2f2whitesmoke |
| Popover | #ffffffwhite | #171717black |
| Popover foreground | #09090bblack | #f2f2f2whitesmoke |
| Primary | #e11d48crimson | #f8701echocolate |
| Primary foreground | #fff1f2lavenderblush | #fff1f2lavenderblush |
| Secondary | #f4f4f5whitesmoke | #27272adarkslategray |
| Secondary foreground | #18181bblack | #fafafasnow |
| Muted | #f4f4f5whitesmoke | #262626darkslategray |
| Muted foreground | #71717adimgray | #a1a1aadarkgray |
| Accent | #f4f4f5whitesmoke | #292524darkslategray |
| Accent foreground | #18181bblack | #fafafasnow |
| Destructive | #ef4444tomato | #ca2424firebrick |
| Destructive foreground | #fafafasnow | #fef2f2lavenderblush |
| Border | #e4e4e7gainsboro | #27272adarkslategray |
| Input | #e4e4e7gainsboro | #27272adarkslategray |
| Ring | #e11d48crimson | #cf831echocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 4.27:1 | AA Large |
| Secondary button | 16.12:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 16.12:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 16.87:1 | AAA |
| Text on card | 16.22:1 | AAA |
| Primary button | 2.61:1 | Fail |
| Secondary button | 14.26:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 14.53:1 | AAA |
| Destructive | 5.07:1 | AA |
Paste this into your globals.css to use Casual Apocalyptic Orange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.004 285.824);
--muted: oklch(0.968 0.001 286.375);
--muted-foreground: oklch(0.552 0.014 285.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.004 285.824);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.004 285.824);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--primary: oklch(0.586 0.222 17.555);
--primary-foreground: oklch(0.97 0.015 12.399);
--secondary: oklch(0.968 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.883);
--accent: oklch(0.968 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.883);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.586 0.222 17.555);
--chart-1: oklch(0.586 0.222 17.555);
--chart-2: oklch(0.968 0.001 286.375);
--chart-3: oklch(0.968 0.001 286.375);
--chart-4: oklch(0.991 0 286.393);
--chart-5: oklch(0.591 0.227 18.274);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.178 0.006 48.341);
--foreground: oklch(0.962 0 180);
--muted: oklch(0.27 0 180);
--muted-foreground: oklch(0.712 0.013 286.068);
--popover: oklch(0.204 0 180);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.199 0.005 56.093);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.274 0.005 286.033);
--input: oklch(0.274 0.005 286.033);
--primary: oklch(0.699 0.187 45.821);
--primary-foreground: oklch(0.97 0.015 12.399);
--secondary: oklch(0.274 0.005 286.033);
--secondary-foreground: oklch(0.985 0 180);
--accent: oklch(0.269 0.006 34.297);
--accent-foreground: oklch(0.985 0 180);
--destructive: oklch(0.543 0.201 27.19);
--destructive-foreground: oklch(0.971 0.013 17.376);
--ring: oklch(0.675 0.14 67.336);
--chart-1: oklch(0.699 0.187 45.821);
--chart-2: oklch(0.274 0.005 286.033);
--chart-3: oklch(0.269 0.006 34.297);
--chart-4: oklch(0.304 0.006 286.017);
--chart-5: oklch(0.703 0.191 45.333);
}