Withdrawal is a shadcn/ui theme built around a vivid violet primary color (#b067f9) with vivid green accents (#b0f967). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#b067f9) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #050208black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfbfewhite | #050208black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fcfbfewhite | #050208black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #b067f9mediumpurple | #b067f9mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #b0f967lightgreen | #b0f967lightgreen |
| Secondary foreground | #172c02black | #172c02black |
| Muted | #e3eed8gainsboro | #1c2711black |
| Muted foreground | #4d5643darkolivegreen | #b3bca9darkgray |
| Accent | #b0f967lightgreen | #b0f967lightgreen |
| Accent foreground | #172c02black | #172c02black |
| Destructive | #751c01maroon | #e43601orangered |
| Destructive foreground | #ffbda9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b067f9mediumpurple | #b067f9mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 11.84:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 11.84:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 11.84:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 11.84:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Withdrawal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 308.406);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.031 128.839);
--muted-foreground: oklch(0.438 0.031 129.294);
--popover: oklch(0.99 0.005 308.406);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.005 308.406);
--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.66 0.212 304.252);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.904 0.191 131.57);
--secondary-foreground: oklch(0.265 0.071 132.554);
--accent: oklch(0.904 0.191 131.57);
--accent-foreground: oklch(0.265 0.071 132.554);
--destructive: oklch(0.372 0.128 35.751);
--destructive-foreground: oklch(0.853 0.081 37.611);
--ring: oklch(0.66 0.212 304.252);
--chart-1: oklch(0.66 0.212 304.252);
--chart-2: oklch(0.904 0.191 131.57);
--chart-3: oklch(0.904 0.191 131.57);
--chart-4: oklch(0.912 0.176 131.152);
--chart-5: oklch(0.659 0.218 304.066);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.023 310.11);
--foreground: oklch(0.991 0.003 308.432);
--muted: oklch(0.256 0.041 130.563);
--muted-foreground: oklch(0.782 0.027 128.858);
--popover: oklch(0.102 0.023 310.11);
--popover-foreground: oklch(0.991 0.003 308.432);
--card: oklch(0.102 0.023 310.11);
--card-foreground: oklch(0.991 0.003 308.432);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.66 0.212 304.252);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.904 0.191 131.57);
--secondary-foreground: oklch(0.265 0.071 132.554);
--accent: oklch(0.904 0.191 131.57);
--accent-foreground: oklch(0.265 0.071 132.554);
--destructive: oklch(0.602 0.216 34.061);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.66 0.212 304.252);
--chart-1: oklch(0.66 0.212 304.252);
--chart-2: oklch(0.904 0.191 131.57);
--chart-3: oklch(0.904 0.191 131.57);
--chart-4: oklch(0.912 0.176 131.152);
--chart-5: oklch(0.659 0.218 304.066);
}