Fanny-pack is a shadcn/ui theme built around a vivid purple primary color (#c705b0) with vivid cyan accents (#05b0c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#c705b0) on a purple-tinted background (#0f060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f060eblack |
| Foreground | #080208black | #ffffffwhite |
| Card | #fcfcfcsnow | #130711black |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #ffffffwhite | #0f060eblack |
| Popover foreground | #080208black | #ffffffwhite |
| Primary | #c705b0mediumvioletred | #c705b0mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b0c705yellowgreen | #b0c705yellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #dbdbd6gainsboro | #282924darkslategray |
| Muted foreground | #515247darkolivegreen | #b7b8addarkgray |
| Accent | #05b0c7darkturquoise | #05b0c7darkturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #b22810firebrick | #ee593ftomato |
| Destructive foreground | #fef7f6snow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c705b0mediumvioletred | #c705b0mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 5.15:1 | AA |
| Secondary button | 11.01:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 5.15:1 | AA |
| Secondary button | 11.01:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.14:1 | AA |
Paste this into your globals.css to use Fanny-pack in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.027 330.493);
--muted: oklch(0.891 0.007 111.932);
--muted-foreground: oklch(0.434 0.017 112.518);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.107 0.027 330.493);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.085 0.022 330.493);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.57 0.252 334.811);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.785 0.181 117.685);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.695 0.12 210.897);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.501 0.178 32.137);
--destructive-foreground: oklch(0.981 0.008 29.496);
--ring: oklch(0.57 0.252 334.811);
--chart-1: oklch(0.57 0.252 334.811);
--chart-2: oklch(0.785 0.181 117.685);
--chart-3: oklch(0.695 0.12 210.897);
--chart-4: oklch(0.828 0.192 117.717);
--chart-5: oklch(0.575 0.255 334.92);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.026 330.767);
--foreground: oklch(1 0 180);
--muted: oklch(0.278 0.01 112.425);
--muted-foreground: oklch(0.778 0.015 112.139);
--popover: oklch(0.139 0.026 330.767);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.03 331.097);
--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.57 0.252 334.811);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.785 0.181 117.685);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.695 0.12 210.897);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.657 0.189 32.247);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.57 0.252 334.811);
--chart-1: oklch(0.57 0.252 334.811);
--chart-2: oklch(0.785 0.181 117.685);
--chart-3: oklch(0.695 0.12 210.897);
--chart-4: oklch(0.828 0.192 117.717);
--chart-5: oklch(0.575 0.255 334.92);
}