Optimisation is a shadcn/ui theme built around a muted deep teal primary color (#384746) with muted deep blue accents (#384147). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#384746) on a teal-tinted background (#050f0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f0eblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #071312black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #071312black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #384746darkslategray | #384746darkslategray |
| Primary foreground | #d4dddcgainsboro | #d4dddcgainsboro |
| Secondary | #38473edarkslategray | #38473edarkslategray |
| Secondary foreground | #d4ddd8gainsboro | #d4ddd8gainsboro |
| Muted | #d1eadbgainsboro | #152e1fblack |
| Muted foreground | #58655ddimgray | #9aa79fdarkgray |
| Accent | #384147darkslategray | #384147darkslategray |
| Accent foreground | #d4daddgainsboro | #d4daddgainsboro |
| Destructive | #cf1002firebrick | #e81202red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #384746darkslategray | #384746darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 4.82:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Optimisation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.033 159.369);
--muted-foreground: oklch(0.493 0.02 159.247);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.386 0.02 188.88);
--primary-foreground: oklch(0.891 0.01 189.821);
--secondary: oklch(0.383 0.025 158.639);
--secondary-foreground: oklch(0.89 0.012 159.912);
--accent: oklch(0.37 0.016 237.101);
--accent-foreground: oklch(0.884 0.008 236.563);
--destructive: oklch(0.541 0.216 29.868);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.02 188.88);
--chart-1: oklch(0.386 0.02 188.88);
--chart-2: oklch(0.383 0.025 158.639);
--chart-3: oklch(0.37 0.016 237.101);
--chart-4: oklch(0.413 0.027 158.607);
--chart-5: oklch(0.39 0.024 188.606);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.016 188.185);
--foreground: oklch(1 0 180);
--muted: oklch(0.275 0.042 155.912);
--muted-foreground: oklch(0.716 0.019 159.622);
--popover: oklch(0.174 0.019 187.649);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.174 0.019 187.649);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.386 0.02 188.88);
--primary-foreground: oklch(0.891 0.01 189.821);
--secondary: oklch(0.383 0.025 158.639);
--secondary-foreground: oklch(0.89 0.012 159.912);
--accent: oklch(0.37 0.016 237.101);
--accent-foreground: oklch(0.884 0.008 236.563);
--destructive: oklch(0.589 0.236 29.807);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.02 188.88);
--chart-1: oklch(0.386 0.02 188.88);
--chart-2: oklch(0.383 0.025 158.639);
--chart-3: oklch(0.37 0.016 237.101);
--chart-4: oklch(0.413 0.027 158.607);
--chart-5: oklch(0.39 0.024 188.606);
}