Tuba for shadcn/ui

Tuba is a shadcn/ui theme built around a vivid cyan primary color (#0f85a9) with vivid red accents (#a9330f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#0f85a9) on a cyan-tinted background (#040a0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#040a0bblack
Foreground
#000000black
#fcfdfdwhite
Card
#fcfcfcsnow
#050d0fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#050d0fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#0f85a9darkcyan
#0f85a9darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a9330ffirebrick
#a9330ffirebrick
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ede9e8linen
#171312black
Muted foreground
#6a544edimgray
#b19c95rosybrown
Accent
#a9330ffirebrick
#a9330ffirebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b64a0csienna
#f16b1echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f85a9darkcyan
#0f85a9darkcyan

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button4.24:1AA Large
Secondary button6.64:1AA
Muted text5.83:1AA
Accent6.64:1AA
Destructive5.27:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.62:1AAA
Primary button4.24:1AA Large
Secondary button6.64:1AA
Muted text7.07:1AAA
Accent6.64:1AA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.938 0.004 37.721);
  --muted-foreground: oklch(0.467 0.03 37.592);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.575 0.107 226.077);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.494 0.16 35.841);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.494 0.16 35.841);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.546 0.154 43.788);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.107 226.077);
  --chart-1: oklch(0.575 0.107 226.077);
  --chart-2: oklch(0.494 0.16 35.841);
  --chart-3: oklch(0.494 0.16 35.841);
  --chart-4: oklch(0.523 0.171 35.758);
  --chart-5: oklch(0.58 0.109 226.545);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.012 214.207);
  --foreground: oklch(0.993 0.001 217.75);
  --muted: oklch(0.191 0.006 37.627);
  --muted-foreground: oklch(0.709 0.027 37.614);
  --popover: oklch(0.151 0.013 216.81);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.151 0.013 216.81);
  --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.575 0.107 226.077);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.494 0.16 35.841);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.494 0.16 35.841);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.682 0.183 45.084);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.575 0.107 226.077);
  --chart-1: oklch(0.575 0.107 226.077);
  --chart-2: oklch(0.494 0.16 35.841);
  --chart-3: oklch(0.494 0.16 35.841);
  --chart-4: oklch(0.523 0.171 35.758);
  --chart-5: oklch(0.58 0.109 226.545);
}