Splendid for shadcn/ui

Splendid is a shadcn/ui theme built around a near-white primary color (#f3f2f2) with near-white accents (#f3f2f2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f3f2f2) on a pink-tinted background (#0d070b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d070bblack
Foreground
#0d020ablack
#fbf8fasnow
Card
#ffffffwhite
#0d070bblack
Card foreground
#0d020ablack
#fbf8fasnow
Popover
#ffffffwhite
#0d070bblack
Popover foreground
#0d020ablack
#fbf8fasnow
Primary
#f3f2f2whitesmoke
#f3f2f2whitesmoke
Primary foreground
#5c575adimgray
#5c575adimgray
Secondary
#f3f2f3whitesmoke
#f3f2f3whitesmoke
Secondary foreground
#5b575cdimgray
#5b575cdimgray
Muted
#f1e7f3lavender
#160c18black
Muted foreground
#504e50darkslategray
#b0afb1darkgray
Accent
#f3f2f2whitesmoke
#f3f2f2whitesmoke
Accent foreground
#5c5757dimgray
#5c5757dimgray
Destructive
#bb320cfirebrick
#f15327tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3f2f2whitesmoke
#f3f2f2whitesmoke

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button6.32:1AA
Secondary button6.33:1AA
Muted text6.87:1AA
Accent6.34:1AA
Destructive5.88:1AA
Dark mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button6.32:1AA
Secondary button6.33:1AA
Muted text8.74:1AAA
Accent6.34:1AA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.034 338.473);
  --muted: oklch(0.94 0.019 320.562);
  --muted-foreground: oklch(0.427 0.003 320.543);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.034 338.473);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.12 0.034 338.473);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.961 0.001 337.287);
  --primary-foreground: oklch(0.462 0.009 337.65);
  --secondary: oklch(0.961 0.001 320.533);
  --secondary-foreground: oklch(0.461 0.01 320.566);
  --accent: oklch(0.961 0.001 5.471);
  --accent-foreground: oklch(0.461 0.007 5.846);
  --destructive: oklch(0.525 0.179 34.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.001 337.287);
  --chart-1: oklch(0.961 0.001 337.287);
  --chart-2: oklch(0.961 0.001 320.533);
  --chart-3: oklch(0.961 0.001 5.471);
  --chart-4: oklch(0.985 0 320.532);
  --chart-5: oklch(0.961 0.002 337.309);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 338.545);
  --foreground: oklch(0.983 0.004 337.354);
  --muted: oklch(0.174 0.028 320.738);
  --muted-foreground: oklch(0.756 0.003 320.537);
  --popover: oklch(0.141 0.015 338.545);
  --popover-foreground: oklch(0.983 0.004 337.354);
  --card: oklch(0.141 0.015 338.545);
  --card-foreground: oklch(0.983 0.004 337.354);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.961 0.001 337.287);
  --primary-foreground: oklch(0.462 0.009 337.65);
  --secondary: oklch(0.961 0.001 320.533);
  --secondary-foreground: oklch(0.461 0.01 320.566);
  --accent: oklch(0.961 0.001 5.471);
  --accent-foreground: oklch(0.461 0.007 5.846);
  --destructive: oklch(0.653 0.202 35.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.001 337.287);
  --chart-1: oklch(0.961 0.001 337.287);
  --chart-2: oklch(0.961 0.001 320.533);
  --chart-3: oklch(0.961 0.001 5.471);
  --chart-4: oklch(0.985 0 320.532);
  --chart-5: oklch(0.961 0.002 337.309);
}