Polished is a shadcn/ui theme built around a vivid indigo primary color (#3300db) with neutral gray accents (#e5e5e6). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#3300db) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020104black |
| Foreground | #030208black | #fcfcfdwhite |
| Card | #f8f6fdghostwhite | #040307black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #f8f6fdghostwhite | #040307black |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #3300dbmediumblue | #3300dbmediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e5e5e6gainsboro | #2b273adarkslategray |
| Secondary foreground | #4c4c4ddarkslategray | #c4bfd4thistle |
| Muted | #e7e4f1lavender | #110e1bblack |
| Muted foreground | #434248darkslategray | #b9b7bdsilver |
| Accent | #e5e5e6gainsboro | #2b273adarkslategray |
| Accent foreground | #4c4c4ddarkslategray | #c4bfd4thistle |
| Destructive | #c8330efirebrick | #db380forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3300dbmediumblue | #3300dbmediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 9.68:1 | AAA |
| Secondary button | 6.82:1 | AA |
| Muted text | 7.95:1 | AAA |
| Accent | 6.82:1 | AA |
| Destructive | 5.32:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 9.68:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 9.58:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Polished in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 296.996);
--foreground: oklch(0.097 0.022 296.482);
--muted: oklch(0.926 0.017 296.744);
--muted-foreground: oklch(0.383 0.009 296.638);
--popover: oklch(0.978 0.009 296.91);
--popover-foreground: oklch(0.077 0.018 296.482);
--card: oklch(0.978 0.009 296.91);
--card-foreground: oklch(0.077 0.018 296.482);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.421 0.269 273.112);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.923 0.001 297.066);
--secondary-foreground: oklch(0.416 0.003 296.969);
--accent: oklch(0.923 0.001 297.066);
--accent-foreground: oklch(0.416 0.003 296.969);
--destructive: oklch(0.55 0.191 33.858);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.421 0.269 273.112);
--chart-1: oklch(0.421 0.269 273.112);
--chart-2: oklch(0.923 0.001 297.066);
--chart-3: oklch(0.923 0.001 297.066);
--chart-4: oklch(0.946 0 297.07);
--chart-5: oklch(0.423 0.273 272.377);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.014 296.658);
--foreground: oklch(0.991 0.002 297.042);
--muted: oklch(0.175 0.026 294.249);
--muted-foreground: oklch(0.783 0.008 296.899);
--popover: oklch(0.102 0.017 296.658);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.017 296.658);
--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.421 0.269 273.112);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.286 0.035 294.759);
--secondary-foreground: oklch(0.815 0.03 296.409);
--accent: oklch(0.286 0.035 294.759);
--accent-foreground: oklch(0.815 0.03 296.409);
--destructive: oklch(0.588 0.205 33.784);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.421 0.269 273.112);
--chart-1: oklch(0.421 0.269 273.112);
--chart-2: oklch(0.286 0.035 294.759);
--chart-3: oklch(0.286 0.035 294.759);
--chart-4: oklch(0.312 0.04 294.674);
--chart-5: oklch(0.423 0.273 272.377);
}