Severe is a shadcn/ui theme built around a deep yellow primary color (#252113) with muted light yellow accents (#dbd9d2). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep yellow primary (#252113) on a yellow-tinted background (#0c0a03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0c0a03black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fdfdfcwhite | #0c0a03black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #0c0a03black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #252113black | #252113black |
| Primary foreground | #cdc39dtan | #cdc39dtan |
| Secondary | #dbd9d2lightgrey | #23211ablack |
| Secondary foreground | #444136darkslategray | #c2beadsilver |
| Muted | #f2efe3linen | #1c190dblack |
| Muted foreground | #726d5adimgray | #a5a08drosybrown |
| Accent | #dbd9d2lightgrey | #23211ablack |
| Accent foreground | #444136darkslategray | #c2beadsilver |
| Destructive | #7b2e0asaddlebrown | #ed6221chocolate |
| Destructive foreground | #fad0bdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #252113black | #252113black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 9.07:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 4.50:1 | AA |
| Accent | 7.21:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 9.07:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.36:1 | AA |
Paste this into your globals.css to use Severe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 93.887);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.017 94.046);
--muted-foreground: oklch(0.534 0.03 94.355);
--popover: oklch(0.994 0.002 93.887);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.002 93.887);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.249 0.026 94.489);
--primary-foreground: oklch(0.816 0.053 94.407);
--secondary: oklch(0.884 0.01 93.982);
--secondary-foreground: oklch(0.375 0.018 94.303);
--accent: oklch(0.884 0.01 93.982);
--accent-foreground: oklch(0.375 0.018 94.303);
--destructive: oklch(0.406 0.116 41.349);
--destructive-foreground: oklch(0.889 0.054 46.27);
--ring: oklch(0.249 0.026 94.489);
--chart-1: oklch(0.249 0.026 94.489);
--chart-2: oklch(0.884 0.01 93.982);
--chart-3: oklch(0.884 0.01 93.982);
--chart-4: oklch(0.906 0.008 93.958);
--chart-5: oklch(0.251 0.028 94.47);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.018 97.834);
--foreground: oklch(0.993 0.001 93.877);
--muted: oklch(0.213 0.023 94.485);
--muted-foreground: oklch(0.705 0.028 94.242);
--popover: oklch(0.145 0.018 97.834);
--popover-foreground: oklch(0.993 0.001 93.877);
--card: oklch(0.145 0.018 97.834);
--card-foreground: oklch(0.993 0.001 93.877);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.249 0.026 94.489);
--primary-foreground: oklch(0.816 0.053 94.407);
--secondary: oklch(0.248 0.013 94.347);
--secondary-foreground: oklch(0.8 0.024 94.16);
--accent: oklch(0.248 0.013 94.347);
--accent-foreground: oklch(0.8 0.024 94.16);
--destructive: oklch(0.664 0.186 41.658);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.249 0.026 94.489);
--chart-1: oklch(0.249 0.026 94.489);
--chart-2: oklch(0.248 0.013 94.347);
--chart-3: oklch(0.248 0.013 94.347);
--chart-4: oklch(0.283 0.016 94.367);
--chart-5: oklch(0.251 0.028 94.47);
}