Sublime Monokai Default is a shadcn/ui theme built around a muted light blue primary color (#ebedef) with muted green accents (#515346). The light mode uses a green-tinted background (#282923). Dark mode keeps the muted light blue primary (#ebedef) on a green-tinted background (#282923).
| Token | Light | Dark |
|---|---|---|
| Background | #282923darkslategray | #282923darkslategray |
| Foreground | #f8f8f2whitesmoke | #f8f8f2whitesmoke |
| Card | #23241eblack | #23241eblack |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #20211cblack | #20211cblack |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ebedeflavender | #ebedeflavender |
| Primary foreground | #4b545ddarkslategray | #4b545ddarkslategray |
| Secondary | #3f4040darkslategray | #3f4040darkslategray |
| Secondary foreground | #d8d9d9gainsboro | #d8d9d9gainsboro |
| Muted | #34362bdarkslategray | #34362bdarkslategray |
| Muted foreground | #b6b9a6darkgray | #b6b9a6darkgray |
| Accent | #515346darkolivegreen | #515346darkolivegreen |
| Accent foreground | #e7e8e3gainsboro | #e7e8e3gainsboro |
| Destructive | #f04a2dtomato | #f04a2dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #333333darkslategray | #333333darkslategray |
| Input | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Ring | #ebedeflavender | #ebedeflavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.70:1 | AAA |
| Text on card | 15.66:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 6.40:1 | AA |
| Destructive | 3.65:1 | AA Large |
| Text on background | 13.70:1 | AAA |
| Text on card | 15.66:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 6.40:1 | AA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Sublime Monokai Default in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.279 0.011 114.799);
--foreground: oklch(0.977 0.008 106.548);
--muted: oklch(0.328 0.02 115.195);
--muted-foreground: oklch(0.779 0.027 114.697);
--popover: oklch(0.245 0.009 114.756);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.257 0.01 114.772);
--card-foreground: oklch(1 0 180);
--border: oklch(0.321 0 180);
--input: oklch(0.351 0 167.471);
--primary: oklch(0.946 0.003 247.859);
--primary-foreground: oklch(0.442 0.019 248.263);
--secondary: oklch(0.37 0.001 247.861);
--secondary-foreground: oklch(0.884 0.001 247.829);
--accent: oklch(0.435 0.02 114.906);
--accent-foreground: oklch(0.928 0.005 114.176);
--destructive: oklch(0.643 0.207 32.383);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.003 247.859);
--chart-1: oklch(0.946 0.003 247.859);
--chart-2: oklch(0.37 0.001 247.861);
--chart-3: oklch(0.435 0.02 114.906);
--chart-4: oklch(0.399 0.002 247.862);
--chart-5: oklch(0.945 0.004 247.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.279 0.011 114.799);
--foreground: oklch(0.977 0.008 106.548);
--muted: oklch(0.328 0.02 115.195);
--muted-foreground: oklch(0.779 0.027 114.697);
--popover: oklch(0.245 0.009 114.756);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.257 0.01 114.772);
--card-foreground: oklch(1 0 180);
--border: oklch(0.321 0 180);
--input: oklch(0.351 0 167.471);
--primary: oklch(0.946 0.003 247.859);
--primary-foreground: oklch(0.442 0.019 248.263);
--secondary: oklch(0.37 0.001 247.861);
--secondary-foreground: oklch(0.884 0.001 247.829);
--accent: oklch(0.435 0.02 114.906);
--accent-foreground: oklch(0.928 0.005 114.176);
--destructive: oklch(0.643 0.207 32.383);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.946 0.003 247.859);
--chart-1: oklch(0.946 0.003 247.859);
--chart-2: oklch(0.37 0.001 247.861);
--chart-3: oklch(0.435 0.02 114.906);
--chart-4: oklch(0.399 0.002 247.862);
--chart-5: oklch(0.945 0.004 247.869);
}