Tasty for shadcn/ui

Tasty is a shadcn/ui theme built around a vivid blue primary color (#1074b2) with muted blue accents (#afc3cf). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#1074b2) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020303black
Foreground
#000000black
#fcfdfdwhite
Card
#fbfdfewhite
#020303black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfdfewhite
#020303black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#1074b2darkcyan
#1074b2darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbd6dclightgrey
#283239darkslategray
Secondary foreground
#2f3d46darkslategray
#c0ccd3lightgrey
Muted
#e9ebeclavender
#131516black
Muted foreground
#53646edimgray
#91a1acdarkgray
Accent
#afc3cflightsteelblue
#364b59darkslategray
Accent foreground
#1d2830darkslategray
#d9e2e8gainsboro
Destructive
#812908saddlebrown
#f15a22chocolate
Destructive foreground
#fbd0c1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1074b2darkcyan
#1074b2darkcyan

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button5.04:1AA
Secondary button7.54:1AAA
Muted text5.14:1AA
Accent8.24:1AAA
Destructive6.60:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button5.04:1AA
Secondary button7.94:1AAA
Muted text6.89:1AA
Accent6.89:1AA
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 234.537);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.939 0.003 234.553);
  --muted-foreground: oklch(0.493 0.026 235.362);
  --popover: oklch(0.992 0.002 234.537);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.002 234.537);
  --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.538 0.128 244.078);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.869 0.015 234.755);
  --secondary-foreground: oklch(0.352 0.025 235.685);
  --accent: oklch(0.806 0.028 235.026);
  --accent-foreground: oklch(0.271 0.021 235.874);
  --destructive: oklch(0.411 0.129 37.673);
  --destructive-foreground: oklch(0.891 0.053 40.97);
  --ring: oklch(0.538 0.128 244.078);
  --chart-1: oklch(0.538 0.128 244.078);
  --chart-2: oklch(0.869 0.015 234.755);
  --chart-3: oklch(0.806 0.028 235.026);
  --chart-4: oklch(0.892 0.012 234.703);
  --chart-5: oklch(0.541 0.131 244.587);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.005 230.714);
  --foreground: oklch(0.992 0.001 234.524);
  --muted: oklch(0.193 0.005 234.856);
  --muted-foreground: oklch(0.7 0.024 235.035);
  --popover: oklch(0.092 0.005 230.714);
  --popover-foreground: oklch(0.992 0.001 234.524);
  --card: oklch(0.092 0.005 230.714);
  --card-foreground: oklch(0.992 0.001 234.524);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.538 0.128 244.078);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.312 0.019 235.501);
  --secondary-foreground: oklch(0.837 0.017 234.797);
  --accent: oklch(0.402 0.034 236.037);
  --accent-foreground: oklch(0.908 0.012 234.705);
  --destructive: oklch(0.66 0.197 38.313);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.538 0.128 244.078);
  --chart-1: oklch(0.538 0.128 244.078);
  --chart-2: oklch(0.312 0.019 235.501);
  --chart-3: oklch(0.402 0.034 236.037);
  --chart-4: oklch(0.342 0.021 235.538);
  --chart-5: oklch(0.541 0.131 244.587);
}