Spacegray Ocean Light is a shadcn/ui theme built around a vivid blue primary color (#007acc) with muted light blue accents (#c0c8d8). The light mode uses a blue-tinted background (#eff1f5). Dark mode keeps the vivid blue primary (#007acc) on a blue-tinted background (#eff1f5).
| Token | Light | Dark |
|---|---|---|
| Background | #eff1f5whitesmoke | #eff1f5whitesmoke |
| Foreground | #4e5a65dimgray | #4e5a65dimgray |
| Card | #e9ecf1lavender | #e9ecf1lavender |
| Card foreground | #434d56darkslategray | #434d56darkslategray |
| Popover | #e6e9eflavender | #e6e9eflavender |
| Popover foreground | #374048darkslategray | #374048darkslategray |
| Primary | #007accdodgerblue | #007accdodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acc3d2lightsteelblue | #acc3d2lightsteelblue |
| Secondary foreground | #1b2932darkslategray | #1b2932darkslategray |
| Muted | #e2e4e9gainsboro | #e2e4e9gainsboro |
| Muted foreground | #434956darkslategray | #434956darkslategray |
| Accent | #c0c8d8lightsteelblue | #c0c8d8lightsteelblue |
| Accent foreground | #272f3fdarkslategray | #272f3fdarkslategray |
| Destructive | #bd130afirebrick | #bd130afirebrick |
| Destructive foreground | #fffafasnow | #fffafasnow |
| Border | #e2e4e9gainsboro | #e2e4e9gainsboro |
| Input | #dadce2gainsboro | #dadce2gainsboro |
| Ring | #007accdodgerblue | #007accdodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.25:1 | AA |
| Text on card | 7.27:1 | AAA |
| Primary button | 4.49:1 | AA Large |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 6.25:1 | AA |
| Text on card | 7.27:1 | AAA |
| Primary button | 4.49:1 | AA Large |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Spacegray Ocean Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.959 0.006 264.533);
--foreground: oklch(0.46 0.024 246.552);
--muted: oklch(0.92 0.006 264.531);
--muted-foreground: oklch(0.406 0.022 264.291);
--popover: oklch(0.934 0.009 264.519);
--popover-foreground: oklch(0.367 0.018 246.522);
--card: oklch(0.942 0.008 264.524);
--card-foreground: oklch(0.414 0.021 246.539);
--border: oklch(0.92 0.006 264.529);
--input: oklch(0.895 0.008 264.52);
--primary: oklch(0.568 0.154 248.339);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.805 0.033 237.063);
--secondary-foreground: oklch(0.271 0.025 238.108);
--accent: oklch(0.832 0.023 264.439);
--accent-foreground: oklch(0.305 0.03 263.965);
--destructive: oklch(0.507 0.2 29.449);
--destructive-foreground: oklch(0.99 0.005 20.949);
--ring: oklch(0.568 0.154 248.339);
--chart-1: oklch(0.568 0.154 248.339);
--chart-2: oklch(0.805 0.033 237.063);
--chart-3: oklch(0.832 0.023 264.439);
--chart-4: oklch(0.829 0.029 236.962);
--chart-5: oklch(0.571 0.158 248.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.959 0.006 264.533);
--foreground: oklch(0.46 0.024 246.552);
--muted: oklch(0.92 0.006 264.531);
--muted-foreground: oklch(0.406 0.022 264.291);
--popover: oklch(0.934 0.009 264.519);
--popover-foreground: oklch(0.367 0.018 246.522);
--card: oklch(0.942 0.008 264.524);
--card-foreground: oklch(0.414 0.021 246.539);
--border: oklch(0.92 0.006 264.529);
--input: oklch(0.895 0.008 264.52);
--primary: oklch(0.568 0.154 248.339);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.805 0.033 237.063);
--secondary-foreground: oklch(0.271 0.025 238.108);
--accent: oklch(0.832 0.023 264.439);
--accent-foreground: oklch(0.305 0.03 263.965);
--destructive: oklch(0.507 0.2 29.449);
--destructive-foreground: oklch(0.99 0.005 20.949);
--ring: oklch(0.568 0.154 248.339);
--chart-1: oklch(0.568 0.154 248.339);
--chart-2: oklch(0.805 0.033 237.063);
--chart-3: oklch(0.832 0.023 264.439);
--chart-4: oklch(0.829 0.029 236.962);
--chart-5: oklch(0.571 0.158 248.749);
}