Cultivated for shadcn/ui

Cultivated is a shadcn/ui theme built around a near-black primary color (#1f1d20) with near-black accents (#1d201f). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1f1d20) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#0f0411black
#fdfcfdwhite
Card
#fcfcfcsnow
#070307black
Card foreground
#0b030dblack
#ffffffwhite
Popover
#fcfcfcsnow
#070307black
Popover foreground
#0b030dblack
#ffffffwhite
Primary
#1f1d20black
#1f1d20black
Primary foreground
#bab5basilver
#bab5basilver
Secondary
#201f1dblack
#201f1dblack
Secondary foreground
#babab5silver
#babab5silver
Muted
#eeeeecwhitesmoke
#131311black
Muted foreground
#666560dimgray
#9f9e99darkgray
Accent
#1d201fblack
#1d201fblack
Accent foreground
#b5babasilver
#b5babasilver
Destructive
#881d07darkred
#f55c3dtomato
Destructive foreground
#fccec5pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f1d20black
#1f1d20black

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card19.89:1AAA
Primary button8.26:1AAA
Secondary button8.42:1AAA
Muted text5.02:1AA
Accent8.36:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.51:1AAA
Primary button8.26:1AAA
Secondary button8.42:1AAA
Muted text6.95:1AA
Accent8.36:1AAA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.038 321.64);
  --muted: oklch(0.948 0.002 97.294);
  --muted-foreground: oklch(0.508 0.008 97.461);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.12 0.033 322.283);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.12 0.033 322.283);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.236 0.006 320.568);
  --primary-foreground: oklch(0.778 0.01 320.551);
  --secondary: oklch(0.241 0.004 97.469);
  --secondary-foreground: oklch(0.787 0.007 97.373);
  --accent: oklch(0.24 0.004 185.04);
  --accent-foreground: oklch(0.786 0.007 185.232);
  --destructive: oklch(0.41 0.145 32.709);
  --destructive-foreground: oklch(0.889 0.054 31.285);
  --ring: oklch(0.236 0.006 320.568);
  --chart-1: oklch(0.236 0.006 320.568);
  --chart-2: oklch(0.241 0.004 97.469);
  --chart-3: oklch(0.24 0.004 185.04);
  --chart-4: oklch(0.273 0.005 97.483);
  --chart-5: oklch(0.234 0.01 320.595);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.016 322.068);
  --foreground: oklch(0.992 0.002 320.534);
  --muted: oklch(0.184 0.004 97.513);
  --muted-foreground: oklch(0.697 0.007 97.397);
  --popover: oklch(0.108 0.02 322.068);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.02 322.068);
  --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.236 0.006 320.568);
  --primary-foreground: oklch(0.778 0.01 320.551);
  --secondary: oklch(0.241 0.004 97.469);
  --secondary-foreground: oklch(0.787 0.007 97.373);
  --accent: oklch(0.24 0.004 185.04);
  --accent-foreground: oklch(0.786 0.007 185.232);
  --destructive: oklch(0.671 0.194 33.197);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.236 0.006 320.568);
  --chart-1: oklch(0.236 0.006 320.568);
  --chart-2: oklch(0.241 0.004 97.469);
  --chart-3: oklch(0.24 0.004 185.04);
  --chart-4: oklch(0.273 0.005 97.483);
  --chart-5: oklch(0.234 0.01 320.595);
}