Colon is a shadcn/ui theme built around a vivid indigo primary color (#1a08a0) with vivid green accents (#8ea008). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#1a08a0) on an indigo-tinted background (#05050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05050bblack |
| Foreground | #060510black | #fcfbfdsnow |
| Card | #ffffffwhite | #05050bblack |
| Card foreground | #060510black | #fcfbfdsnow |
| Popover | #ffffffwhite | #05050bblack |
| Popover foreground | #060510black | #fcfbfdsnow |
| Primary | #1a08a0darkblue | #1a08a0darkblue |
| Primary foreground | #e1ddfdlavender | #e1ddfdlavender |
| Secondary | #8ea008olive | #8ea008olive |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6e8d9gainsboro | #242617black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #8ea008olive | #8ea008olive |
| Accent foreground | #000000black | #000000black |
| Destructive | #aa3f0esaddlebrown | #d44f11chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a08a0darkblue | #1a08a0darkblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 10.05:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 8.33:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 10.05:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Colon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.027 288.783);
--muted: oklch(0.925 0.02 112.176);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.027 288.783);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.027 288.783);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.333 0.211 269.903);
--primary-foreground: oklch(0.911 0.044 290.859);
--secondary: oklch(0.668 0.153 117.397);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.668 0.153 117.397);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.511 0.151 40.734);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.333 0.211 269.903);
--chart-1: oklch(0.333 0.211 269.903);
--chart-2: oklch(0.668 0.153 117.397);
--chart-3: oklch(0.668 0.153 117.397);
--chart-4: oklch(0.712 0.163 117.44);
--chart-5: oklch(0.334 0.216 269.169);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.016 290.346);
--foreground: oklch(0.99 0.003 291.728);
--muted: oklch(0.262 0.026 113.619);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.118 0.016 290.346);
--popover-foreground: oklch(0.99 0.003 291.728);
--card: oklch(0.118 0.016 290.346);
--card-foreground: oklch(0.99 0.003 291.728);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.333 0.211 269.903);
--primary-foreground: oklch(0.911 0.044 290.859);
--secondary: oklch(0.668 0.153 117.397);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.668 0.153 117.397);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.601 0.18 40.376);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.333 0.211 269.903);
--chart-1: oklch(0.333 0.211 269.903);
--chart-2: oklch(0.668 0.153 117.397);
--chart-3: oklch(0.668 0.153 117.397);
--chart-4: oklch(0.712 0.163 117.44);
--chart-5: oklch(0.334 0.216 269.169);
}