Soil for shadcn/ui

Soil is a shadcn/ui theme built around a vivid light purple primary color (#f5ade2) with vivid light cyan accents (#ade2f5). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#f5ade2) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#040103black
Foreground
#090107black
#fdfcfdwhite
Card
#fcf8fbsnow
#040103black
Card foreground
#090107black
#fdfcfdwhite
Popover
#fcf8fbsnow
#040103black
Popover foreground
#090107black
#fdfcfdwhite
Primary
#f5ade2plum
#f5ade2plum
Primary foreground
#640c4dpurple
#640c4dpurple
Secondary
#e2f5adpalegoldenrod
#e2f5adpalegoldenrod
Secondary foreground
#070901black
#070901black
Muted
#e4e6e0gainsboro
#1d1f19black
Muted foreground
#585a53dimgray
#aaaca5darkgray
Accent
#ade2f5paleturquoise
#ade2f5paleturquoise
Accent foreground
#0c4d64darkslategray
#0c4d64darkslategray
Destructive
#cb1201firebrick
#fe1b06red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5ade2plum
#f5ade2plum

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.02:1AAA
Secondary button17.11:1AAA
Muted text5.55:1AA
Accent6.62:1AA
Destructive5.79:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.02:1AAA
Secondary button17.11:1AAA
Muted text7.25:1AAA
Accent6.62:1AA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 334.613);
  --foreground: oklch(0.104 0.033 335.469);
  --muted: oklch(0.921 0.008 118.712);
  --muted-foreground: oklch(0.464 0.011 118.989);
  --popover: oklch(0.983 0.005 334.613);
  --popover-foreground: oklch(0.104 0.033 335.469);
  --card: oklch(0.983 0.005 334.613);
  --card-foreground: oklch(0.104 0.033 335.469);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.832 0.108 336.659);
  --primary-foreground: oklch(0.346 0.137 342.061);
  --secondary: oklch(0.94 0.095 120.396);
  --secondary-foreground: oklch(0.133 0.026 118.676);
  --accent: oklch(0.882 0.061 222.238);
  --accent-foreground: oklch(0.393 0.072 228.668);
  --destructive: oklch(0.534 0.212 30.149);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.832 0.108 336.659);
  --chart-1: oklch(0.832 0.108 336.659);
  --chart-2: oklch(0.94 0.095 120.396);
  --chart-3: oklch(0.882 0.061 222.238);
  --chart-4: oklch(0.949 0.08 120.069);
  --chart-5: oklch(0.831 0.112 336.737);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.018 335.187);
  --foreground: oklch(0.992 0.002 334.565);
  --muted: oklch(0.235 0.011 119.365);
  --muted-foreground: oklch(0.74 0.01 118.802);
  --popover: oklch(0.085 0.018 335.187);
  --popover-foreground: oklch(0.992 0.002 334.565);
  --card: oklch(0.085 0.018 335.187);
  --card-foreground: oklch(0.992 0.002 334.565);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.832 0.108 336.659);
  --primary-foreground: oklch(0.346 0.137 342.061);
  --secondary: oklch(0.94 0.095 120.396);
  --secondary-foreground: oklch(0.133 0.026 118.676);
  --accent: oklch(0.882 0.061 222.238);
  --accent-foreground: oklch(0.393 0.072 228.668);
  --destructive: oklch(0.632 0.251 29.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.832 0.108 336.659);
  --chart-1: oklch(0.832 0.108 336.659);
  --chart-2: oklch(0.94 0.095 120.396);
  --chart-3: oklch(0.882 0.061 222.238);
  --chart-4: oklch(0.949 0.08 120.069);
  --chart-5: oklch(0.831 0.112 336.737);
}