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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.64:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 10.94:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 10.94:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 3.90:1 | AA Large |
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);
}