Iceberg is a shadcn/ui theme built around a muted light blue primary color (#c6c8d2) with muted deep blue accents (#353a50). The light mode uses a blue-tinted background (#161822). Dark mode keeps the muted light blue primary (#c6c8d2) on a blue-tinted background (#161822).
| Token | Light | Dark |
|---|---|---|
| Background | #161822black | #161822black |
| Foreground | #c6c8d2lightgrey | #c6c8d2lightgrey |
| Card | #12141cblack | #12141cblack |
| Card foreground | #d5d6ddgainsboro | #d5d6ddgainsboro |
| Popover | #101218black | #101218black |
| Popover foreground | #e3e4e8gainsboro | #e3e4e8gainsboro |
| Primary | #c6c8d2lightgrey | #c6c8d2lightgrey |
| Primary foreground | #2d2f39darkslategray | #2d2f39darkslategray |
| Secondary | #3f3f40darkslategray | #3f3f40darkslategray |
| Secondary foreground | #d8d9d9gainsboro | #d8d9d9gainsboro |
| Muted | #22232bdarkslategray | #22232bdarkslategray |
| Muted foreground | #9b9fb0darkgray | #9b9fb0darkgray |
| Accent | #353a50darkslategray | #353a50darkslategray |
| Accent foreground | #d4d7e2gainsboro | #d4d7e2gainsboro |
| Destructive | #fd0808red | #fd0808red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #25262ddarkslategray | #25262ddarkslategray |
| Input | #2c2d35darkslategray | #2c2d35darkslategray |
| Ring | #c6c8d2lightgrey | #c6c8d2lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.55:1 | AAA |
| Text on card | 12.67:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.04:1 | AA Large |
| Text on background | 10.55:1 | AAA |
| Text on card | 12.67:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Iceberg in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.213 0.018 274.875);
--foreground: oklch(0.835 0.013 275.961);
--muted: oklch(0.259 0.014 275.379);
--muted-foreground: oklch(0.705 0.026 275.659);
--popover: oklch(0.183 0.014 275.046);
--popover-foreground: oklch(0.919 0.006 276.076);
--card: oklch(0.193 0.015 274.982);
--card-foreground: oklch(0.877 0.01 276.022);
--border: oklch(0.271 0.013 275.515);
--input: oklch(0.3 0.014 275.484);
--primary: oklch(0.835 0.013 275.961);
--primary-foreground: oklch(0.309 0.017 275.395);
--secondary: oklch(0.369 0.002 276.102);
--secondary-foreground: oklch(0.884 0.001 276.153);
--accent: oklch(0.353 0.038 274.485);
--accent-foreground: oklch(0.88 0.016 275.919);
--destructive: oklch(0.625 0.254 29.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.835 0.013 275.961);
--chart-1: oklch(0.835 0.013 275.961);
--chart-2: oklch(0.369 0.002 276.102);
--chart-3: oklch(0.353 0.038 274.485);
--chart-4: oklch(0.398 0.002 276.101);
--chart-5: oklch(0.833 0.016 275.901);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.213 0.018 274.875);
--foreground: oklch(0.835 0.013 275.961);
--muted: oklch(0.259 0.014 275.379);
--muted-foreground: oklch(0.705 0.026 275.659);
--popover: oklch(0.183 0.014 275.046);
--popover-foreground: oklch(0.919 0.006 276.076);
--card: oklch(0.193 0.015 274.982);
--card-foreground: oklch(0.877 0.01 276.022);
--border: oklch(0.271 0.013 275.515);
--input: oklch(0.3 0.014 275.484);
--primary: oklch(0.835 0.013 275.961);
--primary-foreground: oklch(0.309 0.017 275.395);
--secondary: oklch(0.369 0.002 276.102);
--secondary-foreground: oklch(0.884 0.001 276.153);
--accent: oklch(0.353 0.038 274.485);
--accent-foreground: oklch(0.88 0.016 275.919);
--destructive: oklch(0.625 0.254 29.042);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.835 0.013 275.961);
--chart-1: oklch(0.835 0.013 275.961);
--chart-2: oklch(0.369 0.002 276.102);
--chart-3: oklch(0.353 0.038 274.485);
--chart-4: oklch(0.398 0.002 276.101);
--chart-5: oklch(0.833 0.016 275.901);
}