Cultivated for shadcn/ui

Cultivated is a shadcn/ui theme built around a vivid purple primary color (#a3008d) with vivid pink accents (#a3003c). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#a3008d) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fefbfdsnow
#070307black
Foreground
#090208black
#fbf9fbsnow
Card
#fefbfdsnow
#070307black
Card foreground
#090208black
#fbf9fbsnow
Popover
#fefbfdsnow
#070307black
Popover foreground
#090208black
#fbf9fbsnow
Primary
#a3008ddarkmagenta
#a3008ddarkmagenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6700a3purple
#6700a3purple
Secondary foreground
#f0d6fflavender
#f0d6fflavender
Muted
#ebe7eelavender
#151118black
Muted foreground
#4e4653darkslategray
#b4acb9darkgray
Accent
#a3003cfirebrick
#a3003cfirebrick
Accent foreground
#ffd6e5mistyrose
#ffd6e5mistyrose
Destructive
#892d0bsaddlebrown
#ef6d3etomato
Destructive foreground
#fbd8cbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3008ddarkmagenta
#a3008ddarkmagenta

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button7.12:1AAA
Secondary button7.46:1AAA
Muted text7.41:1AAA
Accent6.09:1AA
Destructive6.48:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.12:1AAA
Secondary button7.46:1AAA
Muted text8.47:1AAA
Accent6.09:1AA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 329.726);
  --foreground: oklch(0.106 0.03 331.088);
  --muted: oklch(0.934 0.01 313.541);
  --muted-foreground: oklch(0.408 0.022 313.268);
  --popover: oklch(0.991 0.003 329.726);
  --popover-foreground: oklch(0.106 0.03 331.088);
  --card: oklch(0.991 0.003 329.726);
  --card-foreground: oklch(0.106 0.03 331.088);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.489 0.217 335.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.411 0.213 305.303);
  --secondary-foreground: oklch(0.91 0.061 313.194);
  --accent: oklch(0.457 0.183 11.676);
  --accent-foreground: oklch(0.915 0.049 354.066);
  --destructive: oklch(0.43 0.132 37.876);
  --destructive-foreground: oklch(0.908 0.043 41.018);
  --ring: oklch(0.489 0.217 335.87);
  --chart-1: oklch(0.489 0.217 335.87);
  --chart-2: oklch(0.411 0.213 305.303);
  --chart-3: oklch(0.457 0.183 11.676);
  --chart-4: oklch(0.438 0.228 305.118);
  --chart-5: oklch(0.494 0.22 335.986);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.016 330.48);
  --foreground: oklch(0.984 0.003 329.719);
  --muted: oklch(0.186 0.015 313.127);
  --muted-foreground: oklch(0.756 0.019 313.449);
  --popover: oklch(0.11 0.016 330.48);
  --popover-foreground: oklch(0.984 0.003 329.719);
  --card: oklch(0.11 0.016 330.48);
  --card-foreground: oklch(0.984 0.003 329.719);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.489 0.217 335.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.411 0.213 305.303);
  --secondary-foreground: oklch(0.91 0.061 313.194);
  --accent: oklch(0.457 0.183 11.676);
  --accent-foreground: oklch(0.915 0.049 354.066);
  --destructive: oklch(0.685 0.173 39.71);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.489 0.217 335.87);
  --chart-1: oklch(0.489 0.217 335.87);
  --chart-2: oklch(0.411 0.213 305.303);
  --chart-3: oklch(0.457 0.183 11.676);
  --chart-4: oklch(0.438 0.228 305.118);
  --chart-5: oklch(0.494 0.22 335.986);
}