Beach is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#030302). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#030203) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #120204black | #fdfcfcsnow |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #120204black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #120204black | #fdfcfcsnow |
| Primary | #030203black | #030203black |
| Primary foreground | #9e9a9adarkgray | #9e9a9adarkgray |
| Secondary | #030203black | #030203black |
| Secondary foreground | #9e9a9cdarkgray | #9e9a9cdarkgray |
| Muted | #f5eff3whitesmoke | #100a0dblack |
| Muted foreground | #634b59dimgray | #b49cabdarkgray |
| Accent | #030302black | #030302black |
| Accent foreground | #9e9b9adarkgray | #9e9b9adarkgray |
| Destructive | #a2100bdarkred | #e51710red |
| Destructive foreground | #fde3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Beach in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 10.15);
--foreground: oklch(0.128 0.035 13.67);
--muted: oklch(0.959 0.008 340.418);
--muted-foreground: oklch(0.442 0.04 342.156);
--popover: oklch(0.99 0.003 10.15);
--popover-foreground: oklch(0.128 0.035 13.67);
--card: oklch(0.99 0.003 10.15);
--card-foreground: oklch(0.128 0.035 13.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0 10.113);
--primary-foreground: oklch(0.688 0.005 10.232);
--secondary: oklch(0.092 0.001 340.238);
--secondary-foreground: oklch(0.689 0.006 340.422);
--accent: oklch(0.092 0 56.708);
--accent-foreground: oklch(0.692 0.004 56.362);
--destructive: oklch(0.454 0.177 29.022);
--destructive-foreground: oklch(0.937 0.028 20.046);
--ring: oklch(0.092 0 10.113);
--chart-1: oklch(0.092 0 10.113);
--chart-2: oklch(0.092 0.001 340.238);
--chart-3: oklch(0.092 0 56.708);
--chart-4: oklch(0.145 0.001 340.357);
--chart-5: oklch(0.091 0.001 10.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 10.091);
--muted: oklch(0.153 0.012 341.987);
--muted-foreground: oklch(0.719 0.035 341.301);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 10.091);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 10.091);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.092 0 10.113);
--primary-foreground: oklch(0.688 0.005 10.232);
--secondary: oklch(0.092 0.001 340.238);
--secondary-foreground: oklch(0.689 0.006 340.422);
--accent: oklch(0.092 0 56.708);
--accent-foreground: oklch(0.692 0.004 56.362);
--destructive: oklch(0.585 0.231 29.158);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0 10.113);
--chart-1: oklch(0.092 0 10.113);
--chart-2: oklch(0.092 0.001 340.238);
--chart-3: oklch(0.092 0 56.708);
--chart-4: oklch(0.145 0.001 340.357);
--chart-5: oklch(0.091 0.001 10.168);
}