Causal for shadcn/ui

Causal is a shadcn/ui theme built around a vivid teal primary color (#3feea5) with vivid orange accents (#eea53f). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid teal primary (#3feea5) on a neutral background (#020806).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#020806black
Foreground
#03110bblack
#ffffffwhite
Card
#f7fdfamintcream
#020806black
Card foreground
#03110bblack
#ffffffwhite
Popover
#f7fdfamintcream
#020806black
Popover foreground
#03110bblack
#ffffffwhite
Primary
#3feea5turquoise
#3feea5turquoise
Primary foreground
#000000black
#000000black
Secondary
#a53feeblueviolet
#a53feeblueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2d7eagainsboro
#201528black
Muted foreground
#4c4054darkslategray
#b7abbfsilver
Accent
#eea53fsandybrown
#eea53fsandybrown
Accent foreground
#000000black
#000000black
Destructive
#8a2b0fsaddlebrown
#eb6942tomato
Destructive foreground
#fadad1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3feea5turquoise
#3feea5turquoise

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button14.01:1AAA
Secondary button4.62:1AA
Muted text6.98:1AA
Accent10.10:1AAA
Destructive6.54:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button14.01:1AAA
Secondary button4.62:1AA
Muted text7.97:1AAA
Accent10.10:1AAA
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 169.483);
  --foreground: oklch(0.163 0.026 166.787);
  --muted: oklch(0.894 0.027 311.478);
  --muted-foreground: oklch(0.391 0.038 310.947);
  --popover: oklch(0.988 0.007 169.483);
  --popover-foreground: oklch(0.163 0.026 166.787);
  --card: oklch(0.988 0.007 169.483);
  --card-foreground: oklch(0.163 0.026 166.787);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.846 0.174 160.327);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.593 0.249 306.729);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.776 0.143 71.415);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.432 0.135 36.298);
  --destructive-foreground: oklch(0.914 0.038 37.608);
  --ring: oklch(0.846 0.174 160.327);
  --chart-1: oklch(0.846 0.174 160.327);
  --chart-2: oklch(0.593 0.249 306.729);
  --chart-3: oklch(0.776 0.143 71.415);
  --chart-4: oklch(0.616 0.236 307.552);
  --chart-5: oklch(0.853 0.178 160.018);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 169.919);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.038 310.289);
  --muted-foreground: oklch(0.757 0.032 311.384);
  --popover: oklch(0.124 0.015 169.919);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.015 169.919);
  --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.846 0.174 160.327);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.593 0.249 306.729);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.776 0.143 71.415);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.674 0.17 37.446);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.846 0.174 160.327);
  --chart-1: oklch(0.846 0.174 160.327);
  --chart-2: oklch(0.593 0.249 306.729);
  --chart-3: oklch(0.776 0.143 71.415);
  --chart-4: oklch(0.616 0.236 307.552);
  --chart-5: oklch(0.853 0.178 160.018);
}