Ukraine Dark is a shadcn/ui theme built around a vivid blue primary color (#3d61ff) with muted light blue accents (#ced2e3). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid yellow primary (#ffd800) on a blue-tinted background (#00183d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #00183dmidnightblue |
| Foreground | #040611black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #00183dmidnightblue |
| Card foreground | #03050cblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #00183dmidnightblue |
| Popover foreground | #03050cblack | #ffffffwhite |
| Primary | #3d61ffroyalblue | #ffd800gold |
| Primary foreground | #ffffffwhite | #000000black |
| Secondary | #e0e2ebgainsboro | #0056b9darkcyan |
| Secondary foreground | #3d435cdarkslategray | #ffffffwhite |
| Muted | #d7d9e0gainsboro | #00183dmidnightblue |
| Muted foreground | #555868dimgray | #4d6180dimgray |
| Accent | #ced2e3lightgrey | #81d8d0skyblue |
| Accent foreground | #2e3452darkslategray | #333333darkslategray |
| Destructive | #ff0d00red | #ed2939crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #001029black |
| Input | #e5e7eblavender | #001029black |
| Ring | #3d61ffroyalblue | #3d61ffroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.95:1 | AA Large |
| Text on background | 17.09:1 | AAA |
| Text on card | 17.52:1 | AAA |
| Primary button | 15.07:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 2.78:1 | Fail |
| Accent | 7.62:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Ukraine Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.026 268.939);
--muted: oklch(0.885 0.01 276.021);
--muted-foreground: oklch(0.464 0.025 275.387);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.114 0.022 268.251);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.114 0.022 268.251);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.567 0.237 267.896);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.915 0.011 276);
--secondary-foreground: oklch(0.388 0.043 274.435);
--accent: oklch(0.866 0.024 275.781);
--accent-foreground: oklch(0.335 0.052 273.604);
--destructive: oklch(0.63 0.256 29.629);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.237 267.896);
--chart-1: oklch(0.567 0.237 267.896);
--chart-2: oklch(0.915 0.011 276);
--chart-3: oklch(0.866 0.024 275.781);
--chart-4: oklch(0.94 0.008 276.055);
--chart-5: oklch(0.565 0.244 267.612);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.217 0.078 257.353);
--foreground: oklch(0.991 0.001 276.148);
--muted: oklch(0.217 0.078 257.353);
--muted-foreground: oklch(0.488 0.055 258.176);
--popover: oklch(0.217 0.078 257.353);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.217 0.078 257.353);
--card-foreground: oklch(1 0 180);
--border: oklch(0.176 0.058 254.939);
--input: oklch(0.176 0.058 254.939);
--primary: oklch(0.889 0.183 95.754);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.472 0.172 257.595);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.825 0.085 188.115);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.611 0.227 23.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.237 267.896);
--chart-1: oklch(0.889 0.183 95.754);
--chart-2: oklch(0.472 0.172 257.595);
--chart-3: oklch(0.825 0.085 188.115);
--chart-4: oklch(0.5 0.183 257.742);
--chart-5: oklch(0.898 0.185 95.533);
}