Unibody is a shadcn/ui theme built around a neutral gray primary color (#c9c9c9) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c9c9c9) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070303black |
| Foreground | #040101black | #fbf8f8snow |
| Card | #fcfcfcsnow | #0b0404black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #0b0404black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #c9c9c9silver | #c9c9c9silver |
| Primary foreground | #303030darkslategray | #303030darkslategray |
| Secondary | #c9c9c9silver | #c9c9c9silver |
| Secondary foreground | #303030darkslategray | #303030darkslategray |
| Muted | #f0e5e5linen | #1a0f0fblack |
| Muted foreground | #725a5adimgray | #a58d8drosybrown |
| Accent | #c9c9c9silver | #c9c9c9silver |
| Accent foreground | #303030darkslategray | #303030darkslategray |
| Destructive | #c11401firebrick | #ef1901red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9c9c9silver | #c9c9c9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Unibody in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.081 0.016 21.106);
--muted: oklch(0.931 0.012 17.372);
--muted-foreground: oklch(0.492 0.032 18.31);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.837 0 171.254);
--primary-foreground: oklch(0.311 0 180);
--secondary: oklch(0.837 0 171.254);
--secondary-foreground: oklch(0.311 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.515 0.203 30.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0 171.254);
--chart-1: oklch(0.837 0 171.254);
--chart-2: oklch(0.837 0 171.254);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.861 0 180);
--chart-5: oklch(0.835 0.004 17.229);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.014 19.708);
--foreground: oklch(0.983 0.003 17.213);
--muted: oklch(0.183 0.019 19.042);
--muted-foreground: oklch(0.665 0.03 17.922);
--popover: oklch(0.122 0.016 19.718);
--popover-foreground: oklch(0.991 0.002 17.185);
--card: oklch(0.122 0.016 19.718);
--card-foreground: oklch(0.991 0.002 17.185);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.837 0 171.254);
--primary-foreground: oklch(0.311 0 180);
--secondary: oklch(0.837 0 171.254);
--secondary-foreground: oklch(0.311 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.603 0.239 30.293);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0 171.254);
--chart-1: oklch(0.837 0 171.254);
--chart-2: oklch(0.837 0 171.254);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.861 0 180);
--chart-5: oklch(0.835 0.004 17.229);
}