Abandoned is a shadcn/ui theme built around a deep green primary color (#061d07) with deep purple accents (#1d061d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#061d07) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020d02black | #f5faf5whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010902black | #f8fbf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020d02black | #f5faf5whitesmoke |
| Primary | #061d07black | #061d07black |
| Primary foreground | #2bc530limegreen | #2bc530limegreen |
| Secondary | #1d061dblack | #1d061dblack |
| Secondary foreground | #e175ddorchid | #e175ddorchid |
| Muted | #f6eaf5lavenderblush | #150915black |
| Muted foreground | #605260dimgray | #ad9facdarkgray |
| Accent | #1d061dblack | #1d061dblack |
| Accent foreground | #e175ddorchid | #e175ddorchid |
| Destructive | #d15610chocolate | #ee691bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #061d07black | #061d07black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 4.15:1 | AA Large |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 7.09:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.09:1 | AAA |
| Destructive | 6.64:1 | AA |
Paste this into your globals.css to use Abandoned in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.035 144.489);
--muted: oklch(0.949 0.02 326.726);
--muted-foreground: oklch(0.458 0.029 327.065);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.035 144.489);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.124 0.03 144.535);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.207 0.051 144.142);
--primary-foreground: oklch(0.718 0.222 143.155);
--secondary: oklch(0.177 0.055 328.874);
--secondary-foreground: oklch(0.72 0.184 328.515);
--accent: oklch(0.177 0.055 328.874);
--accent-foreground: oklch(0.72 0.184 328.515);
--destructive: oklch(0.605 0.17 43.881);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.051 144.142);
--chart-1: oklch(0.207 0.051 144.142);
--chart-2: oklch(0.177 0.055 328.874);
--chart-3: oklch(0.177 0.055 328.874);
--chart-4: oklch(0.213 0.072 329.093);
--chart-5: oklch(0.208 0.053 144.061);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.007 146.476);
--muted: oklch(0.165 0.031 328.031);
--muted-foreground: oklch(0.718 0.026 326.844);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.007 146.476);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.005 146.498);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.207 0.051 144.142);
--primary-foreground: oklch(0.718 0.222 143.155);
--secondary: oklch(0.177 0.055 328.874);
--secondary-foreground: oklch(0.72 0.184 328.515);
--accent: oklch(0.177 0.055 328.874);
--accent-foreground: oklch(0.72 0.184 328.515);
--destructive: oklch(0.674 0.183 44.861);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.207 0.051 144.142);
--chart-1: oklch(0.207 0.051 144.142);
--chart-2: oklch(0.177 0.055 328.874);
--chart-3: oklch(0.177 0.055 328.874);
--chart-4: oklch(0.213 0.072 329.093);
--chart-5: oklch(0.208 0.053 144.061);
}