Yew for shadcn/ui

Yew is a shadcn/ui theme built around a neutral gray primary color (#5c6a67) with neutral gray accents (#6a675c). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the neutral gray primary (#5c6a67) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#050a09black
Foreground
#031712black
#fcfdfdwhite
Card
#f7fdfbmintcream
#050a09black
Card foreground
#031712black
#fcfdfdwhite
Popover
#f7fdfbmintcream
#050a09black
Popover foreground
#031712black
#fcfdfdwhite
Primary
#5c6a67dimgray
#5c6a67dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#675c6adimgray
#675c6adimgray
Secondary foreground
#fdfcfdwhite
#fdfcfdwhite
Muted
#eae4eclavender
#19131bblack
Muted foreground
#464346darkslategray
#bbb9bcsilver
Accent
#6a675cdimgray
#6a675cdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b61611firebrick
#d71a14firebrick
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c6a67dimgray
#5c6a67dimgray

Contrast

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

Light mode
Text on background17.95:1AAA
Text on card17.95:1AAA
Primary button5.62:1AA
Secondary button6.15:1AA
Muted text7.81:1AAA
Accent5.64:1AA
Destructive6.51:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button5.62:1AA
Secondary button6.15:1AA
Muted text9.37:1AAA
Accent5.64:1AA
Destructive5.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 180.778);
  --foreground: oklch(0.184 0.029 176.452);
  --muted: oklch(0.926 0.013 318.316);
  --muted-foreground: oklch(0.388 0.005 318.316);
  --popover: oklch(0.989 0.006 180.778);
  --popover-foreground: oklch(0.184 0.029 176.452);
  --card: oklch(0.989 0.006 180.778);
  --card-foreground: oklch(0.184 0.029 176.452);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.513 0.018 179.96);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.492 0.026 318.278);
  --secondary-foreground: oklch(0.992 0.001 318.33);
  --accent: oklch(0.514 0.017 92.946);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.496 0.192 28.906);
  --destructive-foreground: oklch(0.99 0.004 19.667);
  --ring: oklch(0.513 0.018 179.96);
  --chart-1: oklch(0.513 0.018 179.96);
  --chart-2: oklch(0.492 0.026 318.278);
  --chart-3: oklch(0.514 0.017 92.946);
  --chart-4: oklch(0.518 0.027 318.278);
  --chart-5: oklch(0.518 0.025 179.541);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 180.95);
  --foreground: oklch(0.993 0.001 180.934);
  --muted: oklch(0.198 0.019 318.23);
  --muted-foreground: oklch(0.788 0.004 318.324);
  --popover: oklch(0.139 0.011 180.95);
  --popover-foreground: oklch(0.993 0.001 180.934);
  --card: oklch(0.139 0.011 180.95);
  --card-foreground: oklch(0.993 0.001 180.934);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.513 0.018 179.96);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.492 0.026 318.278);
  --secondary-foreground: oklch(0.992 0.001 318.33);
  --accent: oklch(0.514 0.017 92.946);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.56 0.218 28.984);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.513 0.018 179.96);
  --chart-1: oklch(0.513 0.018 179.96);
  --chart-2: oklch(0.492 0.026 318.278);
  --chart-3: oklch(0.514 0.017 92.946);
  --chart-4: oklch(0.518 0.027 318.278);
  --chart-5: oklch(0.518 0.025 179.541);
}