Splendid for shadcn/ui

Splendid is a shadcn/ui theme built around a deep red primary color (#561310) with deep teal accents (#105356). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#561310) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#fcf8f7snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfbsnow
#000000black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#561310maroon
#561310maroon
Primary foreground
#efaca9lightpink
#efaca9lightpink
Secondary
#105356darkslategray
#105356darkslategray
Secondary foreground
#a9ecefpaleturquoise
#a9ecefpaleturquoise
Muted
#cee2e3gainsboro
#1c3031darkslategray
Muted foreground
#525656dimgray
#a9acaddarkgray
Accent
#105356darkslategray
#105356darkslategray
Accent foreground
#a9ecefpaleturquoise
#a9ecefpaleturquoise
Destructive
#e04b06orangered
#e54c06orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#561310maroon
#561310maroon

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card19.88:1AAA
Primary button7.42:1AAA
Secondary button6.68:1AA
Muted text5.53:1AA
Accent6.68:1AA
Destructive4.06:1AA Large
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.42:1AAA
Secondary button6.68:1AA
Muted text6.09:1AA
Accent6.68:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 20.922);
  --foreground: oklch(0.081 0.019 27.831);
  --muted: oklch(0.899 0.021 200.616);
  --muted-foreground: oklch(0.449 0.004 200.778);
  --popover: oklch(0.991 0.003 20.922);
  --popover-foreground: oklch(0.081 0.019 27.831);
  --card: oklch(0.982 0.005 20.955);
  --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.304 0.099 27.657);
  --primary-foreground: oklch(0.807 0.079 22.36);
  --secondary: oklch(0.404 0.063 200.349);
  --secondary-foreground: oklch(0.899 0.067 200.148);
  --accent: oklch(0.404 0.063 200.349);
  --accent-foreground: oklch(0.899 0.067 200.148);
  --destructive: oklch(0.614 0.196 38.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.304 0.099 27.657);
  --chart-1: oklch(0.304 0.099 27.657);
  --chart-2: oklch(0.404 0.063 200.349);
  --chart-3: oklch(0.404 0.063 200.349);
  --chart-4: oklch(0.444 0.07 200.392);
  --chart-5: oklch(0.305 0.102 27.937);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 20.896);
  --muted: oklch(0.291 0.025 200.068);
  --muted-foreground: oklch(0.743 0.004 200.829);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 20.896);
  --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.304 0.099 27.657);
  --primary-foreground: oklch(0.807 0.079 22.36);
  --secondary: oklch(0.404 0.063 200.349);
  --secondary-foreground: oklch(0.899 0.067 200.148);
  --accent: oklch(0.404 0.063 200.349);
  --accent-foreground: oklch(0.899 0.067 200.148);
  --destructive: oklch(0.624 0.199 38.702);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.304 0.099 27.657);
  --chart-1: oklch(0.304 0.099 27.657);
  --chart-2: oklch(0.404 0.063 200.349);
  --chart-3: oklch(0.404 0.063 200.349);
  --chart-4: oklch(0.444 0.07 200.392);
  --chart-5: oklch(0.305 0.102 27.937);
}