Ornery for shadcn/ui

Ornery is a shadcn/ui theme built around a muted red primary color (#a1878d) with muted blue accents (#878da1). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted red primary (#a1878d) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040102black
Foreground
#140509black
#ffffffwhite
Card
#fdfcfcsnow
#040102black
Card foreground
#140509black
#ffffffwhite
Popover
#fdfcfcsnow
#040102black
Popover foreground
#140509black
#ffffffwhite
Primary
#a1878drosybrown
#a1878drosybrown
Primary foreground
#000000black
#000000black
Secondary
#8da187darkseagreen
#8da187darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#e9eee7linen
#121811black
Muted foreground
#646963dimgray
#979c96darkgray
Accent
#878da1lightslategray
#878da1lightslategray
Accent foreground
#000000black
#000000black
Destructive
#962803saddlebrown
#fa4205orangered
Destructive foreground
#fed9cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a1878drosybrown
#a1878drosybrown

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button6.36:1AA
Secondary button7.57:1AAA
Muted text4.77:1AA
Accent6.38:1AA
Destructive6.16:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.36:1AA
Secondary button7.57:1AAA
Muted text6.43:1AA
Accent6.38:1AA
Destructive3.58: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.991 0.002 359.926);
  --foreground: oklch(0.145 0.031 3.073);
  --muted: oklch(0.944 0.012 137.785);
  --muted-foreground: oklch(0.515 0.011 137.8);
  --popover: oklch(0.991 0.002 359.926);
  --popover-foreground: oklch(0.145 0.031 3.073);
  --card: oklch(0.991 0.002 359.926);
  --card-foreground: oklch(0.145 0.031 3.073);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.032 1.24);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.686 0.043 137.877);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.646 0.03 270.924);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.448 0.151 35.876);
  --destructive-foreground: oklch(0.914 0.044 39.289);
  --ring: oklch(0.649 0.032 1.24);
  --chart-1: oklch(0.649 0.032 1.24);
  --chart-2: oklch(0.686 0.043 137.877);
  --chart-3: oklch(0.646 0.03 270.924);
  --chart-4: oklch(0.709 0.04 137.863);
  --chart-5: oklch(0.645 0.041 1.596);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 359.802);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.017 137.93);
  --muted-foreground: oklch(0.687 0.01 137.788);
  --popover: oklch(0.085 0.012 359.802);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.012 359.802);
  --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.649 0.032 1.24);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.686 0.043 137.877);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.646 0.03 270.924);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.649 0.226 34.903);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.032 1.24);
  --chart-1: oklch(0.649 0.032 1.24);
  --chart-2: oklch(0.686 0.043 137.877);
  --chart-3: oklch(0.646 0.03 270.924);
  --chart-4: oklch(0.709 0.04 137.863);
  --chart-5: oklch(0.645 0.041 1.596);
}