Cultured for shadcn/ui

Cultured is a shadcn/ui theme built around a deep orange primary color (#4b2316) with deep violet accents (#23164b). The light mode uses a neutral background (#fbf9f8). Dark mode keeps the deep orange primary (#4b2316) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fbf9f8snow
#030202black
Foreground
#170803black
#ffffffwhite
Card
#faf6f5whitesmoke
#070403black
Card foreground
#120602black
#ffffffwhite
Popover
#fbf9f8snow
#030202black
Popover foreground
#170803black
#ffffffwhite
Primary
#4b2316maroon
#4b2316maroon
Primary foreground
#e6bbadlightpink
#e6bbadlightpink
Secondary
#164b23darkgreen
#164b23darkgreen
Secondary foreground
#ade6bbsilver
#ade6bbsilver
Muted
#d7dfd9gainsboro
#202822darkslategray
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#23164bmidnightblue
#23164bmidnightblue
Accent foreground
#bbade6lightsteelblue
#bbade6lightsteelblue
Destructive
#c8110efirebrick
#f02724crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b2316maroon
#4b2316maroon

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.59:1AAA
Primary button7.77:1AAA
Secondary button7.20:1AAA
Muted text4.93:1AA
Accent7.93:1AAA
Destructive5.91:1AA
Dark mode
Text on background20.70:1AAA
Text on card20.41:1AAA
Primary button7.77:1AAA
Secondary button7.20:1AAA
Muted text6.02:1AA
Accent7.93:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 39.49);
  --foreground: oklch(0.155 0.03 45.843);
  --muted: oklch(0.897 0.012 153.657);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.984 0.003 39.49);
  --popover-foreground: oklch(0.155 0.03 45.843);
  --card: oklch(0.976 0.004 39.481);
  --card-foreground: oklch(0.142 0.026 48.096);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.309 0.064 39.016);
  --primary-foreground: oklch(0.826 0.054 39.253);
  --secondary: oklch(0.366 0.086 148.566);
  --secondary-foreground: oklch(0.875 0.084 152.108);
  --accent: oklch(0.253 0.092 289.665);
  --accent-foreground: oklch(0.778 0.083 295.89);
  --destructive: oklch(0.529 0.21 28.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.309 0.064 39.016);
  --chart-1: oklch(0.309 0.064 39.016);
  --chart-2: oklch(0.366 0.086 148.566);
  --chart-3: oklch(0.253 0.092 289.665);
  --chart-4: oklch(0.404 0.097 148.417);
  --chart-5: oklch(0.31 0.067 38.949);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.006 43.56);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.265 0.016 152.837);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.09 0.006 43.56);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.113 0.008 43.56);
  --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.309 0.064 39.016);
  --primary-foreground: oklch(0.826 0.054 39.253);
  --secondary: oklch(0.366 0.086 148.566);
  --secondary-foreground: oklch(0.875 0.084 152.108);
  --accent: oklch(0.253 0.092 289.665);
  --accent-foreground: oklch(0.778 0.083 295.89);
  --destructive: oklch(0.613 0.232 28.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.309 0.064 39.016);
  --chart-1: oklch(0.309 0.064 39.016);
  --chart-2: oklch(0.366 0.086 148.566);
  --chart-3: oklch(0.253 0.092 289.665);
  --chart-4: oklch(0.404 0.097 148.417);
  --chart-5: oklch(0.31 0.067 38.949);
}