Optimization is a shadcn/ui theme built around a muted light red primary color (#e7d5d8) with muted light blue accents (#d5d8e7). The light mode uses a neutral background (#fbf8f9). Dark mode keeps the muted light red primary (#e7d5d8) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8f9snow | #030202black |
| Foreground | #050101black | #f8f7f7whitesmoke |
| Card | #faf5f6whitesmoke | #070404black |
| Card foreground | #000000black | #faf9fasnow |
| Popover | #faf5f6whitesmoke | #070404black |
| Popover foreground | #000000black | #faf9fasnow |
| Primary | #e7d5d8gainsboro | #e7d5d8gainsboro |
| Primary foreground | #573239darkslategray | #573239darkslategray |
| Secondary | #d8e7d5gainsboro | #d8e7d5gainsboro |
| Secondary foreground | #395732darkslategray | #395732darkslategray |
| Muted | #e6ece4beige | #151b13black |
| Muted foreground | #555f53dimgray | #a2aca0darkgray |
| Accent | #d5d8e7gainsboro | #d5d8e7gainsboro |
| Accent foreground | #323957darkslategray | #323957darkslategray |
| Destructive | #7c0404maroon | #ed0707red |
| Destructive foreground | #fdb5b5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7d5d8gainsboro | #e7d5d8gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.30:1 | AA |
| Muted text | 5.54:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.30:1 | AA |
| Muted text | 7.49:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Optimization in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 4.402);
--foreground: oklch(0.079 0.021 4.978);
--muted: oklch(0.936 0.012 139.98);
--muted-foreground: oklch(0.474 0.023 139.948);
--popover: oklch(0.974 0.005 4.449);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.005 4.449);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.888 0.02 4.911);
--primary-foreground: oklch(0.366 0.055 8.243);
--secondary: oklch(0.911 0.029 139.963);
--secondary-foreground: oklch(0.424 0.069 139.919);
--accent: oklch(0.885 0.02 275.856);
--accent-foreground: oklch(0.353 0.054 273.679);
--destructive: oklch(0.37 0.149 28.773);
--destructive-foreground: oklch(0.84 0.084 18.983);
--ring: oklch(0.888 0.02 4.911);
--chart-1: oklch(0.888 0.02 4.911);
--chart-2: oklch(0.911 0.029 139.963);
--chart-3: oklch(0.885 0.02 275.856);
--chart-4: oklch(0.932 0.022 139.97);
--chart-5: oklch(0.887 0.023 4.979);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 4.507);
--foreground: oklch(0.976 0.002 4.362);
--muted: oklch(0.212 0.017 139.927);
--muted-foreground: oklch(0.733 0.021 139.965);
--popover: oklch(0.11 0.009 4.507);
--popover-foreground: oklch(0.984 0.001 4.345);
--card: oklch(0.11 0.009 4.507);
--card-foreground: oklch(0.984 0.001 4.345);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.02 4.911);
--primary-foreground: oklch(0.366 0.055 8.243);
--secondary: oklch(0.911 0.029 139.963);
--secondary-foreground: oklch(0.424 0.069 139.919);
--accent: oklch(0.885 0.02 275.856);
--accent-foreground: oklch(0.353 0.054 273.679);
--destructive: oklch(0.597 0.242 29.021);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.02 4.911);
--chart-1: oklch(0.888 0.02 4.911);
--chart-2: oklch(0.911 0.029 139.963);
--chart-3: oklch(0.885 0.02 275.856);
--chart-4: oklch(0.932 0.022 139.97);
--chart-5: oklch(0.887 0.023 4.979);
}