Boxy Ocean is a shadcn/ui theme built around a green primary color (#98dc9d) with blue accents (#345365). The light mode uses a blue-tinted background (#1a2a32). Dark mode keeps the green primary (#98dc9d) on a blue-tinted background (#1a2a32).
| Token | Light | Dark |
|---|---|---|
| Background | #1a2a32darkslategray | #1a2a32darkslategray |
| Foreground | #ced4delightgrey | #ced4delightgrey |
| Card | #17242cdarkslategray | #17242cdarkslategray |
| Card foreground | #dde1e9gainsboro | #dde1e9gainsboro |
| Popover | #152128black | #152128black |
| Popover foreground | #edeff3whitesmoke | #edeff3whitesmoke |
| Primary | #98dc9dlightgreen | #98dc9dlightgreen |
| Primary foreground | #113113black | #113113black |
| Secondary | #2d532fdarkslategray | #2d532fdarkslategray |
| Secondary foreground | #cde4cflightgrey | #cde4cflightgrey |
| Muted | #2b3236darkslategray | #2b3236darkslategray |
| Muted foreground | #a6b2b9darkgray | #a6b2b9darkgray |
| Accent | #345365darkslategray | #345365darkslategray |
| Accent foreground | #dde8eelavender | #dde8eelavender |
| Destructive | #f61d0ered | #f61d0ered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #28363edarkslategray | #28363edarkslategray |
| Input | #2e3e48darkslategray | #2e3e48darkslategray |
| Ring | #98dc9dlightgreen | #98dc9dlightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.96:1 | AAA |
| Text on card | 12.10:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.01:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 4.10:1 | AA Large |
| Text on background | 9.96:1 | AAA |
| Text on card | 12.10:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.01:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Boxy Ocean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.273 0.027 234.461);
--foreground: oklch(0.868 0.016 263.013);
--muted: oklch(0.312 0.013 233.21);
--muted-foreground: oklch(0.758 0.017 232.903);
--popover: oklch(0.241 0.022 234.311);
--popover-foreground: oklch(0.951 0.006 263.043);
--card: oklch(0.252 0.024 234.366);
--card-foreground: oklch(0.91 0.011 263.03);
--border: oklch(0.324 0.024 233.864);
--input: oklch(0.354 0.027 233.909);
--primary: oklch(0.833 0.111 146.116);
--primary-foreground: oklch(0.282 0.066 144.802);
--secondary: oklch(0.403 0.073 145.504);
--secondary-foreground: oklch(0.897 0.038 147.119);
--accent: oklch(0.426 0.047 234.854);
--accent-foreground: oklch(0.924 0.014 232.793);
--destructive: oklch(0.619 0.243 29.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.833 0.111 146.116);
--chart-1: oklch(0.833 0.111 146.116);
--chart-2: oklch(0.403 0.073 145.504);
--chart-3: oklch(0.426 0.047 234.854);
--chart-4: oklch(0.435 0.081 145.467);
--chart-5: oklch(0.836 0.117 146.032);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.273 0.027 234.461);
--foreground: oklch(0.868 0.016 263.013);
--muted: oklch(0.312 0.013 233.21);
--muted-foreground: oklch(0.758 0.017 232.903);
--popover: oklch(0.241 0.022 234.311);
--popover-foreground: oklch(0.951 0.006 263.043);
--card: oklch(0.252 0.024 234.366);
--card-foreground: oklch(0.91 0.011 263.03);
--border: oklch(0.324 0.024 233.864);
--input: oklch(0.354 0.027 233.909);
--primary: oklch(0.833 0.111 146.116);
--primary-foreground: oklch(0.282 0.066 144.802);
--secondary: oklch(0.403 0.073 145.504);
--secondary-foreground: oklch(0.897 0.038 147.119);
--accent: oklch(0.426 0.047 234.854);
--accent-foreground: oklch(0.924 0.014 232.793);
--destructive: oklch(0.619 0.243 29.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.833 0.111 146.116);
--chart-1: oklch(0.833 0.111 146.116);
--chart-2: oklch(0.403 0.073 145.504);
--chart-3: oklch(0.426 0.047 234.854);
--chart-4: oklch(0.435 0.081 145.467);
--chart-5: oklch(0.836 0.117 146.032);
}