Icon is a shadcn/ui theme built around a pink primary color (#ca77ae) with blue accents (#77aeca). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the pink primary (#ca77ae) on a neutral background (#040203).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #040203black |
| Foreground | #0f050cblack | #ffffffwhite |
| Card | #fcf8fbsnow | #040203black |
| Card foreground | #0f050cblack | #ffffffwhite |
| Popover | #fcf8fbsnow | #040203black |
| Popover foreground | #0f050cblack | #ffffffwhite |
| Primary | #ca77aepalevioletred | #ca77aepalevioletred |
| Primary foreground | #0b0409black | #0b0409black |
| Secondary | #aeca77darkkhaki | #aeca77darkkhaki |
| Secondary foreground | #090b04black | #090b04black |
| Muted | #dadbd6gainsboro | #272924darkslategray |
| Muted foreground | #585e4adarkolivegreen | #aeb5a1darkgray |
| Accent | #77aecacornflowerblue | #77aecacornflowerblue |
| Accent foreground | #04090bblack | #04090bblack |
| Destructive | #d30909red | #e10909red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ca77aepalevioletred | #ca77aepalevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 10.87:1 | AAA |
| Muted text | 4.85:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.73:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 10.87:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use Icon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 337.383);
--foreground: oklch(0.137 0.026 339.322);
--muted: oklch(0.89 0.007 121.628);
--muted-foreground: oklch(0.471 0.033 122.63);
--popover: oklch(0.983 0.006 337.383);
--popover-foreground: oklch(0.137 0.026 339.322);
--card: oklch(0.983 0.006 337.383);
--card-foreground: oklch(0.137 0.026 339.322);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.677 0.125 340.693);
--primary-foreground: oklch(0.125 0.019 337.677);
--secondary: oklch(0.8 0.113 123.97);
--secondary-foreground: oklch(0.144 0.017 121.32);
--accent: oklch(0.724 0.07 230.65);
--accent-foreground: oklch(0.133 0.011 224.098);
--destructive: oklch(0.546 0.221 28.904);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.677 0.125 340.693);
--chart-1: oklch(0.677 0.125 340.693);
--chart-2: oklch(0.8 0.113 123.97);
--chart-3: oklch(0.724 0.07 230.65);
--chart-4: oklch(0.816 0.104 123.697);
--chart-5: oklch(0.676 0.133 340.918);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.011 337.529);
--foreground: oklch(1 0 180);
--muted: oklch(0.277 0.01 122.076);
--muted-foreground: oklch(0.762 0.029 122.113);
--popover: oklch(0.087 0.011 337.529);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.087 0.011 337.529);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.677 0.125 340.693);
--primary-foreground: oklch(0.125 0.019 337.677);
--secondary: oklch(0.8 0.113 123.97);
--secondary-foreground: oklch(0.144 0.017 121.32);
--accent: oklch(0.724 0.07 230.65);
--accent-foreground: oklch(0.133 0.011 224.098);
--destructive: oklch(0.574 0.232 28.93);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.677 0.125 340.693);
--chart-1: oklch(0.677 0.125 340.693);
--chart-2: oklch(0.8 0.113 123.97);
--chart-3: oklch(0.724 0.07 230.65);
--chart-4: oklch(0.816 0.104 123.697);
--chart-5: oklch(0.676 0.133 340.918);
}