Collar is a shadcn/ui theme built around a neutral gray primary color (#c1c7c5) with neutral gray accents (#c7c5c1). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#c1c7c5) on a teal-tinted background (#030c09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030c09black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f7fdfbmintcream | #04100cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefdwhite | #030c09black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c1c7c5silver | #c1c7c5silver |
| Primary foreground | #292e2cdarkslategray | #292e2cdarkslategray |
| Secondary | #c5c1c7silver | #c5c1c7silver |
| Secondary foreground | #2c292edarkslategray | #2c292edarkslategray |
| Muted | #e8e7e9lavender | #171618black |
| Muted foreground | #49434cdarkslategray | #b9b3bcsilver |
| Accent | #c7c5c1silver | #c7c5c1silver |
| Accent foreground | #2e2c29darkslategray | #2e2c29darkslategray |
| Destructive | #611a05maroon | #f4420borangered |
| Destructive foreground | #fab39elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1c7c5silver | #c1c7c5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.80:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Collar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 173.462);
--foreground: oklch(0 0 0);
--muted: oklch(0.929 0.004 314.195);
--muted-foreground: oklch(0.392 0.016 313.996);
--popover: oklch(0.995 0.004 173.462);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.008 173.349);
--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.825 0.007 173.324);
--primary-foreground: oklch(0.294 0.007 172.899);
--secondary: oklch(0.817 0.009 314.158);
--secondary-foreground: oklch(0.286 0.009 314.052);
--accent: oklch(0.825 0.006 83.061);
--accent-foreground: oklch(0.294 0.005 83.064);
--destructive: oklch(0.333 0.107 36.36);
--destructive-foreground: oklch(0.829 0.089 37.627);
--ring: oklch(0.825 0.007 173.324);
--chart-1: oklch(0.825 0.007 173.324);
--chart-2: oklch(0.817 0.009 314.158);
--chart-3: oklch(0.825 0.006 83.061);
--chart-4: oklch(0.841 0.008 314.168);
--chart-5: oklch(0.828 0.011 173.175);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.018 173.332);
--foreground: oklch(1 0 180);
--muted: oklch(0.202 0.006 314.054);
--muted-foreground: oklch(0.775 0.013 314.124);
--popover: oklch(0.143 0.018 173.332);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.021 171.091);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.825 0.007 173.324);
--primary-foreground: oklch(0.294 0.007 172.899);
--secondary: oklch(0.817 0.009 314.158);
--secondary-foreground: oklch(0.286 0.009 314.052);
--accent: oklch(0.825 0.006 83.061);
--accent-foreground: oklch(0.294 0.005 83.064);
--destructive: oklch(0.638 0.221 34.741);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.007 173.324);
--chart-1: oklch(0.825 0.007 173.324);
--chart-2: oklch(0.817 0.009 314.158);
--chart-3: oklch(0.825 0.006 83.061);
--chart-4: oklch(0.841 0.008 314.168);
--chart-5: oklch(0.828 0.011 173.175);
}