Monokai Light Theme is a shadcn/ui theme built around a neutral gray primary color (#2b2b2b) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the neutral gray primary (#2b2b2b) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #333333darkslategray | #333333darkslategray |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #262626darkslategray | #262626darkslategray |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #1a1a1ablack | #1a1a1ablack |
| Primary | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Primary foreground | #c4c4c4silver | #c4c4c4silver |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #d00a06firebrick | #d00a06firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.09:1 | AAA |
| Text on card | 13.85:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.64:1 | AA |
| Text on background | 12.09:1 | AAA |
| Text on card | 13.85:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.64:1 | AA |
Paste this into your globals.css to use Monokai Light Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.216 0 180);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.27 0 180);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.29 0 180);
--primary-foreground: oklch(0.821 0 171.87);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.541 0.218 29.146);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0 180);
--chart-1: oklch(0.29 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.288 0.004 17.377);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.216 0 180);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.27 0 180);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.29 0 180);
--primary-foreground: oklch(0.821 0 171.87);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.541 0.218 29.146);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0 180);
--chart-1: oklch(0.29 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.288 0.004 17.377);
}