Uniform is a shadcn/ui theme built around a vivid deep green primary color (#2b4700) with vivid deep violet accents (#1d0047). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#2b4700) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #0b1005black | #fdfdfcwhite |
| Card | #ffffffwhite | #030401black |
| Card foreground | #0b1005black | #fdfdfcwhite |
| Popover | #ffffffwhite | #030401black |
| Popover foreground | #0b1005black | #fdfdfcwhite |
| Primary | #2b4700darkgreen | #2b4700darkgreen |
| Primary foreground | #a1ff14greenyellow | #a1ff14greenyellow |
| Secondary | #1d0047midnightblue | #1d0047midnightblue |
| Secondary foreground | #af7affmediumpurple | #af7affmediumpurple |
| Muted | #f2f1f4whitesmoke | #0c0b0eblack |
| Muted foreground | #636165dimgray | #9b9a9edarkgray |
| Accent | #1d0047midnightblue | #1d0047midnightblue |
| Accent foreground | #af7affmediumpurple | #af7affmediumpurple |
| Destructive | #d33212firebrick | #ed4c2ctomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b4700darkgreen | #2b4700darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 5.44:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 4.94:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 7.00:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Uniform in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.163 0.025 125.299);
--muted: oklch(0.96 0.004 304.292);
--muted-foreground: oklch(0.497 0.007 304.157);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.163 0.025 125.299);
--card: oklch(1 0 180);
--card-foreground: oklch(0.163 0.025 125.299);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.099 130.699);
--primary-foreground: oklch(0.906 0.246 131.522);
--secondary: oklch(0.208 0.117 291.337);
--secondary-foreground: oklch(0.692 0.191 299.889);
--accent: oklch(0.208 0.117 291.337);
--accent-foreground: oklch(0.692 0.191 299.889);
--destructive: oklch(0.569 0.201 32.681);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.099 130.699);
--chart-1: oklch(0.363 0.099 130.699);
--chart-2: oklch(0.208 0.117 291.337);
--chart-3: oklch(0.208 0.117 291.337);
--chart-4: oklch(0.236 0.133 290.008);
--chart-5: oklch(0.366 0.101 130.83);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.014 123.713);
--foreground: oklch(0.994 0.002 124.369);
--muted: oklch(0.154 0.006 303.825);
--muted-foreground: oklch(0.687 0.006 304.219);
--popover: oklch(0.1 0.014 123.713);
--popover-foreground: oklch(0.994 0.002 124.369);
--card: oklch(0.1 0.014 123.713);
--card-foreground: oklch(0.994 0.002 124.369);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.363 0.099 130.699);
--primary-foreground: oklch(0.906 0.246 131.522);
--secondary: oklch(0.208 0.117 291.337);
--secondary-foreground: oklch(0.692 0.191 299.889);
--accent: oklch(0.208 0.117 291.337);
--accent-foreground: oklch(0.692 0.191 299.889);
--destructive: oklch(0.638 0.202 33.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.099 130.699);
--chart-1: oklch(0.363 0.099 130.699);
--chart-2: oklch(0.208 0.117 291.337);
--chart-3: oklch(0.208 0.117 291.337);
--chart-4: oklch(0.236 0.133 290.008);
--chart-5: oklch(0.366 0.101 130.83);
}