Iceberg Light is a shadcn/ui theme built around a muted deep blue primary color (#33374d) with muted light blue accents (#bec1ca). The light mode uses a blue-tinted background (#e9eaed). Dark mode keeps the muted deep blue primary (#33374d) on a blue-tinted background (#e9eaed).
| Token | Light | Dark |
|---|---|---|
| Background | #e9eaedlavender | #e9eaedlavender |
| Foreground | #33374ddarkslategray | #33374ddarkslategray |
| Card | #e3e4e8gainsboro | #e3e4e8gainsboro |
| Card foreground | #292c3ddarkslategray | #292c3ddarkslategray |
| Popover | #e0e2e6gainsboro | #e0e2e6gainsboro |
| Popover foreground | #1f212edarkslategray | #1f212edarkslategray |
| Primary | #33374ddarkslategray | #33374ddarkslategray |
| Primary foreground | #d1d4e0lightgrey | #d1d4e0lightgrey |
| Secondary | #b9bbc6silver | #b9bbc6silver |
| Secondary foreground | #22242adarkslategray | #22242adarkslategray |
| Muted | #dddfe4gainsboro | #dddfe4gainsboro |
| Muted foreground | #3f4350darkslategray | #3f4350darkslategray |
| Accent | #bec1casilver | #bec1casilver |
| Accent foreground | #272930darkslategray | #272930darkslategray |
| Destructive | #bd0a0afirebrick | #bd0a0afirebrick |
| Destructive foreground | #fffafasnow | #fffafasnow |
| Border | #dededegainsboro | #dededegainsboro |
| Input | #d6d6d6lightgrey | #d6d6d6lightgrey |
| Ring | #33374ddarkslategray | #33374ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.69:1 | AAA |
| Text on card | 10.87:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.36:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 9.69:1 | AAA |
| Text on card | 10.87:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.36:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Iceberg Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.936 0.004 271.367);
--foreground: oklch(0.343 0.038 275.482);
--muted: oklch(0.903 0.008 271.329);
--muted-foreground: oklch(0.384 0.023 270.768);
--popover: oklch(0.912 0.006 271.349);
--popover-foreground: oklch(0.252 0.024 275.715);
--card: oklch(0.92 0.005 271.355);
--card-foreground: oklch(0.298 0.031 275.577);
--border: oklch(0.9 0 188.746);
--input: oklch(0.877 0 180);
--primary: oklch(0.343 0.038 275.482);
--primary-foreground: oklch(0.871 0.018 276.972);
--secondary: oklch(0.794 0.015 276.991);
--secondary-foreground: oklch(0.26 0.012 276.576);
--accent: oklch(0.813 0.013 271.259);
--accent-foreground: oklch(0.282 0.012 270.952);
--destructive: oklch(0.504 0.203 28.762);
--destructive-foreground: oklch(0.989 0.005 17.24);
--ring: oklch(0.343 0.038 275.482);
--chart-1: oklch(0.343 0.038 275.482);
--chart-2: oklch(0.794 0.015 276.991);
--chart-3: oklch(0.813 0.013 271.259);
--chart-4: oklch(0.819 0.013 277.034);
--chart-5: oklch(0.339 0.044 275.14);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.936 0.004 271.367);
--foreground: oklch(0.343 0.038 275.482);
--muted: oklch(0.903 0.008 271.329);
--muted-foreground: oklch(0.384 0.023 270.768);
--popover: oklch(0.912 0.006 271.349);
--popover-foreground: oklch(0.252 0.024 275.715);
--card: oklch(0.92 0.005 271.355);
--card-foreground: oklch(0.298 0.031 275.577);
--border: oklch(0.9 0 188.746);
--input: oklch(0.877 0 180);
--primary: oklch(0.343 0.038 275.482);
--primary-foreground: oklch(0.871 0.018 276.972);
--secondary: oklch(0.794 0.015 276.991);
--secondary-foreground: oklch(0.26 0.012 276.576);
--accent: oklch(0.813 0.013 271.259);
--accent-foreground: oklch(0.282 0.012 270.952);
--destructive: oklch(0.504 0.203 28.762);
--destructive-foreground: oklch(0.989 0.005 17.24);
--ring: oklch(0.343 0.038 275.482);
--chart-1: oklch(0.343 0.038 275.482);
--chart-2: oklch(0.794 0.015 276.991);
--chart-3: oklch(0.813 0.013 271.259);
--chart-4: oklch(0.819 0.013 277.034);
--chart-5: oklch(0.339 0.044 275.14);
}