Chubby is a shadcn/ui theme built around an indigo primary color (#371fd6) with violet accents (#931fd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#371fd6) on an indigo-tinted background (#06050f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06050fblack |
| Foreground | #04020dblack | #f9f9fbghostwhite |
| Card | #ffffffwhite | #06050fblack |
| Card foreground | #04020dblack | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #06050fblack |
| Popover foreground | #04020dblack | #f9f9fbghostwhite |
| Primary | #371fd6mediumblue | #371fd6mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1f62d6royalblue | #1f62d6royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0e6f1lavender | #0e151fblack |
| Muted foreground | #414449darkslategray | #b6b9besilver |
| Accent | #931fd6blueviolet | #931fd6blueviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d53110firebrick | #f05638tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #371fd6mediumblue | #371fd6mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 9.02:1 | AAA |
| Secondary button | 5.56:1 | AA |
| Muted text | 7.78:1 | AAA |
| Accent | 6.17:1 | AA |
| Destructive | 4.89:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 9.02:1 | AAA |
| Secondary button | 5.56:1 | AA |
| Muted text | 9.32:1 | AAA |
| Accent | 6.17:1 | AA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Chubby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.033 289.054);
--muted: oklch(0.923 0.016 261.501);
--muted-foreground: oklch(0.385 0.01 261.488);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.033 289.054);
--card: oklch(1 0 180);
--card-foreground: oklch(0.103 0.033 289.054);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.433 0.252 274.073);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.526 0.191 260.742);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.527 0.251 307.855);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.572 0.204 32.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.433 0.252 274.073);
--chart-1: oklch(0.433 0.252 274.073);
--chart-2: oklch(0.526 0.191 260.742);
--chart-3: oklch(0.527 0.251 307.855);
--chart-4: oklch(0.549 0.194 260.677);
--chart-5: oklch(0.433 0.258 273.111);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.025 289.994);
--foreground: oklch(0.983 0.002 292.502);
--muted: oklch(0.194 0.024 261.105);
--muted-foreground: oklch(0.785 0.008 261.509);
--popover: oklch(0.125 0.025 289.994);
--popover-foreground: oklch(0.983 0.002 292.502);
--card: oklch(0.125 0.025 289.994);
--card-foreground: oklch(0.983 0.002 292.502);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.433 0.252 274.073);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.526 0.191 260.742);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.527 0.251 307.855);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.656 0.195 33.21);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.433 0.252 274.073);
--chart-1: oklch(0.433 0.252 274.073);
--chart-2: oklch(0.526 0.191 260.742);
--chart-3: oklch(0.527 0.251 307.855);
--chart-4: oklch(0.549 0.194 260.677);
--chart-5: oklch(0.433 0.258 273.111);
}