Tuber for shadcn/ui

Tuber is a shadcn/ui theme built around a muted violet primary color (#a196b6) with muted purple accents (#b196b6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#a196b6) on a violet-tinted background (#09050f).

Color palette

TokenLightDark
Background
#fcfbfewhite
#09050fblack
Foreground
#080311black
#fcfcfdwhite
Card
#fcfbfewhite
#09050fblack
Card foreground
#080311black
#fcfcfdwhite
Popover
#fcfbfewhite
#09050fblack
Popover foreground
#080311black
#fcfcfdwhite
Primary
#a196b6darkgray
#a196b6darkgray
Primary foreground
#0c0a0fblack
#0c0a0fblack
Secondary
#969bb6darkgray
#969bb6darkgray
Secondary foreground
#0a0b0fblack
#0a0b0fblack
Muted
#eff0f6whitesmoke
#090a10black
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#b196b6darkgray
#b196b6darkgray
Accent foreground
#0e0a0fblack
#0e0a0fblack
Destructive
#a3310afirebrick
#f36c3ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a196b6darkgray
#a196b6darkgray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button7.06:1AAA
Secondary button7.13:1AAA
Muted text7.76:1AAA
Accent7.37:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button7.06:1AAA
Secondary button7.13:1AAA
Muted text9.62:1AAA
Accent7.37:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 302.161);
  --foreground: oklch(0.121 0.036 301.212);
  --muted: oklch(0.955 0.008 278.189);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.99 0.003 302.161);
  --popover-foreground: oklch(0.121 0.036 301.212);
  --card: oklch(0.99 0.003 302.161);
  --card-foreground: oklch(0.121 0.036 301.212);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.693 0.048 301.12);
  --primary-foreground: oklch(0.151 0.01 301.168);
  --secondary: oklch(0.693 0.04 277.405);
  --secondary-foreground: oklch(0.151 0.008 277.448);
  --accent: oklch(0.707 0.055 321.229);
  --accent-foreground: oklch(0.154 0.012 321.222);
  --destructive: oklch(0.481 0.157 36.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.693 0.048 301.12);
  --chart-1: oklch(0.693 0.048 301.12);
  --chart-2: oklch(0.693 0.04 277.405);
  --chart-3: oklch(0.707 0.055 321.229);
  --chart-4: oklch(0.721 0.036 277.532);
  --chart-5: oklch(0.688 0.056 300.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.026 301.466);
  --foreground: oklch(0.991 0.003 302.172);
  --muted: oklch(0.148 0.014 276.596);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.128 0.026 301.466);
  --popover-foreground: oklch(0.991 0.003 302.172);
  --card: oklch(0.128 0.026 301.466);
  --card-foreground: oklch(0.991 0.003 302.172);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.693 0.048 301.12);
  --primary-foreground: oklch(0.151 0.01 301.168);
  --secondary: oklch(0.693 0.04 277.405);
  --secondary-foreground: oklch(0.151 0.008 277.448);
  --accent: oklch(0.707 0.055 321.229);
  --accent-foreground: oklch(0.154 0.012 321.222);
  --destructive: oklch(0.689 0.176 38.516);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.693 0.048 301.12);
  --chart-1: oklch(0.693 0.048 301.12);
  --chart-2: oklch(0.693 0.04 277.405);
  --chart-3: oklch(0.707 0.055 321.229);
  --chart-4: oklch(0.721 0.036 277.532);
  --chart-5: oklch(0.688 0.056 300.923);
}