Mustard for shadcn/ui

Mustard is a shadcn/ui theme built around a muted green primary color (#7a9984) with muted orange accents (#99847a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#7a9984) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#020804black
#f8fcf9mintcream
Card
#ffffffwhite
#030704black
Card foreground
#020804black
#f8fcf9mintcream
Popover
#ffffffwhite
#030704black
Popover foreground
#020804black
#f8fcf9mintcream
Primary
#7a9984gray
#7a9984gray
Primary foreground
#000000black
#000000black
Secondary
#847a99lightslategray
#847a99lightslategray
Secondary foreground
#000000black
#000000black
Muted
#ece9f1lavender
#100e16black
Muted foreground
#534c61dimgray
#a49eb3darkgray
Accent
#99847agray
#99847agray
Accent foreground
#000000black
#000000black
Destructive
#8e250bsaddlebrown
#e43b11orangered
Destructive foreground
#fbd8d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a9984gray
#7a9984gray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.72:1AA
Secondary button5.24:1AA
Muted text6.79:1AA
Accent5.94:1AA
Destructive6.53:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button6.72:1AA
Secondary button5.24:1AA
Muted text7.41:1AAA
Accent5.94:1AA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.021 156.091);
  --muted: oklch(0.939 0.011 300.569);
  --muted-foreground: oklch(0.432 0.035 299.428);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.021 156.091);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.124 0.021 156.091);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.653 0.046 155.087);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.6 0.047 299.467);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.63 0.029 46.39);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.431 0.145 34.231);
  --destructive-foreground: oklch(0.91 0.041 34.324);
  --ring: oklch(0.653 0.046 155.087);
  --chart-1: oklch(0.653 0.046 155.087);
  --chart-2: oklch(0.6 0.047 299.467);
  --chart-3: oklch(0.63 0.029 46.39);
  --chart-4: oklch(0.628 0.043 299.62);
  --chart-5: oklch(0.659 0.056 154.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.015 156.236);
  --foreground: oklch(0.987 0.005 156.469);
  --muted: oklch(0.17 0.017 299.06);
  --muted-foreground: oklch(0.711 0.031 300.054);
  --popover: oklch(0.122 0.015 156.236);
  --popover-foreground: oklch(0.987 0.005 156.469);
  --card: oklch(0.122 0.015 156.236);
  --card-foreground: oklch(0.987 0.005 156.469);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.653 0.046 155.087);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.6 0.047 299.467);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.63 0.029 46.39);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.605 0.21 33.836);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.046 155.087);
  --chart-1: oklch(0.653 0.046 155.087);
  --chart-2: oklch(0.6 0.047 299.467);
  --chart-3: oklch(0.63 0.029 46.39);
  --chart-4: oklch(0.628 0.043 299.62);
  --chart-5: oklch(0.659 0.056 154.747);
}