Empire for shadcn/ui

Empire is a shadcn/ui theme built around a green primary color (#acda7c) with pink accents (#da7cac). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#acda7c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d1504black
#fafbf9snow
Card
#fcfcfcsnow
#030303black
Card foreground
#0a1104black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0d1504black
#fafbf9snow
Primary
#acda7clightgreen
#acda7clightgreen
Primary foreground
#121c08black
#121c08black
Secondary
#7cacdacornflowerblue
#7cacdacornflowerblue
Secondary foreground
#08121cblack
#08121cblack
Muted
#d9e1e8gainsboro
#171f26black
Muted foreground
#51575cdimgray
#a3a8aedarkgray
Accent
#da7cacpalevioletred
#da7cacpalevioletred
Accent foreground
#1c0812black
#1c0812black
Destructive
#7a0c06maroon
#f53329crimson
Destructive foreground
#fcb9b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#acda7clightgreen
#acda7clightgreen

Contrast

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

Light mode
Text on background18.64:1AAA
Text on card18.76:1AAA
Primary button10.94:1AAA
Secondary button7.90:1AAA
Muted text5.52:1AA
Accent6.81:1AA
Destructive6.79:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.28:1AAA
Primary button10.94:1AAA
Secondary button7.90:1AAA
Muted text6.96:1AA
Accent6.81:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.182 0.035 129.393);
  --muted: oklch(0.905 0.013 246.134);
  --muted-foreground: oklch(0.453 0.011 246.236);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.182 0.035 129.393);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.165 0.03 128.281);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.835 0.132 129.929);
  --primary-foreground: oklch(0.21 0.039 130.316);
  --secondary: oklch(0.728 0.084 247.396);
  --secondary-foreground: oklch(0.178 0.025 247.484);
  --accent: oklch(0.703 0.13 348.685);
  --accent-foreground: oklch(0.171 0.039 349.564);
  --destructive: oklch(0.37 0.143 29.47);
  --destructive-foreground: oklch(0.847 0.077 22.24);
  --ring: oklch(0.835 0.132 129.929);
  --chart-1: oklch(0.835 0.132 129.929);
  --chart-2: oklch(0.728 0.084 247.396);
  --chart-3: oklch(0.703 0.13 348.685);
  --chart-4: oklch(0.753 0.076 247.185);
  --chart-5: oklch(0.84 0.138 130.042);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 127.822);
  --muted: oklch(0.234 0.018 246.878);
  --muted-foreground: oklch(0.73 0.009 246.116);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 127.822);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 127.805);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.835 0.132 129.929);
  --primary-foreground: oklch(0.21 0.039 130.316);
  --secondary: oklch(0.728 0.084 247.396);
  --secondary-foreground: oklch(0.178 0.025 247.484);
  --accent: oklch(0.703 0.13 348.685);
  --accent-foreground: oklch(0.171 0.039 349.564);
  --destructive: oklch(0.63 0.229 28.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.132 129.929);
  --chart-1: oklch(0.835 0.132 129.929);
  --chart-2: oklch(0.728 0.084 247.396);
  --chart-3: oklch(0.703 0.13 348.685);
  --chart-4: oklch(0.753 0.076 247.185);
  --chart-5: oklch(0.84 0.138 130.042);
}