libravri 2 for shadcn/ui

libravri 2 is a shadcn/ui theme built around a vivid yellow primary color (#ffd86b) with deep cyan accents (#243f46). The light mode uses a cyan-tinted background (#1a2d31). Dark mode keeps the vivid yellow primary (#ffd86b) on a cyan-tinted background (#1a2d31).

Color palette

TokenLightDark
Background
#1a2d31darkslategray
#1a2d31darkslategray
Foreground
#e9f1f0whitesmoke
#e9f1f0whitesmoke
Card
#1a2d31darkslategray
#243f46darkslategray
Card foreground
#f9fbfbghostwhite
#f9fbfbghostwhite
Popover
#1a2d31darkslategray
#1a2d31darkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ffd86bkhaki
#ffd86bkhaki
Primary foreground
#382900black
#382900black
Secondary
#243f46darkslategray
#243f46darkslategray
Secondary foreground
#eeffffazure
#eeffffazure
Muted
#243f46darkslategray
#243f46darkslategray
Muted foreground
#b2b4c2silver
#b2b4c2silver
Accent
#243f46darkslategray
#243f46darkslategray
Accent foreground
#edeef2whitesmoke
#edeef2whitesmoke
Destructive
#f4502ftomato
#f4502ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#243f46darkslategray
#243f46darkslategray
Input
#243f46darkslategray
#f9fbfbghostwhite
Ring
#ffd86bkhaki
#ffd86bkhaki

Contrast

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

Light mode
Text on background12.50:1AAA
Text on card13.81:1AAA
Primary button10.26:1AAA
Secondary button10.87:1AAA
Muted text5.44:1AA
Accent9.66:1AAA
Destructive3.48:1AA Large
Dark mode
Text on background12.50:1AAA
Text on card10.78:1AAA
Primary button10.26:1AAA
Secondary button10.87:1AAA
Muted text5.44:1AA
Accent9.66:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.283 0.026 212.359);
  --foreground: oklch(0.953 0.009 188.68);
  --muted: oklch(0.349 0.035 216.099);
  --muted-foreground: oklch(0.772 0.021 279.898);
  --popover: oklch(0.283 0.026 212.359);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.283 0.026 212.359);
  --card-foreground: oklch(0.987 0.003 188.847);
  --border: oklch(0.349 0.035 216.099);
  --input: oklch(0.349 0.035 216.099);
  --primary: oklch(0.894 0.134 89.51);
  --primary-foreground: oklch(0.291 0.059 87.335);
  --secondary: oklch(0.349 0.035 216.099);
  --secondary-foreground: oklch(0.988 0.018 196.869);
  --accent: oklch(0.349 0.035 216.099);
  --accent-foreground: oklch(0.949 0.007 280.222);
  --destructive: oklch(0.654 0.206 33.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.134 89.51);
  --chart-1: oklch(0.894 0.134 89.51);
  --chart-2: oklch(0.349 0.035 216.099);
  --chart-3: oklch(0.349 0.035 216.099);
  --chart-4: oklch(0.381 0.039 216.156);
  --chart-5: oklch(0.897 0.137 89.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.283 0.026 212.359);
  --foreground: oklch(0.953 0.009 188.68);
  --muted: oklch(0.349 0.035 216.099);
  --muted-foreground: oklch(0.772 0.021 279.898);
  --popover: oklch(0.283 0.026 212.359);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.349 0.035 216.099);
  --card-foreground: oklch(0.987 0.003 188.847);
  --border: oklch(0.349 0.035 216.099);
  --input: oklch(0.987 0.002 197.123);
  --primary: oklch(0.894 0.134 89.51);
  --primary-foreground: oklch(0.291 0.059 87.335);
  --secondary: oklch(0.349 0.035 216.099);
  --secondary-foreground: oklch(0.988 0.018 196.869);
  --accent: oklch(0.349 0.035 216.099);
  --accent-foreground: oklch(0.949 0.007 280.222);
  --destructive: oklch(0.654 0.206 33.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.134 89.51);
  --chart-1: oklch(0.894 0.134 89.51);
  --chart-2: oklch(0.349 0.035 216.099);
  --chart-3: oklch(0.349 0.035 216.099);
  --chart-4: oklch(0.381 0.039 216.156);
  --chart-5: oklch(0.897 0.137 89.42);
}