Ornate for shadcn/ui

Ornate is a shadcn/ui theme built around a vivid indigo primary color (#1f0ced) with muted light indigo accents (#b9b7d2). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#1f0ced) on an indigo-tinted background (#04030c).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#04030cblack
Foreground
#000000black
#ffffffwhite
Card
#f5f4fbwhitesmoke
#060510black
Card foreground
#000000black
#ffffffwhite
Popover
#f8f8fcghostwhite
#04030cblack
Popover foreground
#000000black
#ffffffwhite
Primary
#1f0cedblue
#1f0cedblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdccdblightgrey
#25242edarkslategray
Secondary foreground
#323045darkslategray
#bcbac9silver
Muted
#ebeaf6lavender
#0a0915black
Muted foreground
#43424ddarkslategray
#b3b2bdsilver
Accent
#b9b7d2lightsteelblue
#323045darkslategray
Accent foreground
#232135darkslategray
#cdccdblightgrey
Destructive
#c64d0cchocolate
#f16113chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f0cedblue
#1f0cedblue

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.19:1AAA
Primary button8.96:1AAA
Secondary button8.05:1AAA
Muted text8.27:1AAA
Accent8.02:1AAA
Destructive4.72:1AA
Dark mode
Text on background20.47:1AAA
Text on card20.30:1AAA
Primary button8.96:1AAA
Secondary button8.04:1AAA
Muted text9.40:1AAA
Accent8.05:1AAA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 290.132);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.016 289.925);
  --muted-foreground: oklch(0.383 0.019 289.279);
  --popover: oklch(0.98 0.006 290.132);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.969 0.009 290.073);
  --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.439 0.289 267.445);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.85 0.021 289.767);
  --secondary-foreground: oklch(0.321 0.037 287.918);
  --accent: oklch(0.789 0.038 289.322);
  --accent-foreground: oklch(0.261 0.037 287.353);
  --destructive: oklch(0.574 0.168 42.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.439 0.289 267.445);
  --chart-1: oklch(0.439 0.289 267.445);
  --chart-2: oklch(0.85 0.021 289.767);
  --chart-3: oklch(0.789 0.038 289.322);
  --chart-4: oklch(0.877 0.018 289.868);
  --chart-5: oklch(0.442 0.294 266.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.024 287.222);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.15 0.025 286.759);
  --muted-foreground: oklch(0.768 0.016 289.848);
  --popover: oklch(0.11 0.024 287.222);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.028 286.668);
  --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.439 0.289 267.445);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.265 0.018 288.916);
  --secondary-foreground: oklch(0.796 0.021 289.756);
  --accent: oklch(0.321 0.037 287.918);
  --accent-foreground: oklch(0.85 0.021 289.767);
  --destructive: oklch(0.668 0.194 42.454);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.439 0.289 267.445);
  --chart-1: oklch(0.439 0.289 267.445);
  --chart-2: oklch(0.265 0.018 288.916);
  --chart-3: oklch(0.321 0.037 287.918);
  --chart-4: oklch(0.294 0.021 288.853);
  --chart-5: oklch(0.442 0.294 266.846);
}