Ornery for shadcn/ui

Ornery is a shadcn/ui theme built around a purple primary color (#c18ac1) with muted light red accents (#d5cdcd). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#c18ac1) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#080208black
Foreground
#080208black
#fdfbfdsnow
Card
#faf4faghostwhite
#0c030cblack
Card foreground
#040104black
#ffffffwhite
Popover
#faf4faghostwhite
#0c030cblack
Popover foreground
#040104black
#ffffffwhite
Primary
#c18ac1orchid
#c18ac1orchid
Primary foreground
#110911black
#110911black
Secondary
#ebebeblinen
#252225darkslategray
Secondary foreground
#525252darkslategray
#c0b9c0silver
Muted
#e7cbcblightgrey
#341834darkslategray
Muted foreground
#554e4edarkslategray
#b1aab1darkgray
Accent
#d5cdcdlightgrey
#3b303bdarkslategray
Accent foreground
#3d3434darkslategray
#d4c9d4lightgrey
Destructive
#c1450bchocolate
#f1560eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c18ac1orchid
#c18ac1orchid

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.22:1AAA
Primary button7.18:1AAA
Secondary button6.53:1AA
Muted text5.31:1AA
Accent7.75:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.93:1AAA
Text on card20.29:1AAA
Primary button7.18:1AAA
Secondary button8.19:1AAA
Muted text6.95:1AA
Accent7.84:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.007 325.627);
  --foreground: oklch(0.108 0.029 327.332);
  --muted: oklch(0.865 0.032 17.786);
  --muted-foreground: oklch(0.431 0.009 17.494);
  --popover: oklch(0.975 0.01 325.654);
  --popover-foreground: oklch(0.085 0.023 327.332);
  --card: oklch(0.975 0.01 325.654);
  --card-foreground: oklch(0.085 0.023 327.332);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.706 0.1 326.573);
  --primary-foreground: oklch(0.154 0.021 326.541);
  --secondary: oklch(0.939 0 180);
  --secondary-foreground: oklch(0.437 0 180);
  --accent: oklch(0.856 0.008 17.316);
  --accent-foreground: oklch(0.333 0.013 17.816);
  --destructive: oklch(0.556 0.17 39.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.1 326.573);
  --chart-1: oklch(0.706 0.1 326.573);
  --chart-2: oklch(0.939 0 180);
  --chart-3: oklch(0.856 0.008 17.316);
  --chart-4: oklch(0.962 0 180);
  --chart-5: oklch(0.705 0.11 326.661);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.027 327.221);
  --foreground: oklch(0.992 0.003 325.602);
  --muted: oklch(0.262 0.064 327.2);
  --muted-foreground: oklch(0.746 0.012 325.694);
  --popover: oklch(0.124 0.031 327.231);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.031 327.231);
  --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.706 0.1 326.573);
  --primary-foreground: oklch(0.154 0.021 326.541);
  --secondary: oklch(0.257 0.008 325.819);
  --secondary-foreground: oklch(0.794 0.012 325.687);
  --accent: oklch(0.325 0.026 326.158);
  --accent-foreground: oklch(0.848 0.019 325.74);
  --destructive: oklch(0.655 0.203 39.558);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.1 326.573);
  --chart-1: oklch(0.706 0.1 326.573);
  --chart-2: oklch(0.257 0.008 325.819);
  --chart-3: oklch(0.325 0.026 326.158);
  --chart-4: oklch(0.288 0.01 325.832);
  --chart-5: oklch(0.705 0.11 326.661);
}