Want for shadcn/ui

Want is a shadcn/ui theme built around a deep yellow primary color (#252313) with muted light yellow accents (#e7e6df). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#252313) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0c0b03black
#fbfbf8snow
Card
#fcfcfcsnow
#030303black
Card foreground
#080702black
#fdfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#080702black
#fdfdfcwhite
Primary
#252313black
#252313black
Primary foreground
#aaa25adarkkhaki
#aaa25adarkkhaki
Secondary
#e7e6dfgainsboro
#171612black
Secondary foreground
#55533fdarkolivegreen
#b7b5a4darkgray
Muted
#f5f4f0whitesmoke
#0f0f0ablack
Muted foreground
#737159dimgray
#a6a48cdarkgray
Accent
#e7e6dfgainsboro
#171612black
Accent foreground
#55533fdarkolivegreen
#b7b5a4darkgray
Destructive
#a81a0bfirebrick
#d8220efirebrick
Destructive foreground
#fde9e7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#252313black
#252313black

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.02:1AA
Secondary button6.24:1AA
Muted text4.50:1AA
Accent6.24:1AA
Destructive6.38:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.31:1AAA
Primary button6.02:1AA
Secondary button8.74:1AAA
Muted text7.61:1AAA
Accent8.74:1AAA
Destructive5.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.019 104.113);
  --muted: oklch(0.967 0.006 101.382);
  --muted-foreground: oklch(0.543 0.036 102.234);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.129 0.017 104.445);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.129 0.017 104.445);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.254 0.028 102.728);
  --primary-foreground: oklch(0.703 0.094 102.907);
  --secondary: oklch(0.924 0.01 101.46);
  --secondary-foreground: oklch(0.438 0.031 102.308);
  --accent: oklch(0.924 0.01 101.46);
  --accent-foreground: oklch(0.438 0.031 102.308);
  --destructive: oklch(0.471 0.177 30.507);
  --destructive-foreground: oklch(0.95 0.022 25.196);
  --ring: oklch(0.254 0.028 102.728);
  --chart-1: oklch(0.254 0.028 102.728);
  --chart-2: oklch(0.924 0.01 101.46);
  --chart-3: oklch(0.924 0.01 101.46);
  --chart-4: oklch(0.945 0.007 101.41);
  --chart-5: oklch(0.257 0.03 102.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.003 101.342);
  --muted: oklch(0.166 0.009 102.072);
  --muted-foreground: oklch(0.713 0.034 101.991);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 101.314);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 101.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.254 0.028 102.728);
  --primary-foreground: oklch(0.703 0.094 102.907);
  --secondary: oklch(0.201 0.009 101.927);
  --secondary-foreground: oklch(0.771 0.025 101.774);
  --accent: oklch(0.201 0.009 101.927);
  --accent-foreground: oklch(0.771 0.025 101.774);
  --destructive: oklch(0.565 0.216 30.475);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.254 0.028 102.728);
  --chart-1: oklch(0.254 0.028 102.728);
  --chart-2: oklch(0.201 0.009 101.927);
  --chart-3: oklch(0.201 0.009 101.927);
  --chart-4: oklch(0.237 0.011 101.995);
  --chart-5: oklch(0.257 0.03 102.795);
}