Unity is a shadcn/ui theme built around a vivid deep green primary color (#023605) with muted light green accents (#c7d6c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#023605) on a green-tinted background (#060f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f06black |
| Foreground | #010902black | #f6f8f6whitesmoke |
| Card | #fcfcfcsnow | #071208black |
| Card foreground | #010401black | #f9fbf9mintcream |
| Popover | #fcfcfcsnow | #071208black |
| Popover foreground | #010401black | #f9fbf9mintcream |
| Primary | #023605darkgreen | #023605darkgreen |
| Primary foreground | #0ef61dlime | #0ef61dlime |
| Secondary | #c7d6c8lightgrey | #1e1f1eblack |
| Secondary foreground | #2d3e2edarkslategray | #b6b9b6silver |
| Muted | #d2e0d3lightgrey | #1f2d20darkslategray |
| Muted foreground | #405441darkslategray | #abbfacdarkgray |
| Accent | #c7d6c8lightgrey | #1e1f1eblack |
| Accent foreground | #2d3e2edarkslategray | #b6b9b6silver |
| Destructive | #b82214firebrick | #e9483atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #023605darkgreen | #023605darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 18.27:1 | AAA |
| Text on card | 18.33:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 8.33:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Unity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.03 145.638);
--muted: oklch(0.892 0.023 147.29);
--muted-foreground: oklch(0.424 0.041 146.539);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.024 145.638);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.024 145.638);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.29 0.093 143.662);
--primary-foreground: oklch(0.845 0.282 142.852);
--secondary: oklch(0.861 0.026 147.245);
--secondary-foreground: oklch(0.344 0.035 146.463);
--accent: oklch(0.861 0.026 147.245);
--accent-foreground: oklch(0.344 0.035 146.463);
--destructive: oklch(0.506 0.186 30.005);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0.093 143.662);
--chart-1: oklch(0.29 0.093 143.662);
--chart-2: oklch(0.861 0.026 147.245);
--chart-3: oklch(0.861 0.026 147.245);
--chart-4: oklch(0.883 0.022 147.301);
--chart-5: oklch(0.293 0.095 143.613);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.024 146.263);
--foreground: oklch(0.978 0.004 147.508);
--muted: oklch(0.281 0.03 146.421);
--muted-foreground: oklch(0.785 0.035 147.091);
--popover: oklch(0.169 0.028 145.992);
--popover-foreground: oklch(0.986 0.002 147.521);
--card: oklch(0.169 0.028 145.992);
--card-foreground: oklch(0.986 0.002 147.521);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.29 0.093 143.662);
--primary-foreground: oklch(0.845 0.282 142.852);
--secondary: oklch(0.238 0.003 147.429);
--secondary-foreground: oklch(0.783 0.005 147.484);
--accent: oklch(0.238 0.003 147.429);
--accent-foreground: oklch(0.783 0.005 147.484);
--destructive: oklch(0.63 0.2 29.114);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0.093 143.662);
--chart-1: oklch(0.29 0.093 143.662);
--chart-2: oklch(0.238 0.003 147.429);
--chart-3: oklch(0.238 0.003 147.429);
--chart-4: oklch(0.271 0.003 147.421);
--chart-5: oklch(0.293 0.095 143.613);
}