Dainty – Material Theme Ocean is a shadcn/ui theme built around a vivid blue primary color (#759ef0) with muted deep blue accents (#2b314a). The light mode uses a blue-tinted background (#0f111a). Dark mode keeps the vivid blue primary (#759ef0) on a blue-tinted background (#0f111a).
| Token | Light | Dark |
|---|---|---|
| Background | #0f111ablack | #0f111ablack |
| Foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Card | #0b0d13black | #0b0d13black |
| Card foreground | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Popover | #090b10black | #090b10black |
| Popover foreground | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Primary | #759ef0cornflowerblue | #759ef0cornflowerblue |
| Primary foreground | #05132eblack | #05132eblack |
| Secondary | #2d3953darkslategray | #2d3953darkslategray |
| Secondary foreground | #cdd5e4lightgrey | #cdd5e4lightgrey |
| Muted | #22232bdarkslategray | #22232bdarkslategray |
| Muted foreground | #9b9fb0darkgray | #9b9fb0darkgray |
| Accent | #2b314adarkslategray | #2b314adarkslategray |
| Accent foreground | #c8ccdflightgrey | #c8ccdflightgrey |
| Destructive | #f44034tomato | #f44034tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1c1e27black | #1c1e27black |
| Input | #222430darkslategray | #222430darkslategray |
| Ring | #759ef0cornflowerblue | #759ef0cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.34:1 | AAA |
| Text on card | 15.57:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.71:1 | AA Large |
| Text on background | 13.34:1 | AAA |
| Text on card | 15.57:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Dainty – Material Theme Ocean in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.18 0.019 274.55);
--foreground: oklch(0.885 0 180);
--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.962 0 180);
--card: oklch(0.159 0.015 274.785);
--card-foreground: oklch(0.923 0 153.435);
--border: oklch(0.235 0.018 275.036);
--input: oklch(0.265 0.022 274.955);
--primary: oklch(0.704 0.13 263.244);
--primary-foreground: oklch(0.192 0.059 261.389);
--secondary: oklch(0.347 0.048 263.643);
--secondary-foreground: oklch(0.872 0.023 264.45);
--accent: oklch(0.319 0.047 273.771);
--accent-foreground: oklch(0.848 0.027 275.731);
--destructive: oklch(0.641 0.218 28.853);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.13 263.244);
--chart-1: oklch(0.704 0.13 263.244);
--chart-2: oklch(0.347 0.048 263.643);
--chart-3: oklch(0.319 0.047 273.771);
--chart-4: oklch(0.373 0.053 263.618);
--chart-5: oklch(0.702 0.135 263.182);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.18 0.019 274.55);
--foreground: oklch(0.885 0 180);
--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.962 0 180);
--card: oklch(0.159 0.015 274.785);
--card-foreground: oklch(0.923 0 153.435);
--border: oklch(0.235 0.018 275.036);
--input: oklch(0.265 0.022 274.955);
--primary: oklch(0.704 0.13 263.244);
--primary-foreground: oklch(0.192 0.059 261.389);
--secondary: oklch(0.347 0.048 263.643);
--secondary-foreground: oklch(0.872 0.023 264.45);
--accent: oklch(0.319 0.047 273.771);
--accent-foreground: oklch(0.848 0.027 275.731);
--destructive: oklch(0.641 0.218 28.853);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.13 263.244);
--chart-1: oklch(0.704 0.13 263.244);
--chart-2: oklch(0.347 0.048 263.643);
--chart-3: oklch(0.319 0.047 273.771);
--chart-4: oklch(0.373 0.053 263.618);
--chart-5: oklch(0.702 0.135 263.182);
}