Convertible for shadcn/ui

Convertible is a shadcn/ui theme built around a vivid deep teal primary color (#028388) with vivid deep red accents (#880702). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid deep teal primary (#028388) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#fbfefewhite
#050a0ablack
Foreground
#020809black
#ffffffwhite
Card
#fbfefewhite
#050a0ablack
Card foreground
#020809black
#ffffffwhite
Popover
#fbfefewhite
#050a0ablack
Popover foreground
#020809black
#ffffffwhite
Primary
#028388darkcyan
#028388darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#880702darkred
#880702darkred
Secondary foreground
#fec0belightpink
#fec0belightpink
Muted
#e5dcdcgainsboro
#231b1ablack
Muted foreground
#644b4adimgray
#b59c9brosybrown
Accent
#880702darkred
#880702darkred
Accent foreground
#fec0belightpink
#fec0belightpink
Destructive
#c8300efirebrick
#ef411aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#028388darkcyan
#028388darkcyan

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button4.55:1AA
Secondary button6.52:1AA
Muted text5.90:1AA
Accent6.52:1AA
Destructive5.39:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button4.55:1AA
Secondary button6.52:1AA
Muted text6.61:1AA
Accent6.52:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 199.572);
  --foreground: oklch(0.126 0.016 197.384);
  --muted: oklch(0.902 0.009 19.747);
  --muted-foreground: oklch(0.438 0.034 20.837);
  --popover: oklch(0.994 0.002 199.572);
  --popover-foreground: oklch(0.126 0.016 197.384);
  --card: oklch(0.994 0.002 199.572);
  --card-foreground: oklch(0.126 0.016 197.384);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.555 0.094 199.01);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.396 0.158 29.583);
  --secondary-foreground: oklch(0.863 0.072 20.92);
  --accent: oklch(0.396 0.158 29.583);
  --accent-foreground: oklch(0.863 0.072 20.92);
  --destructive: oklch(0.547 0.193 33.178);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.555 0.094 199.01);
  --chart-1: oklch(0.555 0.094 199.01);
  --chart-2: oklch(0.396 0.158 29.583);
  --chart-3: oklch(0.396 0.158 29.583);
  --chart-4: oklch(0.427 0.171 29.541);
  --chart-5: oklch(0.56 0.095 199.06);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 198.257);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.013 20.473);
  --muted-foreground: oklch(0.715 0.03 20.224);
  --popover: oklch(0.139 0.01 198.257);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.01 198.257);
  --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.555 0.094 199.01);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.396 0.158 29.583);
  --secondary-foreground: oklch(0.863 0.072 20.92);
  --accent: oklch(0.396 0.158 29.583);
  --accent-foreground: oklch(0.863 0.072 20.92);
  --destructive: oklch(0.631 0.216 33.497);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.555 0.094 199.01);
  --chart-1: oklch(0.555 0.094 199.01);
  --chart-2: oklch(0.396 0.158 29.583);
  --chart-3: oklch(0.396 0.158 29.583);
  --chart-4: oklch(0.427 0.171 29.541);
  --chart-5: oklch(0.56 0.095 199.06);
}