Ornate for shadcn/ui

Ornate is a shadcn/ui theme built around a vivid green primary color (#039b2c) with muted light green accents (#dbe1dc). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the vivid green primary (#039b2c) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#010402black
Foreground
#020804black
#fcfdfcwhite
Card
#f7fdf8mintcream
#010402black
Card foreground
#020804black
#fcfdfcwhite
Popover
#f7fdf8mintcream
#010402black
Popover foreground
#020804black
#fcfdfcwhite
Primary
#039b2cforestgreen
#039b2cforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dbe1dcgainsboro
#292929darkslategray
Secondary foreground
#3e4c42darkslategray
#c2c2c2silver
Muted
#edf2efwhitesmoke
#120d0dblack
Muted foreground
#4f6355dimgray
#b09c9cdarkgray
Accent
#dbe1dcgainsboro
#292929darkslategray
Accent foreground
#3e4c42darkslategray
#c2c2c2silver
Destructive
#aa3308firebrick
#f45115orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#039b2cforestgreen
#039b2cforestgreen

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button3.66:1AA Large
Secondary button6.82:1AA
Muted text5.71:1AA
Accent6.82:1AA
Destructive6.55:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button3.66:1AA Large
Secondary button8.18:1AAA
Muted text7.42:1AAA
Accent8.18:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 154.371);
  --foreground: oklch(0.124 0.021 153.869);
  --muted: oklch(0.957 0.007 154.397);
  --muted-foreground: oklch(0.479 0.033 153.239);
  --popover: oklch(0.988 0.009 154.371);
  --popover-foreground: oklch(0.124 0.021 153.869);
  --card: oklch(0.988 0.009 154.371);
  --card-foreground: oklch(0.124 0.021 153.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.6 0.186 145.26);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.904 0.01 154.338);
  --secondary-foreground: oklch(0.4 0.024 153.402);
  --accent: oklch(0.904 0.01 154.338);
  --accent-foreground: oklch(0.4 0.024 153.402);
  --destructive: oklch(0.497 0.162 36.873);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.186 145.26);
  --chart-1: oklch(0.6 0.186 145.26);
  --chart-2: oklch(0.904 0.01 154.338);
  --chart-3: oklch(0.904 0.01 154.338);
  --chart-4: oklch(0.926 0.007 154.386);
  --chart-5: oklch(0.606 0.19 145.102);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.014 153.981);
  --foreground: oklch(0.993 0.001 154.514);
  --muted: oklch(0.165 0.008 18.041);
  --muted-foreground: oklch(0.71 0.023 17.712);
  --popover: oklch(0.097 0.014 153.981);
  --popover-foreground: oklch(0.993 0.001 154.514);
  --card: oklch(0.097 0.014 153.981);
  --card-foreground: oklch(0.993 0.001 154.514);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.6 0.186 145.26);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.28 0 180);
  --secondary-foreground: oklch(0.813 0 165.964);
  --accent: oklch(0.28 0 180);
  --accent-foreground: oklch(0.813 0 165.964);
  --destructive: oklch(0.654 0.209 37.251);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.186 145.26);
  --chart-1: oklch(0.6 0.186 145.26);
  --chart-2: oklch(0.28 0 180);
  --chart-3: oklch(0.28 0 180);
  --chart-4: oklch(0.311 0 180);
  --chart-5: oklch(0.606 0.19 145.102);
}