Tsunami is a shadcn/ui theme built around a near-black primary color (#020303) with near-black accents (#030302). The light mode uses a neutral background (#fbfefe). Dark mode keeps the near-black primary (#020303) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #030607black |
| Foreground | #020708black | #fcfdfdwhite |
| Card | #fbfefewhite | #030607black |
| Card foreground | #020708black | #fcfdfdwhite |
| Popover | #fbfefewhite | #030607black |
| Popover foreground | #020708black | #fcfdfdwhite |
| Primary | #020303black | #020303black |
| Primary foreground | #8aa6addarkgray | #8aa6addarkgray |
| Secondary | #030203black | #030203black |
| Secondary foreground | #ad8aa6rosybrown | #ad8aa6rosybrown |
| Muted | #eceaeblinen | #151315black |
| Muted foreground | #574754darkslategray | #b8a8b5darkgray |
| Accent | #030302black | #030302black |
| Accent foreground | #a6ad8adarkseagreen | #a6ad8adarkseagreen |
| Destructive | #e30602red | #fd2521crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020303black | #020303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 6.86:1 | AA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.81:1 | AAA |
| Destructive | 4.88:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 6.86:1 | AA |
| Muted text | 8.16:1 | AAA |
| Accent | 8.81:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Tsunami in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 214.325);
--foreground: oklch(0.121 0.014 209.82);
--muted: oklch(0.938 0.003 332.054);
--muted-foreground: oklch(0.419 0.029 333.003);
--popover: oklch(0.994 0.003 214.325);
--popover-foreground: oklch(0.121 0.014 209.82);
--card: oklch(0.994 0.003 214.325);
--card-foreground: oklch(0.121 0.014 209.82);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.093 0.003 212.822);
--primary-foreground: oklch(0.707 0.033 214.572);
--secondary: oklch(0.09 0.006 332.292);
--secondary-foreground: oklch(0.675 0.059 333.24);
--accent: oklch(0.096 0.005 115.785);
--accent-foreground: oklch(0.734 0.05 116.842);
--destructive: oklch(0.577 0.235 29.308);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.093 0.003 212.822);
--chart-1: oklch(0.093 0.003 212.822);
--chart-2: oklch(0.09 0.006 332.292);
--chart-3: oklch(0.096 0.005 115.785);
--chart-4: oklch(0.143 0.009 332.747);
--chart-5: oklch(0.093 0.004 212.594);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.009 211.133);
--foreground: oklch(0.993 0.002 214.321);
--muted: oklch(0.192 0.005 332.357);
--muted-foreground: oklch(0.749 0.025 332.498);
--popover: oklch(0.119 0.009 211.133);
--popover-foreground: oklch(0.993 0.002 214.321);
--card: oklch(0.119 0.009 211.133);
--card-foreground: oklch(0.993 0.002 214.321);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.093 0.003 212.822);
--primary-foreground: oklch(0.707 0.033 214.572);
--secondary: oklch(0.09 0.006 332.292);
--secondary-foreground: oklch(0.675 0.059 333.24);
--accent: oklch(0.096 0.005 115.785);
--accent-foreground: oklch(0.734 0.05 116.842);
--destructive: oklch(0.635 0.244 28.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.093 0.003 212.822);
--chart-1: oklch(0.093 0.003 212.822);
--chart-2: oklch(0.09 0.006 332.292);
--chart-3: oklch(0.096 0.005 115.785);
--chart-4: oklch(0.143 0.009 332.747);
--chart-5: oklch(0.093 0.004 212.594);
}