D v1 - Clear Blue Otter is a shadcn/ui theme built around a near-black primary color (#18181b) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid blue primary (#007aff) on a violet-tinted background (#0a090b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a090bblack |
| Foreground | #09090bblack | #fafafasnow |
| Card | #ffffffwhite | #141414black |
| Card foreground | #09090bblack | #fafafasnow |
| Popover | #ffffffwhite | #141414black |
| Popover foreground | #09090bblack | #fafafasnow |
| Primary | #18181bblack | #007affdodgerblue |
| Primary foreground | #fafafasnow | #e5e5e5gainsboro |
| Secondary | #f4f4f5whitesmoke | #27272adarkslategray |
| Secondary foreground | #18181bblack | #fafafasnow |
| Muted | #f4f4f5whitesmoke | #27272adarkslategray |
| Muted foreground | #71717adimgray | #a1a1aadarkgray |
| Accent | #f4f4f5whitesmoke | #27272adarkslategray |
| Accent foreground | #18181bblack | #fafafasnow |
| Destructive | #ef4444tomato | #7f1d1dmaroon |
| Destructive foreground | #fafafasnow | #fafafasnow |
| Border | #e4e4e7gainsboro | #27272adarkslategray |
| Input | #e4e4e7gainsboro | #27272adarkslategray |
| Ring | #18181bblack | #d4d4d8lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 16.97:1 | AAA |
| Secondary button | 16.12:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 16.12:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 19.03:1 | AAA |
| Text on card | 17.65:1 | AAA |
| Primary button | 3.18:1 | AA Large |
| Secondary button | 14.26:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 14.26:1 | AAA |
| Destructive | 9.59:1 | AAA |
Paste this into your globals.css to use D v1 - Clear Blue Otter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.004 285.824);
--muted: oklch(0.968 0.001 286.375);
--muted-foreground: oklch(0.552 0.014 285.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.004 285.824);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.004 285.824);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--primary: oklch(0.21 0.006 285.883);
--primary-foreground: oklch(0.985 0 180);
--secondary: oklch(0.968 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.883);
--accent: oklch(0.968 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.883);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.21 0.006 285.883);
--chart-1: oklch(0.677 0.157 35.19);
--chart-2: oklch(0.631 0.101 183.491);
--chart-3: oklch(0.379 0.044 225.539);
--chart-4: oklch(0.834 0.119 88.146);
--chart-5: oklch(0.783 0.126 58.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.005 308.447);
--foreground: oklch(0.985 0 180);
--muted: oklch(0.274 0.005 286.033);
--muted-foreground: oklch(0.712 0.013 286.068);
--popover: oklch(0.191 0 180);
--popover-foreground: oklch(0.985 0 180);
--card: oklch(0.191 0 180);
--card-foreground: oklch(0.985 0 180);
--border: oklch(0.274 0.005 286.033);
--input: oklch(0.274 0.005 286.033);
--primary: oklch(0.603 0.218 257.42);
--primary-foreground: oklch(0.922 0 168.69);
--secondary: oklch(0.274 0.005 286.033);
--secondary-foreground: oklch(0.985 0 180);
--accent: oklch(0.274 0.005 286.033);
--accent-foreground: oklch(0.985 0 180);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.871 0.005 286.285);
--chart-1: oklch(0.53 0.193 262.051);
--chart-2: oklch(0.248 0 180);
--chart-3: oklch(0.273 0 180);
--chart-4: oklch(0.417 0 180);
--chart-5: oklch(0.489 0 153.435);
}