Tuna is a shadcn/ui theme built around a green primary color (#bfcd79) with indigo accents (#8779cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#bfcd79) on a green-tinted background (#0d0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0f05black |
| Foreground | #070802black | #f8f8f6whitesmoke |
| Card | #fcfcfcsnow | #111307black |
| Card foreground | #040401black | #fafbf9snow |
| Popover | #ffffffwhite | #0d0f05black |
| Popover foreground | #070802black | #f8f8f6whitesmoke |
| Primary | #bfcd79darkkhaki | #bfcd79darkkhaki |
| Primary foreground | #0d0f06black | #0d0f06black |
| Secondary | #8779cdmediumpurple | #8779cdmediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7e6ealavender | #161519black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #8779cdmediumpurple | #8779cdmediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #b92d0efirebrick | #ef4a25orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bfcd79darkkhaki | #bfcd79darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 11.28:1 | AAA |
| Secondary button | 5.65:1 | AA |
| Muted text | 8.08:1 | AAA |
| Accent | 5.65:1 | AA |
| Destructive | 6.09:1 | AA |
| Text on background | 18.13:1 | AAA |
| Text on card | 18.08:1 | AAA |
| Primary button | 11.28:1 | AAA |
| Secondary button | 5.65:1 | AA |
| Muted text | 9.68:1 | AAA |
| Accent | 5.65:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Tuna in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.02 114.93);
--muted: oklch(0.927 0.006 293.953);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.02 114.93);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.016 114.93);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.11 116.625);
--primary-foreground: oklch(0.163 0.02 115.8);
--secondary: oklch(0.625 0.125 289.932);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.625 0.125 289.932);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.517 0.181 33.3);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.11 116.625);
--chart-1: oklch(0.82 0.11 116.625);
--chart-2: oklch(0.625 0.125 289.932);
--chart-3: oklch(0.625 0.125 289.932);
--chart-4: oklch(0.657 0.114 290.556);
--chart-5: oklch(0.827 0.116 116.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.021 115.86);
--foreground: oklch(0.98 0.003 114.124);
--muted: oklch(0.198 0.008 293.279);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.163 0.021 115.86);
--popover-foreground: oklch(0.98 0.003 114.124);
--card: oklch(0.18 0.024 116.371);
--card-foreground: oklch(0.986 0.002 114.104);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.11 116.625);
--primary-foreground: oklch(0.163 0.02 115.8);
--secondary: oklch(0.625 0.125 289.932);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.625 0.125 289.932);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.639 0.207 33.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.11 116.625);
--chart-1: oklch(0.82 0.11 116.625);
--chart-2: oklch(0.625 0.125 289.932);
--chart-3: oklch(0.625 0.125 289.932);
--chart-4: oklch(0.657 0.114 290.556);
--chart-5: oklch(0.827 0.116 116.761);
}