Chubby is a shadcn/ui theme built around a light indigo primary color (#b2b4dc) with light yellow accents (#dcdab2). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the light indigo primary (#b2b4dc) on an indigo-tinted background (#07070d).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f7fdghostwhite | #07070dblack |
| Foreground | #010104black | #f8f8fcghostwhite |
| Card | #f2f3fcaliceblue | #090911black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f2f3fcaliceblue | #090911black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #b2b4dclightsteelblue | #b2b4dclightsteelblue |
| Primary foreground | #1d1e3fmidnightblue | #1d1e3fmidnightblue |
| Secondary | #dcdab2palegoldenrod | #dcdab2palegoldenrod |
| Secondary foreground | #3f3e1ddarkolivegreen | #3f3e1ddarkolivegreen |
| Muted | #efefdcbeige | #232310black |
| Muted foreground | #4a4a45darkslategray | #babab5silver |
| Accent | #dcdab2palegoldenrod | #dcdab2palegoldenrod |
| Accent foreground | #3f3e1ddarkolivegreen | #3f3e1ddarkolivegreen |
| Destructive | #981010darkred | #d41616firebrick |
| Destructive foreground | #fcdfdfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2b4dclightsteelblue | #b2b4dclightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 8.19:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 5.33:1 | AA |
Paste this into your globals.css to use Chubby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.009 284.649);
--foreground: oklch(0.07 0.022 276.303);
--muted: oklch(0.946 0.025 105.257);
--muted-foreground: oklch(0.408 0.009 105.189);
--popover: oklch(0.965 0.013 284.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.965 0.013 284.565);
--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.781 0.057 283.442);
--primary-foreground: oklch(0.253 0.061 279.6);
--secondary: oklch(0.88 0.053 105.81);
--secondary-foreground: oklch(0.355 0.05 106.948);
--accent: oklch(0.88 0.053 105.81);
--accent-foreground: oklch(0.355 0.05 106.948);
--destructive: oklch(0.435 0.168 28.007);
--destructive-foreground: oklch(0.926 0.032 17.744);
--ring: oklch(0.781 0.057 283.442);
--chart-1: oklch(0.781 0.057 283.442);
--chart-2: oklch(0.88 0.053 105.81);
--chart-3: oklch(0.88 0.053 105.81);
--chart-4: oklch(0.896 0.046 105.665);
--chart-5: oklch(0.777 0.062 283.314);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.015 282.413);
--foreground: oklch(0.981 0.004 284.733);
--muted: oklch(0.249 0.032 106.782);
--muted-foreground: oklch(0.788 0.008 104.978);
--popover: oklch(0.144 0.017 282.359);
--popover-foreground: oklch(0.991 0.002 284.771);
--card: oklch(0.144 0.017 282.359);
--card-foreground: oklch(0.991 0.002 284.771);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.781 0.057 283.442);
--primary-foreground: oklch(0.253 0.061 279.6);
--secondary: oklch(0.88 0.053 105.81);
--secondary-foreground: oklch(0.355 0.05 106.948);
--accent: oklch(0.88 0.053 105.81);
--accent-foreground: oklch(0.355 0.05 106.948);
--destructive: oklch(0.554 0.217 28.287);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.057 283.442);
--chart-1: oklch(0.781 0.057 283.442);
--chart-2: oklch(0.88 0.053 105.81);
--chart-3: oklch(0.88 0.053 105.81);
--chart-4: oklch(0.896 0.046 105.665);
--chart-5: oklch(0.777 0.062 283.314);
}