Chubby is a shadcn/ui theme built around a muted deep yellow primary color (#535136) with muted deep indigo accents (#363853). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the muted deep yellow primary (#535136) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #040401black |
| Foreground | #090801black | #fbfbf9snow |
| Card | #fcfbf3floralwhite | #080802black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #fcfbf3floralwhite | #080802black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #535136darkolivegreen | #535136darkolivegreen |
| Primary foreground | #e5e4d7gainsboro | #e5e4d7gainsboro |
| Secondary | #363853darkslategray | #363853darkslategray |
| Secondary foreground | #d7d8e5gainsboro | #d7d8e5gainsboro |
| Muted | #d5d5e2gainsboro | #1d1e2ablack |
| Muted foreground | #404254darkslategray | #abadbfdarkgray |
| Accent | #363853darkslategray | #363853darkslategray |
| Accent foreground | #d7d8e5gainsboro | #d7d8e5gainsboro |
| Destructive | #cd340afirebrick | #ea3b0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #535136darkolivegreen | #535136darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Chubby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 103.229);
--foreground: oklch(0.133 0.022 106.567);
--muted: oklch(0.877 0.017 282.766);
--muted-foreground: oklch(0.384 0.03 281.651);
--popover: oklch(0.987 0.011 103.291);
--popover-foreground: oklch(0.106 0.017 106.567);
--card: oklch(0.987 0.011 103.291);
--card-foreground: oklch(0.106 0.017 106.567);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.431 0.042 104.544);
--primary-foreground: oklch(0.916 0.017 103.42);
--secondary: oklch(0.352 0.047 280.544);
--secondary-foreground: oklch(0.885 0.018 282.76);
--accent: oklch(0.352 0.047 280.544);
--accent-foreground: oklch(0.885 0.018 282.76);
--destructive: oklch(0.558 0.195 34.197);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.042 104.544);
--chart-1: oklch(0.431 0.042 104.544);
--chart-2: oklch(0.352 0.047 280.544);
--chart-3: oklch(0.352 0.047 280.544);
--chart-4: oklch(0.377 0.051 280.488);
--chart-5: oklch(0.437 0.047 104.675);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.014 105.934);
--foreground: oklch(0.988 0.003 103.164);
--muted: oklch(0.239 0.024 281.213);
--muted-foreground: oklch(0.751 0.026 282.509);
--popover: oklch(0.13 0.017 105.934);
--popover-foreground: oklch(0.994 0.002 103.135);
--card: oklch(0.13 0.017 105.934);
--card-foreground: oklch(0.994 0.002 103.135);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.431 0.042 104.544);
--primary-foreground: oklch(0.916 0.017 103.42);
--secondary: oklch(0.352 0.047 280.544);
--secondary-foreground: oklch(0.885 0.018 282.76);
--accent: oklch(0.352 0.047 280.544);
--accent-foreground: oklch(0.885 0.018 282.76);
--destructive: oklch(0.616 0.216 34.06);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.042 104.544);
--chart-1: oklch(0.431 0.042 104.544);
--chart-2: oklch(0.352 0.047 280.544);
--chart-3: oklch(0.352 0.047 280.544);
--chart-4: oklch(0.377 0.051 280.488);
--chart-5: oklch(0.437 0.047 104.675);
}