Failing for shadcn/ui

Failing is a shadcn/ui theme built around an orange primary color (#a07b4b) with blue accents (#4b70a0). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#a07b4b) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#090601black
#fdfdfcwhite
Card
#fcfcfcsnow
#070503black
Card foreground
#040301black
#ffffffwhite
Popover
#fcfcfcsnow
#070503black
Popover foreground
#040301black
#ffffffwhite
Primary
#a07b4bperu
#a07b4bperu
Primary foreground
#000000black
#000000black
Secondary
#4b70a0steelblue
#4b70a0steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d7dbdfgainsboro
#202328darkslategray
Muted foreground
#596473dimgray
#8c97a6lightslategray
Accent
#4b70a0steelblue
#4b70a0steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a73111firebrick
#ec623ctomato
Destructive foreground
#fdf0ecseashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a07b4bperu
#a07b4bperu

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.22:1AAA
Text on card20.17:1AAA
Primary button5.41:1AA
Secondary button5.11:1AA
Muted text4.31:1AA Large
Accent5.11:1AA
Destructive6.09:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.30:1AAA
Primary button5.41:1AA
Secondary button5.11:1AA
Muted text5.31:1AA
Accent5.11:1AA
Destructive6.37:1AA

CSS variables

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.122 0.018 84.462);
  --muted: oklch(0.889 0.007 254.997);
  --muted-foreground: oklch(0.5 0.028 255.186);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.097 0.014 84.462);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.097 0.014 84.462);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.608 0.079 72.85);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.538 0.086 255.53);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.538 0.086 255.53);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.489 0.159 35.164);
  --destructive-foreground: oklch(0.965 0.015 35.967);
  --ring: oklch(0.608 0.079 72.85);
  --chart-1: oklch(0.608 0.079 72.85);
  --chart-2: oklch(0.538 0.086 255.53);
  --chart-3: oklch(0.538 0.086 255.53);
  --chart-4: oklch(0.562 0.091 255.535);
  --chart-5: oklch(0.612 0.085 72.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.008 80.463);
  --foreground: oklch(0.993 0.001 74.948);
  --muted: oklch(0.255 0.01 255.127);
  --muted-foreground: oklch(0.673 0.026 255.128);
  --popover: oklch(0.12 0.01 80.463);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.01 80.463);
  --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.608 0.079 72.85);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.538 0.086 255.53);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.538 0.086 255.53);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.665 0.179 36.22);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.608 0.079 72.85);
  --chart-1: oklch(0.608 0.079 72.85);
  --chart-2: oklch(0.538 0.086 255.53);
  --chart-3: oklch(0.538 0.086 255.53);
  --chart-4: oklch(0.562 0.091 255.535);
  --chart-5: oklch(0.612 0.085 72.525);
}