Tasty for shadcn/ui

Tasty is a shadcn/ui theme built around a deep orange primary color (#34200e) with muted light orange accents (#d7c9bc). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#34200e) on an orange-tinted background (#0a0705).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0a0705black
Foreground
#130c06black
#ffffffwhite
Card
#fdfaf7snow
#0d0a07black
Card foreground
#100a05black
#ffffffwhite
Popover
#fefcfbsnow
#0a0705black
Popover foreground
#130c06black
#ffffffwhite
Primary
#34200eblack
#34200eblack
Primary foreground
#e1b893burlywood
#e1b893burlywood
Secondary
#e1dbd6gainsboro
#36302bdarkslategray
Secondary foreground
#4c4238darkslategray
#cfc9c4silver
Muted
#e4e0ddgainsboro
#221e1bblack
Muted foreground
#4c4239darkslategray
#c6bcb3silver
Accent
#d7c9bcsilver
#564639darkolivegreen
Accent foreground
#3d3024darkslategray
#e7e0dagainsboro
Destructive
#9e1b0afirebrick
#eb290forangered
Destructive foreground
#fde1ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#34200eblack
#34200eblack

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.87:1AAA
Primary button8.45:1AAA
Secondary button7.13:1AAA
Muted text7.46:1AAA
Accent7.84:1AAA
Destructive6.47:1AA
Dark mode
Text on background20.04:1AAA
Text on card19.73:1AAA
Primary button8.45:1AAA
Secondary button7.92:1AAA
Muted text8.83:1AAA
Accent6.87:1AA
Destructive4.33: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.993 0.002 64.058);
  --foreground: oklch(0.163 0.018 64.69);
  --muted: oklch(0.909 0.006 64.009);
  --muted-foreground: oklch(0.385 0.02 63.389);
  --popover: oklch(0.993 0.002 64.058);
  --popover-foreground: oklch(0.163 0.018 64.69);
  --card: oklch(0.986 0.005 64.027);
  --card-foreground: oklch(0.15 0.016 67.963);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.264 0.042 60.534);
  --primary-foreground: oklch(0.809 0.069 62.796);
  --secondary: oklch(0.894 0.009 63.958);
  --secondary-foreground: oklch(0.386 0.021 63.334);
  --accent: oklch(0.843 0.023 63.728);
  --accent-foreground: oklch(0.319 0.027 62.814);
  --destructive: oklch(0.453 0.168 30.979);
  --destructive-foreground: oklch(0.932 0.031 26.696);
  --ring: oklch(0.264 0.042 60.534);
  --chart-1: oklch(0.264 0.042 60.534);
  --chart-2: oklch(0.894 0.009 63.958);
  --chart-3: oklch(0.843 0.023 63.728);
  --chart-4: oklch(0.917 0.007 63.99);
  --chart-5: oklch(0.266 0.044 60.221);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.008 68.39);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.24 0.008 63.646);
  --muted-foreground: oklch(0.801 0.016 63.825);
  --popover: oklch(0.134 0.008 68.39);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.009 66.015);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.264 0.042 60.534);
  --primary-foreground: oklch(0.809 0.069 62.796);
  --secondary: oklch(0.314 0.012 63.585);
  --secondary-foreground: oklch(0.84 0.01 63.933);
  --accent: oklch(0.408 0.03 63.023);
  --accent-foreground: oklch(0.91 0.011 63.943);
  --destructive: oklch(0.604 0.229 30.878);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.264 0.042 60.534);
  --chart-1: oklch(0.264 0.042 60.534);
  --chart-2: oklch(0.314 0.012 63.585);
  --chart-3: oklch(0.408 0.03 63.023);
  --chart-4: oklch(0.344 0.014 63.568);
  --chart-5: oklch(0.266 0.044 60.221);
}