Unfit is a shadcn/ui theme built around a violet primary color (#692088) with purple accents (#882073). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#692088) on a violet-tinted background (#0c070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c070eblack |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #ffffffwhite | #0c070eblack |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #0c070eblack |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #692088rebeccapurple | #692088rebeccapurple |
| Primary foreground | #f2e2f8lavender | #f2e2f8lavender |
| Secondary | #352088darkslateblue | #352088darkslateblue |
| Secondary foreground | #e7e2f8lavender | #e7e2f8lavender |
| Muted | #dedbebgainsboro | #181424black |
| Muted foreground | #5b5964dimgray | #9d9ba6darkgray |
| Accent | #882073purple | #882073purple |
| Accent foreground | #f8e2f4lavenderblush | #f8e2f4lavenderblush |
| Destructive | #9d1902darkred | #f22602orangered |
| Destructive foreground | #ffd8d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #692088rebeccapurple | #692088rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 9.70:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 9.70:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Unfit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.899 0.021 295.153);
--muted-foreground: oklch(0.469 0.018 294.857);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.409 0.168 313.374);
--primary-foreground: oklch(0.932 0.034 315.892);
--secondary: oklch(0.347 0.161 283.197);
--secondary-foreground: oklch(0.923 0.03 294.975);
--accent: oklch(0.444 0.166 337.454);
--accent-foreground: oklch(0.936 0.033 332.527);
--destructive: oklch(0.447 0.169 31.9);
--destructive-foreground: oklch(0.914 0.044 29.713);
--ring: oklch(0.409 0.168 313.374);
--chart-1: oklch(0.409 0.168 313.374);
--chart-2: oklch(0.347 0.161 283.197);
--chart-3: oklch(0.444 0.166 337.454);
--chart-4: oklch(0.367 0.173 282.972);
--chart-5: oklch(0.41 0.174 313.15);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.018 316.186);
--foreground: oklch(0.984 0.002 316.014);
--muted: oklch(0.205 0.03 292.732);
--muted-foreground: oklch(0.695 0.017 295.139);
--popover: oklch(0.138 0.018 316.186);
--popover-foreground: oklch(0.984 0.002 316.014);
--card: oklch(0.138 0.018 316.186);
--card-foreground: oklch(0.984 0.002 316.014);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.409 0.168 313.374);
--primary-foreground: oklch(0.932 0.034 315.892);
--secondary: oklch(0.347 0.161 283.197);
--secondary-foreground: oklch(0.923 0.03 294.975);
--accent: oklch(0.444 0.166 337.454);
--accent-foreground: oklch(0.936 0.033 332.527);
--destructive: oklch(0.616 0.237 31.335);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.409 0.168 313.374);
--chart-1: oklch(0.409 0.168 313.374);
--chart-2: oklch(0.347 0.161 283.197);
--chart-3: oklch(0.444 0.166 337.454);
--chart-4: oklch(0.367 0.173 282.972);
--chart-5: oklch(0.41 0.174 313.15);
}