Forsaken is a shadcn/ui theme built around a near-white primary color (#fcf8f8) with near-white accents (#f8fcfc). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#fcf8f8) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #030202black |
| Foreground | #120202black | #ffffffwhite |
| Card | #fdf6f6snow | #070303black |
| Card foreground | #0e0202black | #ffffffwhite |
| Popover | #fefbfbsnow | #030202black |
| Popover foreground | #120202black | #ffffffwhite |
| Primary | #fcf8f8snow | #fcf8f8snow |
| Primary foreground | #853d3dsienna | #853d3dsienna |
| Secondary | #f8fcfcmintcream | #f8fcfcmintcream |
| Secondary foreground | #1d3f3fdarkslategray | #1d3f3fdarkslategray |
| Muted | #e4e7e7gainsboro | #181b1bblack |
| Muted foreground | #535555dimgray | #aaacacdarkgray |
| Accent | #f8fcfcmintcream | #f8fcfcmintcream |
| Accent foreground | #1d3f3fdarkslategray | #1d3f3fdarkslategray |
| Destructive | #9d3502saddlebrown | #fd6012orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcf8f8snow | #fcf8f8snow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 11.05:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 11.05:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 11.05:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 11.05:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Forsaken in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.219);
--foreground: oklch(0.126 0.037 24.138);
--muted: oklch(0.925 0.003 197.11);
--muted-foreground: oklch(0.448 0.002 197.079);
--popover: oklch(0.99 0.004 17.219);
--popover-foreground: oklch(0.126 0.037 24.138);
--card: oklch(0.98 0.007 17.282);
--card-foreground: oklch(0.112 0.032 23.882);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.982 0.004 17.226);
--primary-foreground: oklch(0.454 0.099 21.768);
--secondary: oklch(0.988 0.004 197.092);
--secondary-foreground: oklch(0.342 0.04 195.459);
--accent: oklch(0.988 0.004 197.092);
--accent-foreground: oklch(0.342 0.04 195.459);
--destructive: oklch(0.475 0.147 40.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.982 0.004 17.226);
--chart-1: oklch(0.982 0.004 17.226);
--chart-2: oklch(0.988 0.004 197.092);
--chart-3: oklch(0.988 0.004 197.092);
--chart-4: oklch(1.006 0.002 17.191);
--chart-5: oklch(0.982 0.004 17.231);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 19.049);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.004 196.872);
--muted-foreground: oklch(0.742 0.002 197.116);
--popover: oklch(0.086 0.009 19.049);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.011 19.049);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.982 0.004 17.226);
--primary-foreground: oklch(0.454 0.099 21.768);
--secondary: oklch(0.988 0.004 197.092);
--secondary-foreground: oklch(0.342 0.04 195.459);
--accent: oklch(0.988 0.004 197.092);
--accent-foreground: oklch(0.342 0.04 195.459);
--destructive: oklch(0.685 0.205 40.948);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.982 0.004 17.226);
--chart-1: oklch(0.982 0.004 17.226);
--chart-2: oklch(0.988 0.004 197.092);
--chart-3: oklch(0.988 0.004 197.092);
--chart-4: oklch(1.006 0.002 17.191);
--chart-5: oklch(0.982 0.004 17.231);
}