Measles is a shadcn/ui theme built around a vivid teal primary color (#5dfedb) with vivid cyan accents (#5dd0fe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#5dfedb) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010403black |
| Foreground | #03110eblack | #f6f8f8whitesmoke |
| Card | #fcfcfcsnow | #030706black |
| Card foreground | #030d0bblack | #f9fbfamintcream |
| Popover | #ffffffwhite | #010403black |
| Popover foreground | #03110eblack | #f6f8f8whitesmoke |
| Primary | #5dfedbaquamarine | #5dfedbaquamarine |
| Primary foreground | #002920black | #002920black |
| Secondary | #5dfe8alightgreen | #5dfe8alightgreen |
| Secondary foreground | #00290cblack | #00290cblack |
| Muted | #dbebe0gainsboro | #142419black |
| Muted foreground | #435649darkslategray | #a9bcafdarkgray |
| Accent | #5dd0felightskyblue | #5dd0felightskyblue |
| Accent foreground | #001d29black | #001d29black |
| Destructive | #b63e07firebrick | #e74f08orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5dfedbaquamarine | #5dfedbaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 12.47:1 | AAA |
| Secondary button | 12.12:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 9.90:1 | AAA |
| Destructive | 5.69:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 12.47:1 | AAA |
| Secondary button | 12.12:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 9.90:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Measles in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.163 0.022 179.232);
--muted: oklch(0.925 0.022 154.739);
--muted-foreground: oklch(0.432 0.031 153.778);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.163 0.022 179.232);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.145 0.019 180.987);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.904 0.143 175.69);
--primary-foreground: oklch(0.249 0.047 174.365);
--secondary: oklch(0.887 0.207 149.391);
--secondary-foreground: oklch(0.244 0.069 148.818);
--accent: oklch(0.81 0.122 227.308);
--accent-foreground: oklch(0.216 0.042 227.555);
--destructive: oklch(0.53 0.165 39.448);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.143 175.69);
--chart-1: oklch(0.904 0.143 175.69);
--chart-2: oklch(0.887 0.207 149.391);
--chart-3: oklch(0.81 0.122 227.308);
--chart-4: oklch(0.893 0.191 150.08);
--chart-5: oklch(0.91 0.146 175.509);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.009 182);
--foreground: oklch(0.978 0.002 182.01);
--muted: oklch(0.242 0.03 152.591);
--muted-foreground: oklch(0.776 0.027 154.528);
--popover: oklch(0.098 0.009 182);
--popover-foreground: oklch(0.978 0.002 182.01);
--card: oklch(0.123 0.012 182);
--card-foreground: oklch(0.986 0.001 182.029);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.904 0.143 175.69);
--primary-foreground: oklch(0.249 0.047 174.365);
--secondary: oklch(0.887 0.207 149.391);
--secondary-foreground: oklch(0.244 0.069 148.818);
--accent: oklch(0.81 0.122 227.308);
--accent-foreground: oklch(0.216 0.042 227.555);
--destructive: oklch(0.631 0.199 38.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.143 175.69);
--chart-1: oklch(0.904 0.143 175.69);
--chart-2: oklch(0.887 0.207 149.391);
--chart-3: oklch(0.81 0.122 227.308);
--chart-4: oklch(0.893 0.191 150.08);
--chart-5: oklch(0.91 0.146 175.509);
}