Reactant for shadcn/ui

Reactant is a shadcn/ui theme built around a deep orange primary color (#764813) with neutral gray accents (#d7d4d1). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the deep orange primary (#764813) on an orange-tinted background (#0a0805).

Color palette

TokenLightDark
Background
#fcfaf8snow
#0a0805black
Foreground
#000000black
#f9f7f5whitesmoke
Card
#fcfaf8snow
#0a0805black
Card foreground
#000000black
#f9f7f5whitesmoke
Popover
#fcfaf8snow
#0a0805black
Popover foreground
#000000black
#f9f7f5whitesmoke
Primary
#764813saddlebrown
#764813saddlebrown
Primary foreground
#f6dfc6bisque
#f6dfc6bisque
Secondary
#d7d4d1lightgrey
#2a241dblack
Secondary foreground
#3f3b37darkslategray
#c9beb0silver
Muted
#e2e1dfgainsboro
#201f1dblack
Muted foreground
#686664dimgray
#9b9997darkgray
Accent
#d7d4d1lightgrey
#2a241dblack
Accent foreground
#3f3b37darkslategray
#c9beb0silver
Destructive
#e62a00orangered
#ff542etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#764813saddlebrown
#764813saddlebrown

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button5.99:1AA
Secondary button7.50:1AAA
Muted text4.36:1AA Large
Accent7.50:1AAA
Destructive4.48:1AA Large
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button5.99:1AA
Secondary button8.36:1AAA
Muted text5.80:1AA
Accent8.36:1AAA
Destructive6.56:1AA

CSS variables

Paste this into your globals.css to use Reactant in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 71.421);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.909 0.003 71.42);
  --muted-foreground: oklch(0.512 0.004 71.38);
  --popover: oklch(0.986 0.003 71.421);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.003 71.421);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.447 0.09 64.31);
  --primary-foreground: oklch(0.917 0.042 70.982);
  --secondary: oklch(0.871 0.005 71.397);
  --secondary-foreground: oklch(0.354 0.009 71.209);
  --accent: oklch(0.871 0.005 71.397);
  --accent-foreground: oklch(0.354 0.009 71.209);
  --destructive: oklch(0.595 0.224 32.24);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.09 64.31);
  --chart-1: oklch(0.447 0.09 64.31);
  --chart-2: oklch(0.871 0.005 71.397);
  --chart-3: oklch(0.871 0.005 71.397);
  --chart-4: oklch(0.894 0.004 71.408);
  --chart-5: oklch(0.45 0.093 63.736);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.009 76.37);
  --foreground: oklch(0.978 0.003 71.421);
  --muted: oklch(0.239 0.005 71.279);
  --muted-foreground: oklch(0.684 0.004 71.402);
  --popover: oklch(0.136 0.009 76.37);
  --popover-foreground: oklch(0.978 0.003 71.421);
  --card: oklch(0.136 0.009 76.37);
  --card-foreground: oklch(0.978 0.003 71.421);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.447 0.09 64.31);
  --primary-foreground: oklch(0.917 0.042 70.982);
  --secondary: oklch(0.266 0.016 70.774);
  --secondary-foreground: oklch(0.806 0.023 71.183);
  --accent: oklch(0.266 0.016 70.774);
  --accent-foreground: oklch(0.806 0.023 71.183);
  --destructive: oklch(0.677 0.213 33.972);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.447 0.09 64.31);
  --chart-1: oklch(0.447 0.09 64.31);
  --chart-2: oklch(0.266 0.016 70.774);
  --chart-3: oklch(0.266 0.016 70.774);
  --chart-4: oklch(0.298 0.019 70.729);
  --chart-5: oklch(0.45 0.093 63.736);
}