Splendid for shadcn/ui

Splendid is a shadcn/ui theme built around a light violet primary color (#edddf9) with light green accents (#e8f9dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#edddf9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#edddf9lavender
#edddf9lavender
Primary foreground
#5d198arebeccapurple
#5d198arebeccapurple
Secondary
#e8f9ddbeige
#e8f9ddbeige
Secondary foreground
#1a3409darkgreen
#1a3409darkgreen
Muted
#d8ded3gainsboro
#252c21darkslategray
Muted foreground
#41473edarkslategray
#bcc1b8silver
Accent
#e8f9ddbeige
#e8f9ddbeige
Accent foreground
#1a3409darkgreen
#1a3409darkgreen
Destructive
#790c0cmaroon
#eb3737crimson
Destructive foreground
#f9bebelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#edddf9lavender
#edddf9lavender

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.25:1AAA
Secondary button12.32:1AAA
Muted text6.97:1AA
Accent12.32:1AAA
Destructive7.04:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button8.25:1AAA
Secondary button12.32:1AAA
Muted text7.87:1AAA
Accent12.32:1AAA
Destructive4.07: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 0 0);
  --muted: oklch(0.893 0.016 132.494);
  --muted-foreground: oklch(0.389 0.017 132.694);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.918 0.042 312.021);
  --primary-foreground: oklch(0.387 0.173 306.95);
  --secondary: oklch(0.961 0.041 132.687);
  --secondary-foreground: oklch(0.293 0.073 135.349);
  --accent: oklch(0.961 0.041 132.687);
  --accent-foreground: oklch(0.293 0.073 135.349);
  --destructive: oklch(0.368 0.141 27.82);
  --destructive-foreground: oklch(0.854 0.068 18.567);
  --ring: oklch(0.918 0.042 312.021);
  --chart-1: oklch(0.918 0.042 312.021);
  --chart-2: oklch(0.961 0.041 132.687);
  --chart-3: oklch(0.961 0.041 132.687);
  --chart-4: oklch(0.976 0.026 132.558);
  --chart-5: oklch(0.917 0.044 312.006);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 312.342);
  --muted: oklch(0.282 0.021 132.952);
  --muted-foreground: oklch(0.805 0.014 132.492);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.918 0.042 312.021);
  --primary-foreground: oklch(0.387 0.173 306.95);
  --secondary: oklch(0.961 0.041 132.687);
  --secondary-foreground: oklch(0.293 0.073 135.349);
  --accent: oklch(0.961 0.041 132.687);
  --accent-foreground: oklch(0.293 0.073 135.349);
  --destructive: oklch(0.618 0.216 26.258);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.918 0.042 312.021);
  --chart-1: oklch(0.918 0.042 312.021);
  --chart-2: oklch(0.961 0.041 132.687);
  --chart-3: oklch(0.961 0.041 132.687);
  --chart-4: oklch(0.976 0.026 132.558);
  --chart-5: oklch(0.917 0.044 312.006);
}