Unfit is a shadcn/ui theme built around a vivid purple primary color (#c812ce) with muted light purple accents (#cfb4d0). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the vivid purple primary (#c812ce) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #070307black |
| Foreground | #080209black | #f9f6f9whitesmoke |
| Card | #fbf3fbghostwhite | #0a050ablack |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #fcf7fdghostwhite | #070307black |
| Popover foreground | #080209black | #f9f6f9whitesmoke |
| Primary | #c812cedarkviolet | #c812cedarkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dcd0ddgainsboro | #2e2e2edarkslategray |
| Secondary foreground | #463347darkslategray | #c7c7c7silver |
| Muted | #e9d2e9gainsboro | #2d1616black |
| Muted foreground | #6a576bdimgray | #a89494rosybrown |
| Accent | #cfb4d0thistle | #3f3737darkslategray |
| Accent foreground | #321f32darkslategray | #d7d1d1lightgrey |
| Destructive | #760f0amaroon | #ef4239tomato |
| Destructive foreground | #f9bbb8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c812cedarkviolet | #c812cedarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 4.72:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 4.66:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 4.72:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Unfit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 324.676);
--foreground: oklch(0.106 0.031 326.598);
--muted: oklch(0.89 0.04 324.897);
--muted-foreground: oklch(0.483 0.038 325.108);
--popover: oklch(0.982 0.009 324.676);
--popover-foreground: oklch(0.106 0.031 326.598);
--card: oklch(0.973 0.013 324.705);
--card-foreground: oklch(0.085 0.024 326.598);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.592 0.268 326.625);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.871 0.022 324.781);
--secondary-foreground: oklch(0.352 0.042 325.335);
--accent: oklch(0.801 0.049 325);
--accent-foreground: oklch(0.272 0.042 325.54);
--destructive: oklch(0.364 0.137 29.095);
--destructive-foreground: oklch(0.849 0.072 22.131);
--ring: oklch(0.592 0.268 326.625);
--chart-1: oklch(0.592 0.268 326.625);
--chart-2: oklch(0.871 0.022 324.781);
--chart-3: oklch(0.801 0.049 325);
--chart-4: oklch(0.895 0.018 324.746);
--chart-5: oklch(0.598 0.272 326.611);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.014 325.578);
--foreground: oklch(0.976 0.004 324.647);
--muted: oklch(0.231 0.038 20.388);
--muted-foreground: oklch(0.685 0.023 17.73);
--popover: oklch(0.111 0.014 325.578);
--popover-foreground: oklch(0.976 0.004 324.647);
--card: oklch(0.128 0.017 325.578);
--card-foreground: oklch(0.984 0.003 324.637);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.592 0.268 326.625);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.344 0.012 17.732);
--accent-foreground: oklch(0.864 0.007 17.286);
--destructive: oklch(0.633 0.211 27.908);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.592 0.268 326.625);
--chart-1: oklch(0.592 0.268 326.625);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.344 0.012 17.732);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.598 0.272 326.611);
}