Failing is a shadcn/ui theme built around a muted green primary color (#8b9e8a) with muted purple accents (#9d8a9e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#8b9e8a) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030703black |
| Foreground | #020902black | #f8fbf8mintcream |
| Card | #fcfcfcsnow | #040b04black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #040b04black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #8b9e8adarkseagreen | #8b9e8adarkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #9d8a9erosybrown | #9d8a9erosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #eee2eelavender | #1d111dblack |
| Muted foreground | #444044darkslategray | #bfbbbfsilver |
| Accent | #9d8a9erosybrown | #9d8a9erosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #b5480dsienna | #f17b3bcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8b9e8adarkseagreen | #8b9e8adarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 8.10:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 5.39:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 9.64:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 7.65:1 | AAA |
Paste this into your globals.css to use Failing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.028 143.092);
--muted: oklch(0.925 0.022 325.263);
--muted-foreground: oklch(0.378 0.008 325.255);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.098 0.023 143.092);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.023 143.092);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.677 0.035 144.728);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.657 0.036 325.469);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.657 0.036 325.469);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.541 0.155 42.696);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.677 0.035 144.728);
--chart-1: oklch(0.677 0.035 144.728);
--chart-2: oklch(0.657 0.036 325.469);
--chart-3: oklch(0.657 0.036 325.469);
--chart-4: oklch(0.683 0.033 325.428);
--chart-5: oklch(0.681 0.047 144.605);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.019 143.804);
--foreground: oklch(0.986 0.005 145.064);
--muted: oklch(0.199 0.032 326.125);
--muted-foreground: oklch(0.796 0.007 325.162);
--popover: oklch(0.138 0.022 143.803);
--popover-foreground: oklch(0.993 0.003 145.082);
--card: oklch(0.138 0.022 143.803);
--card-foreground: oklch(0.993 0.003 145.082);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.677 0.035 144.728);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.657 0.036 325.469);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.657 0.036 325.469);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.709 0.164 46.361);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.677 0.035 144.728);
--chart-1: oklch(0.677 0.035 144.728);
--chart-2: oklch(0.657 0.036 325.469);
--chart-3: oklch(0.657 0.036 325.469);
--chart-4: oklch(0.683 0.033 325.428);
--chart-5: oklch(0.681 0.047 144.605);
}