βui - Monokai Octagon is a shadcn/ui theme built around a vivid yellow primary color (#ebac00) with muted blue accents (#474b66). The light mode uses a blue-tinted background (#282a39). Dark mode keeps the vivid yellow primary (#ebac00) on a blue-tinted background (#282a39).
| Token | Light | Dark |
|---|---|---|
| Background | #282a39darkslategray | #282a39darkslategray |
| Foreground | #e9f1f0whitesmoke | #e9f1f0whitesmoke |
| Card | #242533darkslategray | #242533darkslategray |
| Card foreground | #f9fbfbghostwhite | #f9fbfbghostwhite |
| Popover | #212330darkslategray | #212330darkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ebac00orange | #ebac00orange |
| Primary foreground | #1f1600black | #1f1600black |
| Secondary | #53492ddarkolivegreen | #53492ddarkolivegreen |
| Secondary foreground | #e4decdgainsboro | #e4decdgainsboro |
| Muted | #343542darkslategray | #343542darkslategray |
| Muted foreground | #b2b4c2silver | #b2b4c2silver |
| Accent | #474b66darkslategray | #474b66darkslategray |
| Accent foreground | #edeef2whitesmoke | #edeef2whitesmoke |
| Destructive | #f01d0ared | #f01d0ared |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #383942darkslategray | #383942darkslategray |
| Input | #3f414adarkslategray | #3f414adarkslategray |
| Ring | #ebac00orange | #ebac00orange |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.39:1 | AAA |
| Text on card | 14.53:1 | AAA |
| Primary button | 8.88:1 | AAA |
| Secondary button | 6.65:1 | AA |
| Muted text | 5.87:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.30:1 | AA Large |
| Text on background | 12.39:1 | AAA |
| Text on card | 14.53:1 | AAA |
| Primary button | 8.88:1 | AAA |
| Secondary button | 6.65:1 | AA |
| Muted text | 5.87:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use βui - Monokai Octagon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.289 0.028 278.614);
--foreground: oklch(0.952 0.008 188.699);
--muted: oklch(0.333 0.022 279.217);
--muted-foreground: oklch(0.772 0.021 279.898);
--popover: oklch(0.261 0.024 278.697);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.27 0.026 278.667);
--card-foreground: oklch(0.986 0.002 188.852);
--border: oklch(0.349 0.015 279.62);
--input: oklch(0.376 0.017 279.603);
--primary: oklch(0.782 0.161 82.213);
--primary-foreground: oklch(0.206 0.042 91.221);
--secondary: oklch(0.407 0.045 90.254);
--secondary-foreground: oklch(0.901 0.024 90.298);
--accent: oklch(0.42 0.046 278.38);
--accent-foreground: oklch(0.949 0.007 280.222);
--destructive: oklch(0.608 0.238 30.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.161 82.213);
--chart-1: oklch(0.782 0.161 82.213);
--chart-2: oklch(0.407 0.045 90.254);
--chart-3: oklch(0.42 0.046 278.38);
--chart-4: oklch(0.439 0.049 90.237);
--chart-5: oklch(0.789 0.163 81.77);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.289 0.028 278.614);
--foreground: oklch(0.952 0.008 188.699);
--muted: oklch(0.333 0.022 279.217);
--muted-foreground: oklch(0.772 0.021 279.898);
--popover: oklch(0.261 0.024 278.697);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.27 0.026 278.667);
--card-foreground: oklch(0.986 0.002 188.852);
--border: oklch(0.349 0.015 279.62);
--input: oklch(0.376 0.017 279.603);
--primary: oklch(0.782 0.161 82.213);
--primary-foreground: oklch(0.206 0.042 91.221);
--secondary: oklch(0.407 0.045 90.254);
--secondary-foreground: oklch(0.901 0.024 90.298);
--accent: oklch(0.42 0.046 278.38);
--accent-foreground: oklch(0.949 0.007 280.222);
--destructive: oklch(0.608 0.238 30.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.161 82.213);
--chart-1: oklch(0.782 0.161 82.213);
--chart-2: oklch(0.407 0.045 90.254);
--chart-3: oklch(0.42 0.046 278.38);
--chart-4: oklch(0.439 0.049 90.237);
--chart-5: oklch(0.789 0.163 81.77);
}