Reactant for shadcn/ui

Reactant is a shadcn/ui theme built around a violet primary color (#8a64af) with teal accents (#64af8a). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#8a64af) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d0515black
#f7f6f8whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#0a0411black
#faf9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0d0515black
#f7f6f8whitesmoke
Primary
#8a64afslateblue
#8a64afslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#af8a64rosybrown
#af8a64rosybrown
Secondary foreground
#000000black
#000000black
Muted
#f5f0ealinen
#150f0ablack
Muted foreground
#4b4744darkslategray
#bbb8b4silver
Accent
#64af8acadetblue
#64af8acadetblue
Accent foreground
#000000black
#000000black
Destructive
#cd4b0echocolate
#ee5711orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a64afslateblue
#8a64afslateblue

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card19.78:1AAA
Primary button4.64:1AA
Secondary button6.63:1AA
Muted text8.10:1AAA
Accent8.05:1AAA
Destructive4.56:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.70:1AAA
Primary button4.64:1AA
Secondary button6.63:1AA
Muted text9.61:1AAA
Accent8.05:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.039 306.722);
  --muted: oklch(0.957 0.009 67.719);
  --muted-foreground: oklch(0.402 0.008 67.609);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.039 306.722);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.034 308.261);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.573 0.119 306.036);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.659 0.069 66.143);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.695 0.094 160.814);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.583 0.177 40.123);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.119 306.036);
  --chart-1: oklch(0.573 0.119 306.036);
  --chart-2: oklch(0.659 0.069 66.143);
  --chart-3: oklch(0.695 0.094 160.814);
  --chart-4: oklch(0.682 0.064 66.394);
  --chart-5: oklch(0.569 0.129 305.759);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 308.431);
  --muted: oklch(0.175 0.014 66.735);
  --muted-foreground: oklch(0.783 0.006 67.731);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.003 308.431);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 308.441);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.573 0.119 306.036);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.659 0.069 66.143);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.695 0.094 160.814);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.652 0.199 39.894);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.119 306.036);
  --chart-1: oklch(0.573 0.119 306.036);
  --chart-2: oklch(0.659 0.069 66.143);
  --chart-3: oklch(0.695 0.094 160.814);
  --chart-4: oklch(0.682 0.064 66.394);
  --chart-5: oklch(0.569 0.129 305.759);
}