Material Theme Ocean is a shadcn/ui theme built around a teal primary color (#80cbc4) with muted deep blue accents (#2b314a). The light mode uses a blue-tinted background (#0f111a). Dark mode keeps the teal primary (#80cbc4) on a blue-tinted background (#0f111a).
| Token | Light | Dark |
|---|---|---|
| Background | #0f111ablack | #0f111ablack |
| Foreground | #babed8lightsteelblue | #babed8lightsteelblue |
| Card | #0b0d13black | #0b0d13black |
| Card foreground | #cbcee2lightgrey | #cbcee2lightgrey |
| Popover | #090b10black | #090b10black |
| Popover foreground | #dbddebgainsboro | #dbddebgainsboro |
| Primary | #80cbc4mediumaquamarine | #80cbc4mediumaquamarine |
| Primary foreground | #071211black | #071211black |
| Secondary | #2d534fdarkslategray | #2d534fdarkslategray |
| Secondary foreground | #cde4e2gainsboro | #cde4e2gainsboro |
| Muted | #22232bdarkslategray | #22232bdarkslategray |
| Muted foreground | #9b9fb0darkgray | #9b9fb0darkgray |
| Accent | #2b314adarkslategray | #2b314adarkslategray |
| Accent foreground | #c8ccdflightgrey | #c8ccdflightgrey |
| Destructive | #e71008red | #e71008red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1c1e27black | #1c1e27black |
| Input | #222430darkslategray | #222430darkslategray |
| Ring | #80cbc4mediumaquamarine | #80cbc4mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.26:1 | AAA |
| Text on card | 12.46:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 5.92:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.68:1 | AA |
| Text on background | 10.26:1 | AAA |
| Text on card | 12.46:1 | AAA |
| Primary button | 10.22:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 5.92:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Material Theme Ocean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.18 0.019 274.55);
--foreground: oklch(0.808 0.037 278.614);
--muted: oklch(0.259 0.014 275.379);
--muted-foreground: oklch(0.705 0.026 275.659);
--popover: oklch(0.149 0.012 274.834);
--popover-foreground: oklch(0.901 0.019 279.022);
--card: oklch(0.159 0.015 274.785);
--card-foreground: oklch(0.855 0.028 278.835);
--border: oklch(0.235 0.018 275.036);
--input: oklch(0.265 0.022 274.955);
--primary: oklch(0.792 0.076 187.715);
--primary-foreground: oklch(0.172 0.016 187.914);
--secondary: oklch(0.412 0.044 187.35);
--secondary-foreground: oklch(0.902 0.025 189.451);
--accent: oklch(0.319 0.047 273.771);
--accent-foreground: oklch(0.848 0.027 275.731);
--destructive: oklch(0.587 0.236 29.299);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.792 0.076 187.715);
--chart-1: oklch(0.792 0.076 187.715);
--chart-2: oklch(0.412 0.044 187.35);
--chart-3: oklch(0.319 0.047 273.771);
--chart-4: oklch(0.445 0.049 187.304);
--chart-5: oklch(0.797 0.08 187.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.18 0.019 274.55);
--foreground: oklch(0.808 0.037 278.614);
--muted: oklch(0.259 0.014 275.379);
--muted-foreground: oklch(0.705 0.026 275.659);
--popover: oklch(0.149 0.012 274.834);
--popover-foreground: oklch(0.901 0.019 279.022);
--card: oklch(0.159 0.015 274.785);
--card-foreground: oklch(0.855 0.028 278.835);
--border: oklch(0.235 0.018 275.036);
--input: oklch(0.265 0.022 274.955);
--primary: oklch(0.792 0.076 187.715);
--primary-foreground: oklch(0.172 0.016 187.914);
--secondary: oklch(0.412 0.044 187.35);
--secondary-foreground: oklch(0.902 0.025 189.451);
--accent: oklch(0.319 0.047 273.771);
--accent-foreground: oklch(0.848 0.027 275.731);
--destructive: oklch(0.587 0.236 29.299);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.792 0.076 187.715);
--chart-1: oklch(0.792 0.076 187.715);
--chart-2: oklch(0.412 0.044 187.35);
--chart-3: oklch(0.319 0.047 273.771);
--chart-4: oklch(0.445 0.049 187.304);
--chart-5: oklch(0.797 0.08 187.568);
}