Genie for shadcn/ui

Genie is a shadcn/ui theme built around a near-white primary color (#eeeded) with muted light orange accents (#ece6e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#eeeded) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#170803black
#fbf9f8snow
Card
#fcfcfcsnow
#070403black
Card foreground
#120602black
#fdfcfcsnow
Popover
#fcfcfcsnow
#070403black
Popover foreground
#120602black
#fdfcfcsnow
Primary
#eeededwhitesmoke
#eeededwhitesmoke
Primary foreground
#565352dimgray
#565352dimgray
Secondary
#ece6e4linen
#322825darkslategray
Secondary foreground
#5c4942darkolivegreen
#cdc0bcsilver
Muted
#e4d4celightgrey
#31211bblack
Muted foreground
#5f5653dimgray
#aca3a0darkgray
Accent
#ece6e4linen
#322825darkslategray
Accent foreground
#5c4942darkolivegreen
#cdc0bcsilver
Destructive
#79140bmaroon
#e52715crimson
Destructive foreground
#f9c3belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eeededwhitesmoke
#eeededwhitesmoke

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.52:1AAA
Primary button6.51:1AA
Secondary button6.85:1AA
Muted text4.94:1AA
Accent6.85:1AA
Destructive7.04:1AAA
Dark mode
Text on background19.72:1AAA
Text on card19.92:1AAA
Primary button6.51:1AA
Secondary button8.07:1AAA
Muted text6.22:1AA
Accent8.07:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.156 0.031 47.779);
  --muted: oklch(0.88 0.02 41.144);
  --muted-foreground: oklch(0.462 0.013 41.11);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.142 0.027 50.23);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.142 0.027 50.23);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.946 0.001 41.299);
  --primary-foreground: oklch(0.446 0.004 41.242);
  --secondary: oklch(0.93 0.006 41.25);
  --secondary-foreground: oklch(0.423 0.028 40.949);
  --accent: oklch(0.93 0.006 41.25);
  --accent-foreground: oklch(0.423 0.028 40.949);
  --destructive: oklch(0.375 0.136 29.95);
  --destructive-foreground: oklch(0.863 0.063 24.443);
  --ring: oklch(0.946 0.001 41.299);
  --chart-1: oklch(0.946 0.001 41.299);
  --chart-2: oklch(0.93 0.006 41.25);
  --chart-3: oklch(0.93 0.006 41.25);
  --chart-4: oklch(0.953 0.004 41.269);
  --chart-5: oklch(0.946 0.002 41.291);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.006 45.497);
  --foreground: oklch(0.984 0.002 41.284);
  --muted: oklch(0.266 0.028 40.839);
  --muted-foreground: oklch(0.722 0.012 41.184);
  --popover: oklch(0.114 0.008 45.497);
  --popover-foreground: oklch(0.992 0.001 41.295);
  --card: oklch(0.114 0.008 45.497);
  --card-foreground: oklch(0.992 0.001 41.295);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.946 0.001 41.299);
  --primary-foreground: oklch(0.446 0.004 41.242);
  --secondary: oklch(0.288 0.016 40.989);
  --secondary-foreground: oklch(0.818 0.016 41.163);
  --accent: oklch(0.288 0.016 40.989);
  --accent-foreground: oklch(0.818 0.016 41.163);
  --destructive: oklch(0.592 0.224 30.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.001 41.299);
  --chart-1: oklch(0.946 0.001 41.299);
  --chart-2: oklch(0.288 0.016 40.989);
  --chart-3: oklch(0.288 0.016 40.989);
  --chart-4: oklch(0.318 0.018 40.981);
  --chart-5: oklch(0.946 0.002 41.291);
}