Cobalite Bug is a shadcn/ui theme built around a vivid light indigo primary color (#a392f7) with neutral gray accents (#d8d7da). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid light indigo primary (#a392f7) on an indigo-tinted background (#060410).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #060410black |
| Foreground | #04020eblack | #ffffffwhite |
| Card | #f5f4fawhitesmoke | #080514black |
| Card foreground | #020109black | #ffffffwhite |
| Popover | #f5f4fawhitesmoke | #080514black |
| Popover foreground | #020109black | #ffffffwhite |
| Primary | #a392f7mediumpurple | #a392f7mediumpurple |
| Primary foreground | #120651midnightblue | #120651midnightblue |
| Secondary | #d8d7dagainsboro | #191820black |
| Secondary foreground | #3e3d42darkslategray | #aeaac0darkgray |
| Muted | #d6d5ddgainsboro | #23222adarkslategray |
| Muted foreground | #5f5d69dimgray | #9896a2darkgray |
| Accent | #d8d7dagainsboro | #191820black |
| Accent foreground | #3e3d42darkslategray | #aeaac0darkgray |
| Destructive | #da0a07red | #ed0b07red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e3e2e9gainsboro | #201f29black |
| Input | #e3e2e9gainsboro | #201f29black |
| Ring | #a392f7mediumpurple | #a392f7mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 4.41:1 | AA Large |
| Accent | 7.51:1 | AAA |
| Destructive | 5.22:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Cobalite Bug in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.005 293.962);
--foreground: oklch(0.101 0.036 291.037);
--muted: oklch(0.875 0.012 293.819);
--muted-foreground: oklch(0.486 0.019 293.328);
--popover: oklch(0.971 0.008 293.909);
--popover-foreground: oklch(0.088 0.031 291.449);
--card: oklch(0.971 0.008 293.909);
--card-foreground: oklch(0.088 0.031 291.449);
--border: oklch(0.916 0.01 293.868);
--input: oklch(0.916 0.01 293.868);
--primary: oklch(0.716 0.144 289.899);
--primary-foreground: oklch(0.218 0.123 276.934);
--secondary: oklch(0.881 0.004 293.977);
--secondary-foreground: oklch(0.364 0.009 293.615);
--accent: oklch(0.881 0.004 293.977);
--accent-foreground: oklch(0.364 0.009 293.615);
--destructive: oklch(0.56 0.226 29.151);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.716 0.144 289.899);
--chart-1: oklch(0.716 0.144 289.899);
--chart-2: oklch(0.881 0.004 293.977);
--chart-3: oklch(0.881 0.004 293.977);
--chart-4: oklch(0.905 0.003 293.997);
--chart-5: oklch(0.713 0.149 289.711);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.029 291.514);
--foreground: oklch(1 0 180);
--muted: oklch(0.257 0.016 292.902);
--muted-foreground: oklch(0.677 0.017 293.581);
--popover: oklch(0.133 0.033 290.409);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.033 290.409);
--card-foreground: oklch(1 0 180);
--border: oklch(0.244 0.019 292.579);
--input: oklch(0.244 0.019 292.579);
--primary: oklch(0.716 0.144 289.899);
--primary-foreground: oklch(0.218 0.123 276.934);
--secondary: oklch(0.214 0.017 292.588);
--secondary-foreground: oklch(0.748 0.032 293.264);
--accent: oklch(0.214 0.017 292.588);
--accent-foreground: oklch(0.748 0.032 293.264);
--destructive: oklch(0.597 0.242 29.16);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.716 0.144 289.899);
--chart-1: oklch(0.716 0.144 289.899);
--chart-2: oklch(0.214 0.017 292.588);
--chart-3: oklch(0.214 0.017 292.588);
--chart-4: oklch(0.243 0.02 292.46);
--chart-5: oklch(0.713 0.149 289.711);
}