Failing is a shadcn/ui theme built around a deep pink primary color (#390e29) with neutral gray accents (#e6e5e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#390e29) on a pink-tinted background (#0a0508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0508black |
| Foreground | #12020cblack | #fdfcfdwhite |
| Card | #ffffffwhite | #0a0508black |
| Card foreground | #12020cblack | #fdfcfdwhite |
| Popover | #ffffffwhite | #0a0508black |
| Popover foreground | #12020cblack | #fdfcfdwhite |
| Primary | #390e29black | #390e29black |
| Primary foreground | #e495c6plum | #e495c6plum |
| Secondary | #e6e5e6gainsboro | #372f34darkslategray |
| Secondary foreground | #4f4a4ddarkslategray | #d0c8cdlightgrey |
| Muted | #eae6e8lavender | #191517black |
| Muted foreground | #615c5fdimgray | #a39ea1darkgray |
| Accent | #e6e5e6gainsboro | #372f34darkslategray |
| Accent foreground | #4f4a4ddarkslategray | #d0c8cdlightgrey |
| Destructive | #87360dsaddlebrown | #e85d17chocolate |
| Destructive foreground | #fadbccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #390e29black | #390e29black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 6.89:1 | AA |
| Muted text | 5.31:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.50:1 | AA Large |
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.133 0.041 342.349);
--muted: oklch(0.929 0.004 339.572);
--muted-foreground: oklch(0.48 0.009 339.881);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.041 342.349);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.041 342.349);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.248 0.076 346.057);
--primary-foreground: oklch(0.764 0.114 342.517);
--secondary: oklch(0.923 0.002 339.519);
--secondary-foreground: oklch(0.415 0.008 339.869);
--accent: oklch(0.923 0.002 339.519);
--accent-foreground: oklch(0.415 0.008 339.869);
--destructive: oklch(0.439 0.121 42.789);
--destructive-foreground: oklch(0.914 0.04 48.261);
--ring: oklch(0.248 0.076 346.057);
--chart-1: oklch(0.248 0.076 346.057);
--chart-2: oklch(0.923 0.002 339.519);
--chart-3: oklch(0.923 0.002 339.519);
--chart-4: oklch(0.946 0.001 339.503);
--chart-5: oklch(0.249 0.079 346.384);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 339.605);
--foreground: oklch(0.992 0.002 339.508);
--muted: oklch(0.202 0.006 340.154);
--muted-foreground: oklch(0.704 0.008 339.725);
--popover: oklch(0.126 0.015 339.605);
--popover-foreground: oklch(0.992 0.002 339.508);
--card: oklch(0.126 0.015 339.605);
--card-foreground: oklch(0.992 0.002 339.508);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.248 0.076 346.057);
--primary-foreground: oklch(0.764 0.114 342.517);
--secondary: oklch(0.316 0.013 340.334);
--secondary-foreground: oklch(0.841 0.01 339.728);
--accent: oklch(0.316 0.013 340.334);
--accent-foreground: oklch(0.841 0.01 339.728);
--destructive: oklch(0.649 0.187 41.886);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.248 0.076 346.057);
--chart-1: oklch(0.248 0.076 346.057);
--chart-2: oklch(0.316 0.013 340.334);
--chart-3: oklch(0.316 0.013 340.334);
--chart-4: oklch(0.345 0.014 340.359);
--chart-5: oklch(0.249 0.079 346.384);
}