Commodum is a shadcn/ui theme built around a vivid cyan primary color (#00bad2) with near-white accents (#e6e9ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#00bad2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040f10black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030b0cblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040f10black | #ffffffwhite |
| Primary | #00bad2darkturquoise | #00bad2darkturquoise |
| Primary foreground | #ffffffwhite | #000505black |
| Secondary | #e6e9ealavender | #222525darkslategray |
| Secondary foreground | #4a5355darkslategray | #babfbfsilver |
| Muted | #ebefefwhitesmoke | #102123black |
| Muted foreground | #434646darkslategray | #b9bbbcsilver |
| Accent | #e6e9ealavender | #222525darkslategray |
| Accent foreground | #4a5355darkslategray | #babfbfsilver |
| Destructive | #f10025crimson | #da3d16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ebefefwhitesmoke | #181f20black |
| Input | #ebefefwhitesmoke | #181f20black |
| Ring | #00bad2darkturquoise | #00bad2darkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 2.34:1 | Fail |
| Secondary button | 6.48:1 | AA |
| Muted text | 8.22:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 4.40:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.74:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 8.31:1 | AAA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Commodum in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.157 0.017 205.311);
--muted: oklch(0.949 0.004 205.419);
--muted-foreground: oklch(0.392 0.003 206.391);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.157 0.017 205.311);
--card: oklch(0.991 0 180);
--card-foreground: oklch(0.14 0.016 203.59);
--border: oklch(0.949 0.004 206.412);
--input: oklch(0.949 0.004 197.085);
--primary: oklch(0.723 0.126 210.977);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.933 0.003 206.42);
--secondary-foreground: oklch(0.435 0.013 206.299);
--accent: oklch(0.933 0.003 206.42);
--accent-foreground: oklch(0.435 0.013 206.299);
--destructive: oklch(0.603 0.245 25.571);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.723 0.126 210.977);
--chart-1: oklch(0.723 0.126 210.977);
--chart-2: oklch(0.933 0.003 206.42);
--chart-3: oklch(0.933 0.003 206.42);
--chart-4: oklch(0.955 0.002 206.428);
--chart-5: oklch(0.73 0.127 211.206);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.022 206.425);
--muted-foreground: oklch(0.791 0.003 206.419);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.233 0.01 206.267);
--input: oklch(0.233 0.01 206.267);
--primary: oklch(0.723 0.126 210.977);
--primary-foreground: oklch(0.101 0.017 202.057);
--secondary: oklch(0.261 0.004 206.36);
--secondary-foreground: oklch(0.8 0.005 206.401);
--accent: oklch(0.261 0.004 206.36);
--accent-foreground: oklch(0.8 0.005 206.401);
--destructive: oklch(0.591 0.2 34.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.723 0.126 210.977);
--chart-1: oklch(0.723 0.126 210.977);
--chart-2: oklch(0.261 0.004 206.36);
--chart-3: oklch(0.261 0.004 206.36);
--chart-4: oklch(0.293 0.004 206.357);
--chart-5: oklch(0.73 0.127 211.206);
}