Tasty for shadcn/ui

Tasty is a shadcn/ui theme built around a vivid deep indigo primary color (#03058c) with vivid deep yellow accents (#8c8a03). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep indigo primary (#03058c) on an indigo-tinted background (#05050b).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#05050bblack
Foreground
#030416black
#f8f8fcghostwhite
Card
#fbfbfeghostwhite
#05050bblack
Card foreground
#030416black
#f8f8fcghostwhite
Popover
#fbfbfeghostwhite
#05050bblack
Popover foreground
#030416black
#f8f8fcghostwhite
Primary
#03058cdarkblue
#03058cdarkblue
Primary foreground
#c3c4felightsteelblue
#c3c4felightsteelblue
Secondary
#8c8a03olive
#8c8a03olive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebebe0beige
#1f1f14black
Muted foreground
#5d5c4cdarkolivegreen
#b3b3a2darkgray
Accent
#8c8a03olive
#8c8a03olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d12415firebrick
#e32816crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03058cdarkblue
#03058cdarkblue

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button9.00:1AAA
Secondary button3.66:1AA Large
Muted text5.63:1AA
Accent3.66:1AA Large
Destructive5.28:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button9.00:1AAA
Secondary button3.66:1AA Large
Muted text7.82:1AAA
Accent3.66:1AA Large
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 285.541);
  --foreground: oklch(0.12 0.044 276.173);
  --muted: oklch(0.937 0.015 105.893);
  --muted-foreground: oklch(0.471 0.026 106.547);
  --popover: oklch(0.989 0.004 285.541);
  --popover-foreground: oklch(0.12 0.044 276.173);
  --card: oklch(0.989 0.004 285.541);
  --card-foreground: oklch(0.12 0.044 276.173);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.294 0.197 264.831);
  --primary-foreground: oklch(0.839 0.08 283.766);
  --secondary: oklch(0.614 0.132 108.554);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.614 0.132 108.554);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.554 0.208 30.062);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.294 0.197 264.831);
  --chart-1: oklch(0.294 0.197 264.831);
  --chart-2: oklch(0.614 0.132 108.554);
  --chart-3: oklch(0.614 0.132 108.554);
  --chart-4: oklch(0.662 0.142 108.546);
  --chart-5: oklch(0.295 0.201 264.279);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.017 282.454);
  --foreground: oklch(0.981 0.004 285.537);
  --muted: oklch(0.235 0.02 107.027);
  --muted-foreground: oklch(0.762 0.023 106.143);
  --popover: oklch(0.116 0.017 282.454);
  --popover-foreground: oklch(0.981 0.004 285.537);
  --card: oklch(0.116 0.017 282.454);
  --card-foreground: oklch(0.981 0.004 285.537);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.294 0.197 264.831);
  --primary-foreground: oklch(0.839 0.08 283.766);
  --secondary: oklch(0.614 0.132 108.554);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.614 0.132 108.554);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.59 0.222 30.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.294 0.197 264.831);
  --chart-1: oklch(0.294 0.197 264.831);
  --chart-2: oklch(0.614 0.132 108.554);
  --chart-3: oklch(0.614 0.132 108.554);
  --chart-4: oklch(0.662 0.142 108.546);
  --chart-5: oklch(0.295 0.201 264.279);
}