Boxy Ocean (dimmed bg) is a shadcn/ui theme built around a near-white primary color (#ffffff) with deep blue accents (#2e4957). The light mode uses a blue-tinted background (#131f25). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#131f25).
| Token | Light | Dark |
|---|---|---|
| Background | #131f25black | #131f25black |
| Foreground | #ced4delightgrey | #ced4delightgrey |
| Card | #10191eblack | #10191eblack |
| Card foreground | #dde1e9gainsboro | #dde1e9gainsboro |
| Popover | #0e171bblack | #0e171bblack |
| Popover foreground | #edeff3whitesmoke | #edeff3whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22282bdarkslategray | #22282bdarkslategray |
| Muted foreground | #9ba9b0darkgray | #9ba9b0darkgray |
| Accent | #2e4957darkslategray | #2e4957darkslategray |
| Accent foreground | #d0dfe6gainsboro | #d0dfe6gainsboro |
| Destructive | #ef0e06red | #ef0e06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #202c31darkslategray | #202c31darkslategray |
| Input | #26343bdarkslategray | #26343bdarkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.27:1 | AAA |
| Text on card | 13.54:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 4.44:1 | AA Large |
| Text on background | 11.27:1 | AAA |
| Text on card | 13.54:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Boxy Ocean (dimmed bg) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.231 0.02 230.33);
--foreground: oklch(0.868 0.016 263.013);
--muted: oklch(0.271 0.01 229.315);
--muted-foreground: oklch(0.727 0.019 229.118);
--popover: oklch(0.196 0.015 230.108);
--popover-foreground: oklch(0.951 0.006 263.043);
--card: oklch(0.208 0.017 230.191);
--card-foreground: oklch(0.91 0.011 263.03);
--border: oklch(0.284 0.019 229.86);
--input: oklch(0.315 0.022 229.918);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.39 0.04 230.85);
--accent-foreground: oklch(0.895 0.019 229.039);
--destructive: oklch(0.6 0.242 29.349);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.39 0.04 230.85);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.231 0.02 230.33);
--foreground: oklch(0.868 0.016 263.013);
--muted: oklch(0.271 0.01 229.315);
--muted-foreground: oklch(0.727 0.019 229.118);
--popover: oklch(0.196 0.015 230.108);
--popover-foreground: oklch(0.951 0.006 263.043);
--card: oklch(0.208 0.017 230.191);
--card-foreground: oklch(0.91 0.011 263.03);
--border: oklch(0.284 0.019 229.86);
--input: oklch(0.315 0.022 229.918);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.39 0.04 230.85);
--accent-foreground: oklch(0.895 0.019 229.039);
--destructive: oklch(0.6 0.242 29.349);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.39 0.04 230.85);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}