Yellowish for shadcn/ui

Yellowish is a shadcn/ui theme built around a green primary color (#74b569) with green accents (#69b583). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#74b569) on a green-tinted background (#060a05).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#060a05black
Foreground
#061005black
#fcfdfcwhite
Card
#f8fcf8mintcream
#060a05black
Card foreground
#061005black
#fcfdfcwhite
Popover
#f8fcf8mintcream
#060a05black
Popover foreground
#061005black
#fcfdfcwhite
Primary
#74b569darkseagreen
#74b569darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#9ab569darkkhaki
#9ab569darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#ecefe6linen
#161910black
Muted foreground
#5e6354dimgray
#a5ab9cdarkgray
Accent
#69b583cadetblue
#69b583cadetblue
Accent foreground
#000000black
#000000black
Destructive
#920e07darkred
#f41c10red
Destructive foreground
#fdd1cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#74b569darkseagreen
#74b569darkseagreen

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button8.55:1AAA
Secondary button9.18:1AAA
Muted text5.33:1AA
Accent8.53:1AAA
Destructive6.63:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button8.55:1AAA
Secondary button9.18:1AAA
Muted text7.54:1AAA
Accent8.53:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 141.049);
  --foreground: oklch(0.158 0.029 139.715);
  --muted: oklch(0.948 0.013 122.428);
  --muted-foreground: oklch(0.491 0.024 122.979);
  --popover: oklch(0.987 0.007 141.049);
  --popover-foreground: oklch(0.158 0.029 139.715);
  --card: oklch(0.987 0.007 141.049);
  --card-foreground: oklch(0.158 0.029 139.715);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.71 0.126 140.741);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.735 0.106 124.708);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.71 0.106 154.265);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.421 0.164 29.454);
  --destructive-foreground: oklch(0.897 0.05 21.665);
  --ring: oklch(0.71 0.126 140.741);
  --chart-1: oklch(0.71 0.126 140.741);
  --chart-2: oklch(0.735 0.106 124.708);
  --chart-3: oklch(0.71 0.106 154.265);
  --chart-4: oklch(0.753 0.099 124.45);
  --chart-5: oklch(0.717 0.136 140.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 139.92);
  --foreground: oklch(0.993 0.002 141.061);
  --muted: oklch(0.207 0.019 123.669);
  --muted-foreground: oklch(0.731 0.022 122.678);
  --popover: oklch(0.138 0.017 139.92);
  --popover-foreground: oklch(0.993 0.002 141.061);
  --card: oklch(0.138 0.017 139.92);
  --card-foreground: oklch(0.993 0.002 141.061);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.71 0.126 140.741);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.735 0.106 124.708);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.71 0.106 154.265);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.614 0.242 29.45);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.71 0.126 140.741);
  --chart-1: oklch(0.71 0.126 140.741);
  --chart-2: oklch(0.735 0.106 124.708);
  --chart-3: oklch(0.71 0.106 154.265);
  --chart-4: oklch(0.753 0.099 124.45);
  --chart-5: oklch(0.717 0.136 140.733);
}