Icing is a shadcn/ui theme built around a muted light purple primary color (#e3d3e4) with muted light teal accents (#d3e4e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#e3d3e4) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040104black |
| Foreground | #080208black | #fcf8fcsnow |
| Card | #fcfcfcsnow | #070307black |
| Card foreground | #040104black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #070307black |
| Popover foreground | #040104black | #fdfcfdwhite |
| Primary | #e3d3e4gainsboro | #e3d3e4gainsboro |
| Primary foreground | #513252darkslategray | #513252darkslategray |
| Secondary | #e4e3d3gainsboro | #e4e3d3gainsboro |
| Secondary foreground | #525132darkolivegreen | #525132darkolivegreen |
| Muted | #f3f2e8linen | #17170cblack |
| Muted foreground | #4c4c42darkslategray | #bdbcb3silver |
| Accent | #d3e4e3gainsboro | #d3e4e3gainsboro |
| Accent foreground | #325251darkslategray | #325251darkslategray |
| Destructive | #a13808saddlebrown | #f56624chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3d3e4gainsboro | #e3d3e4gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 7.71:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 9.45:1 | AAA |
| Accent | 6.48:1 | AA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Icing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.025 326.218);
--muted: oklch(0.959 0.014 105.056);
--muted-foreground: oklch(0.414 0.016 105.448);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.086 0.019 326.218);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.086 0.019 326.218);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.885 0.029 324.827);
--primary-foreground: oklch(0.368 0.066 325.667);
--secondary: oklch(0.913 0.022 105.224);
--secondary-foreground: oklch(0.428 0.047 106.533);
--accent: oklch(0.906 0.018 194.415);
--accent-foreground: oklch(0.414 0.038 193.117);
--destructive: oklch(0.486 0.148 39.989);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.029 324.827);
--chart-1: oklch(0.885 0.029 324.827);
--chart-2: oklch(0.913 0.022 105.224);
--chart-3: oklch(0.906 0.018 194.415);
--chart-4: oklch(0.932 0.017 105.129);
--chart-5: oklch(0.884 0.033 324.853);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.015 325.868);
--foreground: oklch(0.983 0.006 324.659);
--muted: oklch(0.201 0.019 106.346);
--muted-foreground: oklch(0.794 0.013 105.1);
--popover: oklch(0.11 0.019 325.868);
--popover-foreground: oklch(0.992 0.003 324.639);
--card: oklch(0.11 0.019 325.868);
--card-foreground: oklch(0.992 0.003 324.639);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.029 324.827);
--primary-foreground: oklch(0.368 0.066 325.667);
--secondary: oklch(0.913 0.022 105.224);
--secondary-foreground: oklch(0.428 0.047 106.533);
--accent: oklch(0.906 0.018 194.415);
--accent-foreground: oklch(0.414 0.038 193.117);
--destructive: oklch(0.681 0.19 41.756);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.885 0.029 324.827);
--chart-1: oklch(0.885 0.029 324.827);
--chart-2: oklch(0.913 0.022 105.224);
--chart-3: oklch(0.906 0.018 194.415);
--chart-4: oklch(0.932 0.017 105.129);
--chart-5: oklch(0.884 0.033 324.853);
}