Splendor for shadcn/ui

Splendor is a shadcn/ui theme built around a deep cyan primary color (#143742) with muted light cyan accents (#e5e9eb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep cyan primary (#143742) on a cyan-tinted background (#04090b).

Color palette

TokenLightDark
Background
#fbfdfewhite
#04090bblack
Foreground
#061014black
#f8fbfcghostwhite
Card
#fbfdfewhite
#04090bblack
Card foreground
#061014black
#f8fbfcghostwhite
Popover
#fbfdfewhite
#04090bblack
Popover foreground
#061014black
#f8fbfcghostwhite
Primary
#143742darkslategray
#143742darkslategray
Primary foreground
#a5d4e3lightblue
#a5d4e3lightblue
Secondary
#e5e9eblavender
#333333darkslategray
Secondary foreground
#465459darkslategray
#cccccclightgrey
Muted
#edf1f2whitesmoke
#120d0dblack
Muted foreground
#4a595edarkslategray
#b5a1a1darkgray
Accent
#e5e9eblavender
#333333darkslategray
Accent foreground
#465459darkslategray
#cccccclightgrey
Destructive
#d8510echocolate
#eb580forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#143742darkslategray
#143742darkslategray

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card18.85:1AAA
Primary button7.93:1AAA
Secondary button6.45:1AA
Muted text6.41:1AA
Accent6.45:1AA
Destructive4.11:1AA Large
Dark mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button7.93:1AAA
Secondary button7.86:1AAA
Muted text7.88:1AAA
Accent7.86:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 219.522);
  --foreground: oklch(0.165 0.017 220.026);
  --muted: oklch(0.956 0.005 219.542);
  --muted-foreground: oklch(0.454 0.021 219.963);
  --popover: oklch(0.993 0.002 219.522);
  --popover-foreground: oklch(0.165 0.017 220.026);
  --card: oklch(0.993 0.002 219.522);
  --card-foreground: oklch(0.165 0.017 220.026);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.316 0.044 222.863);
  --primary-foreground: oklch(0.842 0.053 220.247);
  --secondary: oklch(0.933 0.005 219.545);
  --secondary-foreground: oklch(0.435 0.019 219.958);
  --accent: oklch(0.933 0.005 219.545);
  --accent-foreground: oklch(0.435 0.019 219.958);
  --destructive: oklch(0.609 0.182 41.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.044 222.863);
  --chart-1: oklch(0.316 0.044 222.863);
  --chart-2: oklch(0.933 0.005 219.545);
  --chart-3: oklch(0.933 0.005 219.545);
  --chart-4: oklch(0.955 0.003 219.532);
  --chart-5: oklch(0.318 0.046 223.177);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.01 215.94);
  --foreground: oklch(0.986 0.003 219.528);
  --muted: oklch(0.164 0.009 18.103);
  --muted-foreground: oklch(0.726 0.024 17.712);
  --popover: oklch(0.135 0.01 215.94);
  --popover-foreground: oklch(0.986 0.003 219.528);
  --card: oklch(0.135 0.01 215.94);
  --card-foreground: oklch(0.986 0.003 219.528);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.316 0.044 222.863);
  --primary-foreground: oklch(0.842 0.053 220.247);
  --secondary: oklch(0.321 0 180);
  --secondary-foreground: oklch(0.845 0 164.055);
  --accent: oklch(0.321 0 180);
  --accent-foreground: oklch(0.845 0 164.055);
  --destructive: oklch(0.648 0.195 40.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.044 222.863);
  --chart-1: oklch(0.316 0.044 222.863);
  --chart-2: oklch(0.321 0 180);
  --chart-3: oklch(0.321 0 180);
  --chart-4: oklch(0.351 0 167.471);
  --chart-5: oklch(0.318 0.046 223.177);
}