Ornery for shadcn/ui

Ornery is a shadcn/ui theme built around a blue primary color (#4f7aba) with green accents (#7aba4f). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4f7aba) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#040910black
#ffffffwhite
Card
#fcfcfcsnow
#030507black
Card foreground
#03070cblack
#ffffffwhite
Popover
#fcfcfcsnow
#030507black
Popover foreground
#03070cblack
#ffffffwhite
Primary
#4f7abasteelblue
#4f7abasteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ba4f7aindianred
#ba4f7aindianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2d4dagainsboro
#2b1d22black
Muted foreground
#49373edarkslategray
#c8b6bdsilver
Accent
#7aba4fyellowgreen
#7aba4fyellowgreen
Accent foreground
#1c2c11black
#1c2c11black
Destructive
#7a2106maroon
#f56032tomato
Destructive foreground
#fcc6b6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f7abasteelblue
#4f7abasteelblue

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.76:1AAA
Primary button4.35:1AA Large
Secondary button4.67:1AA
Muted text7.73:1AAA
Accent6.34:1AA
Destructive6.80:1AA
Dark mode
Text on background20.71:1AAA
Text on card20.44:1AAA
Primary button4.35:1AA Large
Secondary button4.67:1AA
Muted text8.39:1AAA
Accent6.34:1AA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.019 252.559);
  --muted: oklch(0.884 0.017 351.176);
  --muted-foreground: oklch(0.358 0.028 352.712);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.124 0.016 250.026);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.016 250.026);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.577 0.111 258.28);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.146 357.641);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.723 0.156 134.604);
  --accent-foreground: oklch(0.271 0.051 134.168);
  --destructive: oklch(0.388 0.128 35.789);
  --destructive-foreground: oklch(0.87 0.065 37.594);
  --ring: oklch(0.577 0.111 258.28);
  --chart-1: oklch(0.577 0.111 258.28);
  --chart-2: oklch(0.578 0.146 357.641);
  --chart-3: oklch(0.723 0.156 134.604);
  --chart-4: oklch(0.602 0.137 356.812);
  --chart-5: oklch(0.576 0.118 258.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 252.502);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.024 353.246);
  --muted-foreground: oklch(0.794 0.022 351.41);
  --popover: oklch(0.111 0.01 252.502);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.01 252.502);
  --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.577 0.111 258.28);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.146 357.641);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.723 0.156 134.604);
  --accent-foreground: oklch(0.271 0.051 134.168);
  --destructive: oklch(0.676 0.193 36.982);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.577 0.111 258.28);
  --chart-1: oklch(0.577 0.111 258.28);
  --chart-2: oklch(0.578 0.146 357.641);
  --chart-3: oklch(0.723 0.156 134.604);
  --chart-4: oklch(0.602 0.137 356.812);
  --chart-5: oklch(0.576 0.118 258.292);
}