Taste for shadcn/ui

Taste is a shadcn/ui theme built around a neutral gray primary color (#b8c1ba) with neutral gray accents (#c1bab8). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#b8c1ba) on a green-tinted background (#050a06).

Color palette

TokenLightDark
Background
#fbfefbwhite
#050a06black
Foreground
#041007black
#f9fbf9mintcream
Card
#f6fdf8mintcream
#070e08black
Card foreground
#030c05black
#fcfdfcwhite
Popover
#fbfefbwhite
#050a06black
Popover foreground
#041007black
#f9fbf9mintcream
Primary
#b8c1basilver
#b8c1basilver
Primary foreground
#212622black
#212622black
Secondary
#bab8c1silver
#bab8c1silver
Secondary foreground
#222126black
#222126black
Muted
#eae8f2lavender
#0f0d17black
Muted foreground
#494752darkslategray
#afadb8darkgray
Accent
#c1bab8silver
#c1bab8silver
Accent foreground
#262221black
#262221black
Destructive
#9d1510firebrick
#e82d26crimson
Destructive foreground
#fce4e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8c1basilver
#b8c1basilver

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.25:1AAA
Primary button8.35:1AAA
Secondary button8.15:1AAA
Muted text7.50:1AAA
Accent8.23:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.18:1AAA
Primary button8.35:1AAA
Secondary button8.15:1AAA
Muted text8.72:1AAA
Accent8.23:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 151.331);
  --foreground: oklch(0.157 0.028 149.842);
  --muted: oklch(0.935 0.014 294.545);
  --muted-foreground: oklch(0.404 0.018 293.993);
  --popover: oklch(0.994 0.005 151.331);
  --popover-foreground: oklch(0.157 0.028 149.842);
  --card: oklch(0.988 0.011 151.253);
  --card-foreground: oklch(0.141 0.024 150.386);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.803 0.015 151.143);
  --primary-foreground: oklch(0.263 0.01 150.826);
  --secondary: oklch(0.787 0.013 294.514);
  --secondary-foreground: oklch(0.252 0.009 294.125);
  --accent: oklch(0.794 0.009 32.663);
  --accent-foreground: oklch(0.257 0.006 32.683);
  --destructive: oklch(0.447 0.17 28.708);
  --destructive-foreground: oklch(0.938 0.026 20.013);
  --ring: oklch(0.803 0.015 151.143);
  --chart-1: oklch(0.803 0.015 151.143);
  --chart-2: oklch(0.787 0.013 294.514);
  --chart-3: oklch(0.794 0.009 32.663);
  --chart-4: oklch(0.812 0.011 294.561);
  --chart-5: oklch(0.805 0.021 151.03);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.015 150.84);
  --foreground: oklch(0.986 0.003 151.365);
  --muted: oklch(0.165 0.022 292.274);
  --muted-foreground: oklch(0.753 0.015 294.446);
  --popover: oklch(0.137 0.015 150.84);
  --popover-foreground: oklch(0.986 0.003 151.365);
  --card: oklch(0.152 0.017 150.449);
  --card-foreground: oklch(0.993 0.001 151.386);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.803 0.015 151.143);
  --primary-foreground: oklch(0.263 0.01 150.826);
  --secondary: oklch(0.787 0.013 294.514);
  --secondary-foreground: oklch(0.252 0.009 294.125);
  --accent: oklch(0.794 0.009 32.663);
  --accent-foreground: oklch(0.257 0.006 32.683);
  --destructive: oklch(0.603 0.222 28.319);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.803 0.015 151.143);
  --chart-1: oklch(0.803 0.015 151.143);
  --chart-2: oklch(0.787 0.013 294.514);
  --chart-3: oklch(0.794 0.009 32.663);
  --chart-4: oklch(0.812 0.011 294.561);
  --chart-5: oklch(0.805 0.021 151.03);
}