Tasty for shadcn/ui

Tasty is a shadcn/ui theme built around a pink primary color (#8f1958) with red accents (#8f191d). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#8f1958) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fcf8fasnow
#040103black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf8fasnow
#040103black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf8fasnow
#040103black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#8f1958purple
#8f1958purple
Primary foreground
#fae1eemistyrose
#fae1eemistyrose
Secondary
#8b198fdarkmagenta
#8b198fdarkmagenta
Secondary foreground
#f9e1falavenderblush
#f9e1falavenderblush
Muted
#e8d3e9gainsboro
#2c162cblack
Muted foreground
#4b484bdarkslategray
#b6b4b7silver
Accent
#8f191dbrown
#8f191dbrown
Accent foreground
#fae1e1mistyrose
#fae1e1mistyrose
Destructive
#c52f11firebrick
#ec4422orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8f1958purple
#8f1958purple

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button6.96:1AA
Secondary button6.51:1AA
Muted text6.40:1AA
Accent7.26:1AAA
Destructive5.53:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.96:1AA
Secondary button6.51:1AA
Muted text8.11:1AAA
Accent7.26:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 343.57);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.038 324.889);
  --muted-foreground: oklch(0.407 0.006 324.714);
  --popover: oklch(0.983 0.005 343.57);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 343.57);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.438 0.161 353.982);
  --primary-foreground: oklch(0.933 0.032 344.293);
  --secondary: oklch(0.46 0.194 326.633);
  --secondary-foreground: oklch(0.936 0.042 324.9);
  --accent: oklch(0.423 0.153 25.371);
  --accent-foreground: oklch(0.929 0.028 15.354);
  --destructive: oklch(0.541 0.19 32.715);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.438 0.161 353.982);
  --chart-1: oklch(0.438 0.161 353.982);
  --chart-2: oklch(0.46 0.194 326.633);
  --chart-3: oklch(0.423 0.153 25.371);
  --chart-4: oklch(0.49 0.208 326.636);
  --chart-5: oklch(0.441 0.165 354.479);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.014 343.368);
  --foreground: oklch(0.992 0.002 343.485);
  --muted: oklch(0.24 0.052 325.845);
  --muted-foreground: oklch(0.772 0.005 324.662);
  --popover: oklch(0.085 0.014 343.368);
  --popover-foreground: oklch(0.992 0.002 343.485);
  --card: oklch(0.085 0.014 343.368);
  --card-foreground: oklch(0.992 0.002 343.485);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.438 0.161 353.982);
  --primary-foreground: oklch(0.933 0.032 344.293);
  --secondary: oklch(0.46 0.194 326.633);
  --secondary-foreground: oklch(0.936 0.042 324.9);
  --accent: oklch(0.423 0.153 25.371);
  --accent-foreground: oklch(0.929 0.028 15.354);
  --destructive: oklch(0.628 0.209 33.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.438 0.161 353.982);
  --chart-1: oklch(0.438 0.161 353.982);
  --chart-2: oklch(0.46 0.194 326.633);
  --chart-3: oklch(0.423 0.153 25.371);
  --chart-4: oklch(0.49 0.208 326.636);
  --chart-5: oklch(0.441 0.165 354.479);
}