Tuna for shadcn/ui

Tuna is a shadcn/ui theme built around a muted violet primary color (#bdadc7) with muted purple accents (#c7adc4). The light mode uses a neutral background (#faf8fc). Dark mode keeps the muted violet primary (#bdadc7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#000000black
Foreground
#000000black
#faf8fcghostwhite
Card
#f8f4fawhitesmoke
#030303black
Card foreground
#000000black
#fdfcfdwhite
Popover
#f8f4fawhitesmoke
#030303black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#bdadc7silver
#bdadc7silver
Primary foreground
#231b27black
#231b27black
Secondary
#b0adc7silver
#b0adc7silver
Secondary foreground
#1c1b27black
#1c1b27black
Muted
#d9d7eagainsboro
#181528black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#c7adc4silver
#c7adc4silver
Accent foreground
#271b26black
#271b26black
Destructive
#b64407firebrick
#dd5308chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdadc7silver
#bdadc7silver

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.36:1AAA
Primary button7.93:1AAA
Secondary button7.81:1AAA
Muted text4.25:1AA Large
Accent8.03:1AAA
Destructive5.49:1AA
Dark mode
Text on background19.89:1AAA
Text on card20.20:1AAA
Primary button7.93:1AAA
Secondary button7.81:1AAA
Muted text6.49:1AA
Accent8.03:1AAA
Destructive3.94: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.982 0.006 312.945);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.887 0.025 291.242);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.973 0.009 312.924);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.009 312.924);
  --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.77 0.041 312.627);
  --primary-foreground: oklch(0.236 0.026 312.229);
  --secondary: oklch(0.759 0.037 290.837);
  --secondary-foreground: oklch(0.229 0.024 289.687);
  --accent: oklch(0.778 0.044 329.768);
  --accent-foreground: oklch(0.242 0.028 330.407);
  --destructive: oklch(0.537 0.16 41.703);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.77 0.041 312.627);
  --chart-1: oklch(0.77 0.041 312.627);
  --chart-2: oklch(0.759 0.037 290.837);
  --chart-3: oklch(0.778 0.044 329.768);
  --chart-4: oklch(0.786 0.033 290.982);
  --chart-5: oklch(0.767 0.047 312.568);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 312.948);
  --muted: oklch(0.21 0.036 288.248);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.003 312.967);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.003 312.967);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.77 0.041 312.627);
  --primary-foreground: oklch(0.236 0.026 312.229);
  --secondary: oklch(0.759 0.037 290.837);
  --secondary-foreground: oklch(0.229 0.024 289.687);
  --accent: oklch(0.778 0.044 329.768);
  --accent-foreground: oklch(0.242 0.028 330.407);
  --destructive: oklch(0.62 0.187 41.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.77 0.041 312.627);
  --chart-1: oklch(0.77 0.041 312.627);
  --chart-2: oklch(0.759 0.037 290.837);
  --chart-3: oklch(0.778 0.044 329.768);
  --chart-4: oklch(0.786 0.033 290.982);
  --chart-5: oklch(0.767 0.047 312.568);
}