Reactant for shadcn/ui

Reactant is a shadcn/ui theme built around a neutral gray primary color (#adaaa9) with muted red accents (#cdb5b2). The light mode uses a neutral background (#fcf8f7). Dark mode keeps the neutral gray primary (#adaaa9) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#fcf8f7snow
#0b0504black
Foreground
#000000black
#fcf9f8snow
Card
#fcf8f7snow
#0b0504black
Card foreground
#000000black
#fcf9f8snow
Popover
#fcf8f7snow
#0b0504black
Popover foreground
#000000black
#fcf9f8snow
Primary
#adaaa9darkgray
#adaaa9darkgray
Primary foreground
#121211black
#121211black
Secondary
#d6c9c7lightgrey
#302827darkslategray
Secondary foreground
#3e2f2edarkslategray
#cbbfbesilver
Muted
#e6d3d1gainsboro
#2e1b19black
Muted foreground
#453c3bdarkslategray
#c4bbbasilver
Accent
#cdb5b2silver
#4c3634darkslategray
Accent foreground
#2e201eblack
#e0d3d1lightgrey
Destructive
#690a02maroon
#fb2b18orangered
Destructive foreground
#fea7a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#adaaa9darkgray
#adaaa9darkgray

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button8.08:1AAA
Secondary button7.89:1AAA
Muted text7.44:1AAA
Accent8.07:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button8.08:1AAA
Secondary button8.06:1AAA
Muted text8.63:1AAA
Accent7.61:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 26.473);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.882 0.021 26.618);
  --muted-foreground: oklch(0.364 0.013 26.711);
  --popover: oklch(0.982 0.005 26.473);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 26.473);
  --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.739 0.003 26.471);
  --primary-foreground: oklch(0.181 0.001 26.479);
  --secondary: oklch(0.846 0.015 26.562);
  --secondary-foreground: oklch(0.322 0.021 27.016);
  --accent: oklch(0.792 0.028 26.709);
  --accent-foreground: oklch(0.261 0.022 27.254);
  --destructive: oklch(0.335 0.128 30.833);
  --destructive-foreground: oklch(0.812 0.103 25.273);
  --ring: oklch(0.739 0.003 26.471);
  --chart-1: oklch(0.739 0.003 26.471);
  --chart-2: oklch(0.846 0.015 26.562);
  --chart-3: oklch(0.792 0.028 26.709);
  --chart-4: oklch(0.871 0.012 26.537);
  --chart-5: oklch(0.736 0.009 26.521);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.013 30.134);
  --foreground: oklch(0.983 0.003 26.463);
  --muted: oklch(0.248 0.031 27.74);
  --muted-foreground: oklch(0.8 0.01 26.529);
  --popover: oklch(0.126 0.013 30.134);
  --popover-foreground: oklch(0.983 0.003 26.463);
  --card: oklch(0.126 0.013 30.134);
  --card-foreground: oklch(0.983 0.003 26.463);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.739 0.003 26.471);
  --primary-foreground: oklch(0.181 0.001 26.479);
  --secondary: oklch(0.285 0.013 26.803);
  --secondary-foreground: oklch(0.815 0.013 26.553);
  --accent: oklch(0.358 0.031 27.269);
  --accent-foreground: oklch(0.877 0.014 26.556);
  --destructive: oklch(0.636 0.241 30.085);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.003 26.471);
  --chart-1: oklch(0.739 0.003 26.471);
  --chart-2: oklch(0.285 0.013 26.803);
  --chart-3: oklch(0.358 0.031 27.269);
  --chart-4: oklch(0.314 0.015 26.821);
  --chart-5: oklch(0.736 0.009 26.521);
}