Titanium for shadcn/ui

Titanium is a shadcn/ui theme built around a muted green primary color (#96bb97) with muted green accents (#b3cbb4). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#96bb97) on a green-tinted background (#050a05).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#050a05black
Foreground
#000000black
#f6f8f6whitesmoke
Card
#f8fcf8mintcream
#070e07black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f8fcf8mintcream
#070e07black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#96bb97darkseagreen
#96bb97darkseagreen
Primary foreground
#0c130cblack
#0c130cblack
Secondary
#ced9celightgrey
#1a231ablack
Secondary foreground
#334233darkslategray
#aec2aesilver
Muted
#cde5cdlightgrey
#1a321ablack
Muted foreground
#424d42darkslategray
#b2bdb2silver
Accent
#b3cbb4silver
#263b26darkslategray
Accent foreground
#1f2e1fdarkslategray
#bed5besilver
Destructive
#732202maroon
#f54905orangered
Destructive foreground
#fdc2aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96bb97darkseagreen
#96bb97darkseagreen

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.23:1AAA
Primary button8.80:1AAA
Secondary button7.35:1AAA
Muted text6.60:1AA
Accent8.27:1AAA
Destructive6.87:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.82:1AAA
Primary button8.80:1AAA
Secondary button8.56:1AAA
Muted text7.09:1AAA
Accent7.74:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 146.029);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.897 0.042 145.669);
  --muted-foreground: oklch(0.407 0.024 145.568);
  --popover: oklch(0.986 0.006 146.005);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.006 146.005);
  --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.754 0.064 145.331);
  --primary-foreground: oklch(0.175 0.016 145.262);
  --secondary: oklch(0.874 0.019 145.872);
  --secondary-foreground: oklch(0.362 0.032 145.295);
  --accent: oklch(0.818 0.042 145.625);
  --accent-foreground: oklch(0.281 0.032 145.055);
  --destructive: oklch(0.377 0.12 38.484);
  --destructive-foreground: oklch(0.861 0.076 42.568);
  --ring: oklch(0.754 0.064 145.331);
  --chart-1: oklch(0.754 0.064 145.331);
  --chart-2: oklch(0.874 0.019 145.872);
  --chart-3: oklch(0.818 0.042 145.625);
  --chart-4: oklch(0.897 0.016 145.909);
  --chart-5: oklch(0.758 0.073 145.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 145.106);
  --foreground: oklch(0.978 0.004 146.022);
  --muted: oklch(0.292 0.053 144.428);
  --muted-foreground: oklch(0.787 0.02 145.844);
  --popover: oklch(0.152 0.019 145.043);
  --popover-foreground: oklch(0.986 0.003 146.033);
  --card: oklch(0.152 0.019 145.043);
  --card-foreground: oklch(0.986 0.003 146.033);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.754 0.064 145.331);
  --primary-foreground: oklch(0.175 0.016 145.262);
  --secondary: oklch(0.244 0.02 145.359);
  --secondary-foreground: oklch(0.792 0.035 145.686);
  --accent: oklch(0.328 0.045 144.839);
  --accent-foreground: oklch(0.85 0.041 145.657);
  --destructive: oklch(0.647 0.217 36.556);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.754 0.064 145.331);
  --chart-1: oklch(0.754 0.064 145.331);
  --chart-2: oklch(0.244 0.02 145.359);
  --chart-3: oklch(0.328 0.045 144.839);
  --chart-4: oklch(0.278 0.024 145.313);
  --chart-5: oklch(0.758 0.073 145.23);
}