Luxury for shadcn/ui

Luxury is a shadcn/ui theme built around a blue primary color (#2d547c) with orange accents (#7c542d). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#2d547c) on a blue-tinted background (#04080c).

Color palette

TokenLightDark
Background
#fbfcfewhite
#04080cblack
Foreground
#020509black
#f5f7fawhitesmoke
Card
#fbfcfewhite
#04080cblack
Card foreground
#020509black
#f5f7fawhitesmoke
Popover
#fbfcfewhite
#04080cblack
Popover foreground
#020509black
#f5f7fawhitesmoke
Primary
#2d547cdarkslateblue
#2d547cdarkslateblue
Primary foreground
#e5edf6lavender
#e5edf6lavender
Secondary
#7c542dsaddlebrown
#7c542dsaddlebrown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f7f2eewhitesmoke
#110d08black
Muted foreground
#68615adimgray
#a59e97darkgray
Accent
#7c542dsaddlebrown
#7c542dsaddlebrown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#87110ddarkred
#e92720crimson
Destructive foreground
#facdccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d547cdarkslateblue
#2d547cdarkslateblue

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button6.65:1AA
Secondary button6.64:1AA
Muted text5.48:1AA
Accent6.64:1AA
Destructive6.94:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button6.65:1AA
Secondary button6.64:1AA
Muted text7.32:1AAA
Accent6.64:1AA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 247.842);
  --foreground: oklch(0.111 0.015 238.172);
  --muted: oklch(0.964 0.008 67.732);
  --muted-foreground: oklch(0.496 0.014 67.504);
  --popover: oklch(0.992 0.002 247.842);
  --popover-foreground: oklch(0.111 0.015 238.172);
  --card: oklch(0.992 0.002 247.842);
  --card-foreground: oklch(0.111 0.015 238.172);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.436 0.08 250.115);
  --primary-foreground: oklch(0.943 0.014 247.981);
  --secondary: oklch(0.481 0.076 64.241);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.481 0.076 64.241);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.4 0.151 28.648);
  --destructive-foreground: oklch(0.888 0.05 20.467);
  --ring: oklch(0.436 0.08 250.115);
  --chart-1: oklch(0.436 0.08 250.115);
  --chart-2: oklch(0.481 0.076 64.241);
  --chart-3: oklch(0.481 0.076 64.241);
  --chart-4: oklch(0.511 0.082 64.168);
  --chart-5: oklch(0.437 0.084 250.335);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.013 240.914);
  --foreground: oklch(0.976 0.005 247.872);
  --muted: oklch(0.162 0.012 67.441);
  --muted-foreground: oklch(0.703 0.013 67.621);
  --popover: oklch(0.129 0.013 240.914);
  --popover-foreground: oklch(0.976 0.005 247.872);
  --card: oklch(0.129 0.013 240.914);
  --card-foreground: oklch(0.976 0.005 247.872);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.436 0.08 250.115);
  --primary-foreground: oklch(0.943 0.014 247.981);
  --secondary: oklch(0.481 0.076 64.241);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.481 0.076 64.241);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.601 0.227 28.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.436 0.08 250.115);
  --chart-1: oklch(0.436 0.08 250.115);
  --chart-2: oklch(0.481 0.076 64.241);
  --chart-3: oklch(0.481 0.076 64.241);
  --chart-4: oklch(0.511 0.082 64.168);
  --chart-5: oklch(0.437 0.084 250.335);
}