Severe is a shadcn/ui theme built around a blue primary color (#5498c0) with orange accents (#c07b54). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#5498c0) on a blue-tinted background (#070b0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070b0dblack |
| Foreground | #020c12black | #fcfdfdwhite |
| Card | #ffffffwhite | #070b0dblack |
| Card foreground | #020c12black | #fcfdfdwhite |
| Popover | #ffffffwhite | #070b0dblack |
| Popover foreground | #020c12black | #fcfdfdwhite |
| Primary | #5498c0steelblue | #5498c0steelblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #c07b54peru | #c07b54peru |
| Secondary foreground | #000000black | #000000black |
| Muted | #efe3dcantiquewhite | #231710black |
| Muted foreground | #4c4643darkslategray | #bcb6b3silver |
| Accent | #c07b54peru | #c07b54peru |
| Accent foreground | #000000black | #000000black |
| Destructive | #5d0c09maroon | #d51c15firebrick |
| Destructive foreground | #f6a5a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5498c0steelblue | #5498c0steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 6.20:1 | AA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.20:1 | AA |
| Muted text | 8.72:1 | AAA |
| Accent | 6.20:1 | AA |
| Destructive | 5.22:1 | AA |
Paste this into your globals.css to use Severe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.022 229.583);
--muted: oklch(0.923 0.016 52.348);
--muted-foreground: oklch(0.399 0.009 52.282);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.022 229.583);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.022 229.583);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.651 0.091 235.902);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.101 50.273);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.647 0.101 50.273);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.31 0.113 28.254);
--destructive-foreground: oklch(0.8 0.096 21.614);
--ring: oklch(0.651 0.091 235.902);
--chart-1: oklch(0.651 0.091 235.902);
--chart-2: oklch(0.647 0.101 50.273);
--chart-3: oklch(0.647 0.101 50.273);
--chart-4: oklch(0.67 0.094 50.609);
--chart-5: oklch(0.653 0.096 236.217);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.009 231.597);
--foreground: oklch(0.992 0.002 232.601);
--muted: oklch(0.218 0.023 51.177);
--muted-foreground: oklch(0.781 0.008 52.448);
--popover: oklch(0.146 0.009 231.597);
--popover-foreground: oklch(0.992 0.002 232.601);
--card: oklch(0.146 0.009 231.597);
--card-foreground: oklch(0.992 0.002 232.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.651 0.091 235.902);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.101 50.273);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.647 0.101 50.273);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.558 0.216 28.935);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.651 0.091 235.902);
--chart-1: oklch(0.651 0.091 235.902);
--chart-2: oklch(0.647 0.101 50.273);
--chart-3: oklch(0.647 0.101 50.273);
--chart-4: oklch(0.67 0.094 50.609);
--chart-5: oklch(0.653 0.096 236.217);
}