Tasty for shadcn/ui

Tasty is a shadcn/ui theme built around a neutral gray primary color (#606c69) with neutral gray accents (#60696c). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#606c69) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#fbfefdwhite
#020807black
Foreground
#010403black
#f6f9f8whitesmoke
Card
#fbfefdwhite
#020807black
Card foreground
#010403black
#f6f9f8whitesmoke
Popover
#fbfefdwhite
#020807black
Popover foreground
#010403black
#f6f9f8whitesmoke
Primary
#606c69dimgray
#606c69dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#606c63dimgray
#606c63dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2e9e4gainsboro
#161d18black
Muted foreground
#424843darkslategray
#b7bdb9silver
Accent
#60696cdimgray
#60696cdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ca5216chocolate
#e97135tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#606c69dimgray
#606c69dimgray

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button5.45:1AA
Secondary button5.48:1AA
Muted text7.58:1AAA
Accent5.60:1AA
Destructive4.43:1AA Large
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button5.45:1AA
Secondary button5.48:1AA
Muted text9.00:1AAA
Accent5.60:1AA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 178.682);
  --foreground: oklch(0.099 0.012 178.886);
  --muted: oklch(0.927 0.01 153.067);
  --muted-foreground: oklch(0.394 0.01 152.817);
  --popover: oklch(0.995 0.004 178.682);
  --popover-foreground: oklch(0.099 0.012 178.886);
  --card: oklch(0.995 0.004 178.682);
  --card-foreground: oklch(0.099 0.012 178.886);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.52 0.016 177.89);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.021 152.567);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.012 217.909);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.589 0.166 42.398);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.016 177.89);
  --chart-1: oklch(0.52 0.016 177.89);
  --chart-2: oklch(0.518 0.021 152.567);
  --chart-3: oklch(0.515 0.012 217.909);
  --chart-4: oklch(0.546 0.022 152.562);
  --chart-5: oklch(0.526 0.023 177.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 178.888);
  --foreground: oklch(0.979 0.003 178.698);
  --muted: oklch(0.221 0.014 152.168);
  --muted-foreground: oklch(0.792 0.008 153.065);
  --popover: oklch(0.125 0.015 178.888);
  --popover-foreground: oklch(0.979 0.003 178.698);
  --card: oklch(0.125 0.015 178.888);
  --card-foreground: oklch(0.979 0.003 178.698);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.52 0.016 177.89);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.518 0.021 152.567);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.012 217.909);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.68 0.165 44.643);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.52 0.016 177.89);
  --chart-1: oklch(0.52 0.016 177.89);
  --chart-2: oklch(0.518 0.021 152.567);
  --chart-3: oklch(0.515 0.012 217.909);
  --chart-4: oklch(0.546 0.022 152.562);
  --chart-5: oklch(0.526 0.023 177.45);
}