Uniform is a shadcn/ui theme built around a muted deep teal primary color (#2d4d46) with neutral gray accents (#d8dad9). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#2d4d46) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030706black |
| Foreground | #020807black | #f9fbfbghostwhite |
| Card | #f7fdfcmintcream | #040b0ablack |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #f7fdfcmintcream | #040b0ablack |
| Popover foreground | #010403black | #fcfdfdwhite |
| Primary | #2d4d46darkslategray | #2d4d46darkslategray |
| Primary foreground | #cce1dcgainsboro | #cce1dcgainsboro |
| Secondary | #d8dad9gainsboro | #293331darkslategray |
| Secondary foreground | #3e4140darkslategray | #c1cdcasilver |
| Muted | #e2f3eflavender | #0c1d19black |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #d8dad9gainsboro | #293331darkslategray |
| Accent foreground | #3e4140darkslategray | #c1cdcasilver |
| Destructive | #8c3808saddlebrown | #f16413chocolate |
| Destructive foreground | #fcdccabisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d4d46darkslategray | #2d4d46darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Uniform in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 181.977);
--foreground: oklch(0.126 0.016 181.979);
--muted: oklch(0.95 0.018 181.539);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(0.989 0.006 181.885);
--popover-foreground: oklch(0.1 0.013 181.979);
--card: oklch(0.989 0.006 181.885);
--card-foreground: oklch(0.1 0.013 181.979);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.394 0.04 178.821);
--primary-foreground: oklch(0.892 0.023 181.322);
--secondary: oklch(0.886 0.002 182.013);
--secondary-foreground: oklch(0.373 0.004 181.802);
--accent: oklch(0.886 0.002 182.013);
--accent-foreground: oklch(0.373 0.004 181.802);
--destructive: oklch(0.451 0.126 44.249);
--destructive-foreground: oklch(0.917 0.043 51.979);
--ring: oklch(0.394 0.04 178.821);
--chart-1: oklch(0.394 0.04 178.821);
--chart-2: oklch(0.886 0.002 182.013);
--chart-3: oklch(0.886 0.002 182.013);
--chart-4: oklch(0.909 0.001 182.025);
--chart-5: oklch(0.398 0.043 178.464);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 182);
--foreground: oklch(0.986 0.002 181.998);
--muted: oklch(0.213 0.023 178.448);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0.141 0.014 181.748);
--popover-foreground: oklch(0.993 0.001 182.033);
--card: oklch(0.141 0.014 181.748);
--card-foreground: oklch(0.993 0.001 182.033);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.394 0.04 178.821);
--primary-foreground: oklch(0.892 0.023 181.322);
--secondary: oklch(0.311 0.014 180.732);
--secondary-foreground: oklch(0.838 0.014 181.6);
--accent: oklch(0.311 0.014 180.732);
--accent-foreground: oklch(0.838 0.014 181.6);
--destructive: oklch(0.673 0.191 43.721);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.394 0.04 178.821);
--chart-1: oklch(0.394 0.04 178.821);
--chart-2: oklch(0.311 0.014 180.732);
--chart-3: oklch(0.311 0.014 180.732);
--chart-4: oklch(0.342 0.016 180.687);
--chart-5: oklch(0.398 0.043 178.464);
}