Opulent for shadcn/ui

Opulent is a shadcn/ui theme built around a muted light orange primary color (#f1ebe9) with muted light cyan accents (#e9eff1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#f1ebe9) on an orange-tinted background (#0b0604).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0604black
Foreground
#0c0604black
#ffffffwhite
Card
#ffffffwhite
#0b0604black
Card foreground
#0c0604black
#ffffffwhite
Popover
#ffffffwhite
#0b0604black
Popover foreground
#0c0604black
#ffffffwhite
Primary
#f1ebe9linen
#f1ebe9linen
Primary foreground
#684b40darkolivegreen
#684b40darkolivegreen
Secondary
#e9eff1lavender
#e9eff1lavender
Secondary foreground
#405d68darkslategray
#405d68darkslategray
Muted
#ebf2f4whitesmoke
#0b1114black
Muted foreground
#536065dimgray
#9aa7acdarkgray
Accent
#e9eff1lavender
#e9eff1lavender
Accent foreground
#405d68darkslategray
#405d68darkslategray
Destructive
#d11515firebrick
#e92525crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1ebe9linen
#f1ebe9linen

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button6.68:1AA
Secondary button6.06:1AA
Muted text5.73:1AA
Accent6.06:1AA
Destructive5.49:1AA
Dark mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button6.68:1AA
Secondary button6.06:1AA
Muted text7.68:1AAA
Accent6.06:1AA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.014 49.978);
  --muted: oklch(0.956 0.008 223.211);
  --muted-foreground: oklch(0.479 0.018 223.592);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.014 49.978);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.014 49.978);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.945 0.007 43.059);
  --primary-foreground: oklch(0.442 0.044 42.52);
  --secondary: oklch(0.948 0.007 223.209);
  --secondary-foreground: oklch(0.46 0.039 224.522);
  --accent: oklch(0.948 0.007 223.209);
  --accent-foreground: oklch(0.46 0.039 224.522);
  --destructive: oklch(0.547 0.215 28.349);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.945 0.007 43.059);
  --chart-1: oklch(0.945 0.007 43.059);
  --chart-2: oklch(0.948 0.007 223.209);
  --chart-3: oklch(0.948 0.007 223.209);
  --chart-4: oklch(0.97 0.004 223.173);
  --chart-5: oklch(0.945 0.008 43.05);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.011 48.56);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.011 224.051);
  --muted-foreground: oklch(0.72 0.017 223.386);
  --popover: oklch(0.13 0.011 48.56);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.011 48.56);
  --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.945 0.007 43.059);
  --primary-foreground: oklch(0.442 0.044 42.52);
  --secondary: oklch(0.948 0.007 223.209);
  --secondary-foreground: oklch(0.46 0.039 224.522);
  --accent: oklch(0.948 0.007 223.209);
  --accent-foreground: oklch(0.46 0.039 224.522);
  --destructive: oklch(0.601 0.228 27.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.945 0.007 43.059);
  --chart-1: oklch(0.945 0.007 43.059);
  --chart-2: oklch(0.948 0.007 223.209);
  --chart-3: oklch(0.948 0.007 223.209);
  --chart-4: oklch(0.97 0.004 223.173);
  --chart-5: oklch(0.945 0.008 43.05);
}