Tuna for shadcn/ui

Tuna is a shadcn/ui theme built around a muted light orange primary color (#ccc4bd) with muted light yellow accents (#cccbbd). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted light orange primary (#ccc4bd) on an orange-tinted background (#0f0a06).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0f0a06black
Foreground
#080503black
#ffffffwhite
Card
#fdfaf7snow
#120c07black
Card foreground
#040201black
#ffffffwhite
Popover
#fdfaf7snow
#120c07black
Popover foreground
#040201black
#ffffffwhite
Primary
#ccc4bdsilver
#ccc4bdsilver
Primary foreground
#312b26darkslategray
#312b26darkslategray
Secondary
#ccbdbdsilver
#ccbdbdsilver
Secondary foreground
#312626darkslategray
#312626darkslategray
Muted
#f1eeeewhitesmoke
#110e0eblack
Muted foreground
#4a3b3bdarkslategray
#c4b5b6silver
Accent
#cccbbdsilver
#cccbbdsilver
Accent foreground
#313126darkslategray
#313126darkslategray
Destructive
#a23a06saddlebrown
#e75308orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccc4bdsilver
#ccc4bdsilver

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.86:1AAA
Primary button8.09:1AAA
Secondary button8.05:1AAA
Muted text9.21:1AAA
Accent8.06:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.37:1AAA
Primary button8.09:1AAA
Secondary button8.05:1AAA
Muted text9.73:1AAA
Accent8.06:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 64.06);
  --foreground: oklch(0.118 0.011 71.363);
  --muted: oklch(0.952 0.003 14.848);
  --muted-foreground: oklch(0.368 0.021 15.871);
  --popover: oklch(0.986 0.005 64.03);
  --popover-foreground: oklch(0.094 0.009 71.363);
  --card: oklch(0.986 0.005 64.03);
  --card-foreground: oklch(0.094 0.009 71.363);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.824 0.013 63.881);
  --primary-foreground: oklch(0.294 0.013 63.503);
  --secondary: oklch(0.81 0.017 15.194);
  --secondary-foreground: oklch(0.281 0.017 15.97);
  --accent: oklch(0.84 0.02 105.219);
  --accent-foreground: oklch(0.308 0.019 105.816);
  --destructive: oklch(0.491 0.148 40.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.013 63.881);
  --chart-1: oklch(0.824 0.013 63.881);
  --chart-2: oklch(0.81 0.017 15.194);
  --chart-3: oklch(0.84 0.02 105.219);
  --chart-4: oklch(0.836 0.015 15.126);
  --chart-5: oklch(0.825 0.017 63.832);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.013 67.311);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.167 0.005 15.32);
  --muted-foreground: oklch(0.787 0.017 15.191);
  --popover: oklch(0.162 0.015 64.198);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.015 64.198);
  --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.824 0.013 63.881);
  --primary-foreground: oklch(0.294 0.013 63.503);
  --secondary: oklch(0.81 0.017 15.194);
  --secondary-foreground: oklch(0.281 0.017 15.97);
  --accent: oklch(0.84 0.02 105.219);
  --accent-foreground: oklch(0.308 0.019 105.816);
  --destructive: oklch(0.635 0.196 40.049);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.013 63.881);
  --chart-1: oklch(0.824 0.013 63.881);
  --chart-2: oklch(0.81 0.017 15.194);
  --chart-3: oklch(0.84 0.02 105.219);
  --chart-4: oklch(0.836 0.015 15.126);
  --chart-5: oklch(0.825 0.017 63.832);
}