Abandoned is a shadcn/ui theme built around a green primary color (#7e8e43) with purple accents (#8e437e). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#7e8e43) on a green-tinted background (#090a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #090a05black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fdfefbwhite | #090a05black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fdfefbwhite | #090a05black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #7e8e43olivedrab | #7e8e43olivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #437e8esteelblue | #437e8esteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaebeclavender | #131515black |
| Muted foreground | #4d6066dimgray | #99adb2darkgray |
| Accent | #8e437erebeccapurple | #8e437erebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #842e06saddlebrown | #f57032tomato |
| Destructive foreground | #fcd3c0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e8e43olivedrab | #7e8e43olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 4.55:1 | AA |
| Muted text | 5.53:1 | AA |
| Accent | 6.45:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 5.84:1 | AA |
| Secondary button | 4.55:1 | AA |
| Muted text | 7.82:1 | AAA |
| Accent | 6.45:1 | AA |
| Destructive | 7.26:1 | AAA |
Paste this into your globals.css to use Abandoned in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 116.394);
--foreground: oklch(0.105 0.018 116.846);
--muted: oklch(0.94 0.002 216.02);
--muted-foreground: oklch(0.476 0.025 216.417);
--popover: oklch(0.995 0.003 116.394);
--popover-foreground: oklch(0.105 0.018 116.846);
--card: oklch(0.995 0.003 116.394);
--card-foreground: oklch(0.105 0.018 116.846);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.617 0.103 119.629);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.559 0.066 217.925);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.499 0.127 336.244);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.422 0.126 40.495);
--destructive-foreground: oklch(0.896 0.053 46.279);
--ring: oklch(0.617 0.103 119.629);
--chart-1: oklch(0.617 0.103 119.629);
--chart-2: oklch(0.559 0.066 217.925);
--chart-3: oklch(0.499 0.127 336.244);
--chart-4: oklch(0.588 0.07 217.952);
--chart-5: oklch(0.626 0.109 119.856);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.014 116.656);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.003 216.076);
--muted-foreground: oklch(0.734 0.023 216.197);
--popover: oklch(0.143 0.014 116.656);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.014 116.656);
--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.617 0.103 119.629);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.559 0.066 217.925);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.499 0.127 336.244);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.697 0.179 42.874);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.617 0.103 119.629);
--chart-1: oklch(0.617 0.103 119.629);
--chart-2: oklch(0.559 0.066 217.925);
--chart-3: oklch(0.499 0.127 336.244);
--chart-4: oklch(0.588 0.07 217.952);
--chart-5: oklch(0.626 0.109 119.856);
}