Failing is a shadcn/ui theme built around a vivid deep yellow primary color (#564201) with vivid deep purple accents (#420156). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid deep yellow primary (#564201) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #000000black |
| Foreground | #171203black | #fdfdfcwhite |
| Card | #fcfbf8snow | #000000black |
| Card foreground | #171203black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #000000black |
| Popover foreground | #171203black | #fdfdfcwhite |
| Primary | #564201saddlebrown | #564201saddlebrown |
| Primary foreground | #fdcb26gold | #fdcb26gold |
| Secondary | #015642darkslategray | #015642darkslategray |
| Secondary foreground | #26fdcbturquoise | #26fdcbturquoise |
| Muted | #dae1e0gainsboro | #1e2523black |
| Muted foreground | #545958dimgray | #a6abaadarkgray |
| Accent | #420156indigo | #420156indigo |
| Accent foreground | #e38bfeviolet | #e38bfeviolet |
| Destructive | #940c05darkred | #f93e34tomato |
| Destructive foreground | #fdd0cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #564201saddlebrown | #564201saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.06:1 | AAA |
| Text on card | 18.06:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 6.64:1 | AA |
| Muted text | 5.39:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 6.64:1 | AA |
| Muted text | 6.73:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Failing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 92.703);
--foreground: oklch(0.184 0.031 94.61);
--muted: oklch(0.905 0.008 180.705);
--muted-foreground: oklch(0.46 0.007 180.535);
--popover: oklch(0.988 0.005 92.703);
--popover-foreground: oklch(0.184 0.031 94.61);
--card: oklch(0.988 0.005 92.703);
--card-foreground: oklch(0.184 0.031 94.61);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.389 0.079 89.095);
--primary-foreground: oklch(0.861 0.169 89.604);
--secondary: oklch(0.403 0.079 170.279);
--secondary-foreground: oklch(0.887 0.169 170.969);
--accent: oklch(0.283 0.138 315.68);
--accent-foreground: oklch(0.77 0.181 317.969);
--destructive: oklch(0.424 0.167 29.611);
--destructive-foreground: oklch(0.896 0.052 21.695);
--ring: oklch(0.389 0.079 89.095);
--chart-1: oklch(0.389 0.079 89.095);
--chart-2: oklch(0.403 0.079 170.279);
--chart-3: oklch(0.283 0.138 315.68);
--chart-4: oklch(0.451 0.089 169.858);
--chart-5: oklch(0.393 0.08 88.879);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 92.672);
--muted: oklch(0.256 0.011 179.706);
--muted-foreground: oklch(0.736 0.006 180.725);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 92.672);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 92.672);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.389 0.079 89.095);
--primary-foreground: oklch(0.861 0.169 89.604);
--secondary: oklch(0.403 0.079 170.279);
--secondary-foreground: oklch(0.887 0.169 170.969);
--accent: oklch(0.283 0.138 315.68);
--accent-foreground: oklch(0.77 0.181 317.969);
--destructive: oklch(0.646 0.224 28.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.389 0.079 89.095);
--chart-1: oklch(0.389 0.079 89.095);
--chart-2: oklch(0.403 0.079 170.279);
--chart-3: oklch(0.283 0.138 315.68);
--chart-4: oklch(0.451 0.089 169.858);
--chart-5: oklch(0.393 0.08 88.879);
}