Ocean Dark Extended is a shadcn/ui theme built around a muted blue primary color (#a6acb9) with muted blue accents (#4b5468). The light mode uses a blue-tinted background (#2b303b). Dark mode keeps the muted blue primary (#a6acb9) on a blue-tinted background (#2b303b).
| Token | Light | Dark |
|---|---|---|
| Background | #2b303bdarkslategray | #2b303bdarkslategray |
| Foreground | #c0c5cesilver | #c0c5cesilver |
| Card | #272b35darkslategray | #272b35darkslategray |
| Card foreground | #ced2d9lightgrey | #ced2d9lightgrey |
| Popover | #242932darkslategray | #242932darkslategray |
| Popover foreground | #dcdfe4gainsboro | #dcdfe4gainsboro |
| Primary | #a6acb9darkgray | #a6acb9darkgray |
| Primary foreground | #14161ablack | #14161ablack |
| Secondary | #3e3f41darkslategray | #3e3f41darkslategray |
| Secondary foreground | #d8d8dagainsboro | #d8d8dagainsboro |
| Muted | #363b45darkslategray | #363b45darkslategray |
| Muted foreground | #b5bac5silver | #b5bac5silver |
| Accent | #4b5468dimgray | #4b5468dimgray |
| Accent foreground | #f0f2f4whitesmoke | #f0f2f4whitesmoke |
| Destructive | #ee3211orangered | #ee3211orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3c3e44darkslategray | #3c3e44darkslategray |
| Input | #43464cdarkslategray | #43464cdarkslategray |
| Ring | #a6acb9darkgray | #a6acb9darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.62:1 | AAA |
| Text on card | 9.32:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 4.10:1 | AA Large |
| Text on background | 7.62:1 | AAA |
| Text on card | 9.32:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Ocean Dark Extended in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.309 0.021 265.555);
--foreground: oklch(0.822 0.013 263.019);
--muted: oklch(0.35 0.019 265.683);
--muted-foreground: oklch(0.788 0.016 265.902);
--popover: oklch(0.28 0.019 265.577);
--popover-foreground: oklch(0.904 0.008 263.038);
--card: oklch(0.29 0.02 265.57);
--card-foreground: oklch(0.863 0.011 263.028);
--border: oklch(0.365 0.01 265.87);
--input: oklch(0.393 0.01 265.867);
--primary: oklch(0.745 0.02 265.867);
--primary-foreground: oklch(0.2 0.008 265.778);
--secondary: oklch(0.369 0.003 265.967);
--secondary-foreground: oklch(0.884 0.002 265.999);
--accent: oklch(0.446 0.034 265.492);
--accent-foreground: oklch(0.959 0.004 265.988);
--destructive: oklch(0.617 0.226 31.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.745 0.02 265.867);
--chart-1: oklch(0.745 0.02 265.867);
--chart-2: oklch(0.369 0.003 265.967);
--chart-3: oklch(0.446 0.034 265.492);
--chart-4: oklch(0.397 0.003 265.966);
--chart-5: oklch(0.742 0.025 265.824);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.309 0.021 265.555);
--foreground: oklch(0.822 0.013 263.019);
--muted: oklch(0.35 0.019 265.683);
--muted-foreground: oklch(0.788 0.016 265.902);
--popover: oklch(0.28 0.019 265.577);
--popover-foreground: oklch(0.904 0.008 263.038);
--card: oklch(0.29 0.02 265.57);
--card-foreground: oklch(0.863 0.011 263.028);
--border: oklch(0.365 0.01 265.87);
--input: oklch(0.393 0.01 265.867);
--primary: oklch(0.745 0.02 265.867);
--primary-foreground: oklch(0.2 0.008 265.778);
--secondary: oklch(0.369 0.003 265.967);
--secondary-foreground: oklch(0.884 0.002 265.999);
--accent: oklch(0.446 0.034 265.492);
--accent-foreground: oklch(0.959 0.004 265.988);
--destructive: oklch(0.617 0.226 31.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.745 0.02 265.867);
--chart-1: oklch(0.745 0.02 265.867);
--chart-2: oklch(0.369 0.003 265.967);
--chart-3: oklch(0.446 0.034 265.492);
--chart-4: oklch(0.397 0.003 265.966);
--chart-5: oklch(0.742 0.025 265.824);
}