Stomach is a shadcn/ui theme built around a light yellow primary color (#f1f2d4) with light green accents (#e2f2d4). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the light yellow primary (#f1f2d4) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #040401black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fcfcf8snow | #040401black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcf8snow | #040401black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #f1f2d4beige | #f1f2d4beige |
| Primary foreground | #23230bblack | #23230bblack |
| Secondary | #f2e4d4antiquewhite | #f2e4d4antiquewhite |
| Secondary foreground | #724d22saddlebrown | #724d22saddlebrown |
| Muted | #f1edealinen | #15120eblack |
| Muted foreground | #56524edarkslategray | #b1aea9darkgray |
| Accent | #e2f2d4beige | #e2f2d4beige |
| Accent foreground | #16230bblack | #16230bblack |
| Destructive | #741707maroon | #d92b0dfirebrick |
| Destructive foreground | #fbbdb2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1f2d4beige | #f1f2d4beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 13.97:1 | AAA |
| Secondary button | 6.00:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 13.98:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 13.97:1 | AAA |
| Secondary button | 6.00:1 | AA |
| Muted text | 8.43:1 | AAA |
| Accent | 13.98:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Stomach in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 108.037);
--foreground: oklch(0.105 0.016 110.072);
--muted: oklch(0.949 0.006 71.397);
--muted-foreground: oklch(0.44 0.009 71.273);
--popover: oklch(0.99 0.005 108.037);
--popover-foreground: oklch(0.105 0.016 110.072);
--card: oklch(0.99 0.005 108.037);
--card-foreground: oklch(0.105 0.016 110.072);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.953 0.04 108.69);
--primary-foreground: oklch(0.25 0.041 110.738);
--secondary: oklch(0.926 0.027 71.179);
--secondary-foreground: oklch(0.451 0.077 67.189);
--accent: oklch(0.941 0.044 130.257);
--accent-foreground: oklch(0.238 0.047 132.292);
--destructive: oklch(0.366 0.129 32.269);
--destructive-foreground: oklch(0.851 0.073 30.024);
--ring: oklch(0.953 0.04 108.69);
--chart-1: oklch(0.953 0.04 108.69);
--chart-2: oklch(0.926 0.027 71.179);
--chart-3: oklch(0.941 0.044 130.257);
--chart-4: oklch(0.946 0.019 71.265);
--chart-5: oklch(0.955 0.042 108.728);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.011 109.534);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.009 70.953);
--muted-foreground: oklch(0.752 0.008 71.363);
--popover: oklch(0.101 0.011 109.534);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.101 0.011 109.534);
--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.953 0.04 108.69);
--primary-foreground: oklch(0.25 0.041 110.738);
--secondary: oklch(0.926 0.027 71.179);
--secondary-foreground: oklch(0.451 0.077 67.189);
--accent: oklch(0.941 0.044 130.257);
--accent-foreground: oklch(0.238 0.047 132.292);
--destructive: oklch(0.573 0.212 31.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.953 0.04 108.69);
--chart-1: oklch(0.953 0.04 108.69);
--chart-2: oklch(0.926 0.027 71.179);
--chart-3: oklch(0.941 0.044 130.257);
--chart-4: oklch(0.946 0.019 71.265);
--chart-5: oklch(0.955 0.042 108.728);
}