Uniform is a shadcn/ui theme built around a vivid purple primary color (#bd11df) with vivid teal accents (#11dfbd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#bd11df) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c020eblack | #fbf8fbsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #080109black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0c020eblack | #fbf8fbsnow |
| Primary | #bd11dfdarkviolet | #bd11dfdarkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfbd11goldenrod | #dfbd11goldenrod |
| Secondary foreground | #211c02black | #211c02black |
| Muted | #f2efe4linen | #1b190dblack |
| Muted foreground | #4f4c3bdarkolivegreen | #c4c1b0silver |
| Accent | #11dfbddarkturquoise | #11dfbddarkturquoise |
| Accent foreground | #02211cblack | #02211cblack |
| Destructive | #a30d05darkred | #f8261borangered |
| Destructive foreground | #fededcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bd11dfdarkviolet | #bd11dfdarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 4.88:1 | AA |
| Secondary button | 9.24:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 9.94:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 4.88:1 | AA |
| Secondary button | 9.24:1 | AAA |
| Muted text | 9.72:1 | AAA |
| Accent | 9.94:1 | AAA |
| Destructive | 3.97: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.117 0.041 322.634);
--muted: oklch(0.951 0.016 97.473);
--muted-foreground: oklch(0.414 0.028 98.017);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.041 322.634);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.036 323.241);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.586 0.276 319.254);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.803 0.163 95.495);
--secondary-foreground: oklch(0.226 0.043 98.542);
--accent: oklch(0.808 0.149 176);
--accent-foreground: oklch(0.224 0.038 179.747);
--destructive: oklch(0.454 0.18 29.581);
--destructive-foreground: oklch(0.927 0.035 21.405);
--ring: oklch(0.586 0.276 319.254);
--chart-1: oklch(0.586 0.276 319.254);
--chart-2: oklch(0.803 0.163 95.495);
--chart-3: oklch(0.808 0.149 176);
--chart-4: oklch(0.841 0.17 95.449);
--chart-5: oklch(0.591 0.28 319.109);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.005 320.539);
--muted: oklch(0.212 0.021 98.241);
--muted-foreground: oklch(0.809 0.024 97.634);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.005 320.539);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 320.535);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.586 0.276 319.254);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.803 0.163 95.495);
--secondary-foreground: oklch(0.226 0.043 98.542);
--accent: oklch(0.808 0.149 176);
--accent-foreground: oklch(0.224 0.038 179.747);
--destructive: oklch(0.627 0.24 29.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.586 0.276 319.254);
--chart-1: oklch(0.586 0.276 319.254);
--chart-2: oklch(0.803 0.163 95.495);
--chart-3: oklch(0.808 0.149 176);
--chart-4: oklch(0.841 0.17 95.449);
--chart-5: oklch(0.591 0.28 319.109);
}