Tapioca is a shadcn/ui theme built around a muted deep teal primary color (#3a4545) with muted deep blue accents (#3a4045). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#3a4545) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030707black |
| Foreground | #000000black | #f8fbfbghostwhite |
| Card | #fcfcfcsnow | #050a0ablack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #ffffffwhite | #030707black |
| Popover foreground | #000000black | #f8fbfbghostwhite |
| Primary | #3a4545darkslategray | #3a4545darkslategray |
| Primary foreground | #d5dcdcgainsboro | #d5dcdcgainsboro |
| Secondary | #3a4540darkslategray | #3a4540darkslategray |
| Secondary foreground | #d5dcd9gainsboro | #d5dcd9gainsboro |
| Muted | #dee8e3gainsboro | #17211cblack |
| Muted foreground | #464e4adarkslategray | #b1b9b5silver |
| Accent | #3a4045darkslategray | #3a4045darkslategray |
| Accent foreground | #d5d9dcgainsboro | #d5d9dcgainsboro |
| Destructive | #90190edarkred | #e82817orangered |
| Destructive foreground | #fbd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a4545darkslategray | #3a4545darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Tapioca in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.922 0.012 165.668);
--muted-foreground: oklch(0.416 0.013 165.128);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.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.382 0.015 197.812);
--primary-foreground: oklch(0.89 0.007 198.239);
--secondary: oklch(0.38 0.018 164.715);
--secondary-foreground: oklch(0.889 0.009 165.754);
--accent: oklch(0.367 0.013 249.957);
--accent-foreground: oklch(0.883 0.006 249.715);
--destructive: oklch(0.423 0.155 29.986);
--destructive-foreground: oklch(0.911 0.039 24.046);
--ring: oklch(0.382 0.015 197.812);
--chart-1: oklch(0.382 0.015 197.812);
--chart-2: oklch(0.38 0.018 164.715);
--chart-3: oklch(0.367 0.013 249.957);
--chart-4: oklch(0.41 0.019 164.69);
--chart-5: oklch(0.385 0.019 197.659);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.008 197.202);
--foreground: oklch(0.987 0.003 198.317);
--muted: oklch(0.236 0.016 164.016);
--muted-foreground: oklch(0.779 0.012 165.616);
--popover: oklch(0.121 0.008 197.202);
--popover-foreground: oklch(0.987 0.003 198.317);
--card: oklch(0.139 0.01 197.202);
--card-foreground: oklch(0.993 0.001 198.34);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.382 0.015 197.812);
--primary-foreground: oklch(0.89 0.007 198.239);
--secondary: oklch(0.38 0.018 164.715);
--secondary-foreground: oklch(0.889 0.009 165.754);
--accent: oklch(0.367 0.013 249.957);
--accent-foreground: oklch(0.883 0.006 249.715);
--destructive: oklch(0.599 0.226 30.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.382 0.015 197.812);
--chart-1: oklch(0.382 0.015 197.812);
--chart-2: oklch(0.38 0.018 164.715);
--chart-3: oklch(0.367 0.013 249.957);
--chart-4: oklch(0.41 0.019 164.69);
--chart-5: oklch(0.385 0.019 197.659);
}