Developers Theme - Ocean is a shadcn/ui theme built around a vivid blue primary color (#2e77ff) with deep indigo accents (#31275d). The light mode uses an indigo-tinted background (#151128). Dark mode keeps the vivid blue primary (#2e77ff) on an indigo-tinted background (#151128).
| Token | Light | Dark |
|---|---|---|
| Background | #151128black | #151128black |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #110e20black | #110e20black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #0f0c1dblack | #0f0c1dblack |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #2e77ffdodgerblue | #2e77ffdodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acbad2lightsteelblue | #acbad2lightsteelblue |
| Secondary foreground | #1b2332darkslategray | #1b2332darkslategray |
| Muted | #23222bdarkslategray | #23222bdarkslategray |
| Muted foreground | #9f9bb0darkgray | #9f9bb0darkgray |
| Accent | #31275dmidnightblue | #31275dmidnightblue |
| Accent foreground | #d2cdeagainsboro | #d2cdeagainsboro |
| Destructive | #e02215crimson | #e02215crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #211c35darkslategray | #211c35darkslategray |
| Input | #27213fdarkslategray | #27213fdarkslategray |
| Ring | #2e77ffdodgerblue | #2e77ffdodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.44:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 4.03:1 | AA Large |
| Secondary button | 8.00:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.63:1 | AAA |
| Destructive | 4.75:1 | AA |
| Text on background | 18.44:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 4.03:1 | AA Large |
| Secondary button | 8.00:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.63:1 | AAA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Developers Theme - Ocean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.194 0.045 289.947);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.017 293.554);
--muted-foreground: oklch(0.7 0.031 293.987);
--popover: oklch(0.168 0.034 290.64);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.177 0.038 290.382);
--card-foreground: oklch(1 0 180);
--border: oklch(0.246 0.047 290.907);
--input: oklch(0.271 0.055 290.696);
--primary: oklch(0.604 0.215 261.407);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.785 0.038 262.896);
--secondary-foreground: oklch(0.255 0.031 262.476);
--accent: oklch(0.316 0.093 288.308);
--accent-foreground: oklch(0.861 0.041 293.94);
--destructive: oklch(0.581 0.222 29.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.604 0.215 261.407);
--chart-1: oklch(0.604 0.215 261.407);
--chart-2: oklch(0.785 0.038 262.896);
--chart-3: oklch(0.316 0.093 288.308);
--chart-4: oklch(0.811 0.033 262.93);
--chart-5: oklch(0.603 0.221 261.427);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.194 0.045 289.947);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.017 293.554);
--muted-foreground: oklch(0.7 0.031 293.987);
--popover: oklch(0.168 0.034 290.64);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.177 0.038 290.382);
--card-foreground: oklch(1 0 180);
--border: oklch(0.246 0.047 290.907);
--input: oklch(0.271 0.055 290.696);
--primary: oklch(0.604 0.215 261.407);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.785 0.038 262.896);
--secondary-foreground: oklch(0.255 0.031 262.476);
--accent: oklch(0.316 0.093 288.308);
--accent-foreground: oklch(0.861 0.041 293.94);
--destructive: oklch(0.581 0.222 29.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.604 0.215 261.407);
--chart-1: oklch(0.604 0.215 261.407);
--chart-2: oklch(0.785 0.038 262.896);
--chart-3: oklch(0.316 0.093 288.308);
--chart-4: oklch(0.811 0.033 262.93);
--chart-5: oklch(0.603 0.221 261.427);
}