Ornate for shadcn/ui

Ornate is a shadcn/ui theme built around a vivid violet primary color (#9608d9) with vivid purple accents (#d908b2). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid violet primary (#9608d9) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#030104black
Foreground
#0d0212black
#f8f6f8whitesmoke
Card
#f8f4fawhitesmoke
#060308black
Card foreground
#0a020eblack
#faf9fbghostwhite
Popover
#fbf8fcghostwhite
#030104black
Popover foreground
#0d0212black
#f8f6f8whitesmoke
Primary
#9608d9darkviolet
#9608d9darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2e08d9mediumblue
#2e08d9mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4e1eflavender
#13101eblack
Muted foreground
#504e5adarkslategray
#a7a5b1darkgray
Accent
#d908b2mediumvioletred
#d908b2mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#630f03maroon
#e52406orangered
Destructive foreground
#fca89clightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9608d9darkviolet
#9608d9darkviolet

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card18.84:1AAA
Primary button6.29:1AA
Secondary button9.77:1AAA
Muted text6.34:1AA
Accent4.54:1AA
Destructive6.97:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.56:1AAA
Primary button6.29:1AA
Secondary button9.77:1AAA
Muted text7.72:1AAA
Accent4.54:1AA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 315.401);
  --foreground: oklch(0.127 0.045 316.114);
  --muted: oklch(0.917 0.018 294.456);
  --muted-foreground: oklch(0.431 0.019 293.981);
  --popover: oklch(0.982 0.006 315.401);
  --popover-foreground: oklch(0.127 0.045 316.114);
  --card: oklch(0.973 0.009 315.388);
  --card-foreground: oklch(0.114 0.039 317.543);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.263 309.168);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.418 0.265 271.789);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.6 0.26 338.78);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.326 0.119 32.176);
  --destructive-foreground: oklch(0.812 0.102 29.074);
  --ring: oklch(0.525 0.263 309.168);
  --chart-1: oklch(0.525 0.263 309.168);
  --chart-2: oklch(0.418 0.265 271.789);
  --chart-3: oklch(0.6 0.26 338.78);
  --chart-4: oklch(0.438 0.279 271.612);
  --chart-5: oklch(0.529 0.267 308.845);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.016 317.051);
  --foreground: oklch(0.976 0.003 315.415);
  --muted: oklch(0.184 0.027 291.941);
  --muted-foreground: oklch(0.727 0.017 294.389);
  --popover: oklch(0.084 0.016 317.051);
  --popover-foreground: oklch(0.976 0.003 315.415);
  --card: oklch(0.106 0.02 317.051);
  --card-foreground: oklch(0.984 0.002 315.419);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.525 0.263 309.168);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.418 0.265 271.789);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.6 0.26 338.78);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.59 0.226 31.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.525 0.263 309.168);
  --chart-1: oklch(0.525 0.263 309.168);
  --chart-2: oklch(0.418 0.265 271.789);
  --chart-3: oklch(0.6 0.26 338.78);
  --chart-4: oklch(0.438 0.279 271.612);
  --chart-5: oklch(0.529 0.267 308.845);
}