Deserted is a shadcn/ui theme built around a light violet primary color (#f7effa) with light green accents (#f2faef). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#f7effa) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #0d0311black | #fdfcfdwhite |
| Card | #ffffffwhite | #060307black |
| Card foreground | #0d0311black | #fdfcfdwhite |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #0d0311black | #fdfcfdwhite |
| Primary | #f7effawhitesmoke | #f7effawhitesmoke |
| Primary foreground | #712a8drebeccapurple | #712a8drebeccapurple |
| Secondary | #f2faefhoneydew | #f2faefhoneydew |
| Secondary foreground | #1f3f13darkgreen | #1f3f13darkgreen |
| Muted | #eef3edwhitesmoke | #0e120cblack |
| Muted foreground | #5d7255dimgray | #95aa8ddarkseagreen |
| Accent | #f2faefhoneydew | #f2faefhoneydew |
| Accent foreground | #1f3f13darkgreen | #1f3f13darkgreen |
| Destructive | #671c0amaroon | #e53f15orangered |
| Destructive foreground | #f7baablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7effawhitesmoke | #f7effawhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 11.10:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 11.10:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 11.10:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 11.10:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Deserted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.039 317.278);
--muted: oklch(0.958 0.009 136.637);
--muted-foreground: oklch(0.527 0.052 136.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.039 317.278);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.039 317.278);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.962 0.017 316.558);
--primary-foreground: oklch(0.435 0.163 314.74);
--secondary: oklch(0.977 0.017 136.66);
--secondary-foreground: oklch(0.331 0.08 137.923);
--accent: oklch(0.977 0.017 136.66);
--accent-foreground: oklch(0.331 0.08 137.923);
--destructive: oklch(0.346 0.11 34.683);
--destructive-foreground: oklch(0.841 0.074 34.469);
--ring: oklch(0.962 0.017 316.558);
--chart-1: oklch(0.962 0.017 316.558);
--chart-2: oklch(0.977 0.017 136.66);
--chart-3: oklch(0.977 0.017 136.66);
--chart-4: oklch(0.994 0.004 136.621);
--chart-5: oklch(0.962 0.018 316.555);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.013 317.7);
--foreground: oklch(0.991 0.003 316.6);
--muted: oklch(0.176 0.013 136.855);
--muted-foreground: oklch(0.715 0.049 136.826);
--popover: oklch(0.11 0.013 317.7);
--popover-foreground: oklch(0.991 0.003 316.6);
--card: oklch(0.11 0.013 317.7);
--card-foreground: oklch(0.991 0.003 316.6);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.962 0.017 316.558);
--primary-foreground: oklch(0.435 0.163 314.74);
--secondary: oklch(0.977 0.017 136.66);
--secondary-foreground: oklch(0.331 0.08 137.923);
--accent: oklch(0.977 0.017 136.66);
--accent-foreground: oklch(0.331 0.08 137.923);
--destructive: oklch(0.61 0.208 34.066);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.962 0.017 316.558);
--chart-1: oklch(0.962 0.017 316.558);
--chart-2: oklch(0.977 0.017 136.66);
--chart-3: oklch(0.977 0.017 136.66);
--chart-4: oklch(0.994 0.004 136.621);
--chart-5: oklch(0.962 0.018 316.555);
}