Ornery for shadcn/ui

Ornery is a shadcn/ui theme built around a muted light green primary color (#c9d4cc) with muted light teal accents (#c9d4d1). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the muted light green primary (#c9d4cc) on a green-tinted background (#050f08).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#050f08black
Foreground
#010903black
#ffffffwhite
Card
#f7fcf9mintcream
#050f08black
Card foreground
#010903black
#ffffffwhite
Popover
#f7fcf9mintcream
#050f08black
Popover foreground
#010903black
#ffffffwhite
Primary
#c9d4cclightgrey
#c9d4cclightgrey
Primary foreground
#303b33darkslategray
#303b33darkslategray
Secondary
#ccd4c9lightgrey
#ccd4c9lightgrey
Secondary foreground
#323b30darkslategray
#323b30darkslategray
Muted
#e6ece4beige
#151b13black
Muted foreground
#3f403fdarkslategray
#bfc0bfsilver
Accent
#c9d4d1lightgrey
#c9d4d1lightgrey
Accent foreground
#303b39darkslategray
#303b39darkslategray
Destructive
#b11a06firebrick
#f84c35tomato
Destructive foreground
#feeeeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9d4cclightgrey
#c9d4cclightgrey

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.65:1AAA
Secondary button7.65:1AAA
Muted text8.65:1AAA
Accent7.63:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.65:1AAA
Secondary button7.65:1AAA
Muted text9.63:1AAA
Accent7.63:1AAA
Destructive3.46: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.988 0.007 154.397);
  --foreground: oklch(0.125 0.026 153.718);
  --muted: oklch(0.936 0.011 138.343);
  --muted-foreground: oklch(0.372 0.003 138.337);
  --popover: oklch(0.988 0.007 154.397);
  --popover-foreground: oklch(0.125 0.026 153.718);
  --card: oklch(0.988 0.007 154.397);
  --card-foreground: oklch(0.125 0.026 153.718);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.859 0.016 154.201);
  --primary-foreground: oklch(0.34 0.022 153.346);
  --secondary: oklch(0.86 0.017 138.351);
  --secondary-foreground: oklch(0.342 0.024 138.411);
  --accent: oklch(0.861 0.012 180.562);
  --accent-foreground: oklch(0.342 0.016 179.549);
  --destructive: oklch(0.488 0.186 30.869);
  --destructive-foreground: oklch(0.96 0.018 26.577);
  --ring: oklch(0.859 0.016 154.201);
  --chart-1: oklch(0.859 0.016 154.201);
  --chart-2: oklch(0.86 0.017 138.351);
  --chart-3: oklch(0.861 0.012 180.562);
  --chart-4: oklch(0.883 0.014 138.347);
  --chart-5: oklch(0.861 0.02 154.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.023 153.143);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.016 138.424);
  --muted-foreground: oklch(0.806 0.002 138.333);
  --popover: oklch(0.156 0.023 153.143);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.023 153.143);
  --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.859 0.016 154.201);
  --primary-foreground: oklch(0.34 0.022 153.346);
  --secondary: oklch(0.86 0.017 138.351);
  --secondary-foreground: oklch(0.342 0.024 138.411);
  --accent: oklch(0.861 0.012 180.562);
  --accent-foreground: oklch(0.342 0.016 179.549);
  --destructive: oklch(0.657 0.212 30.82);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.859 0.016 154.201);
  --chart-1: oklch(0.859 0.016 154.201);
  --chart-2: oklch(0.86 0.017 138.351);
  --chart-3: oklch(0.861 0.012 180.562);
  --chart-4: oklch(0.883 0.014 138.347);
  --chart-5: oklch(0.861 0.02 154.112);
}