Polished is a shadcn/ui theme built around a deep pink primary color (#44122d) with muted light pink accents (#e6e0e3). The light mode uses a neutral background (#fbf8fa). Dark mode keeps the deep pink primary (#44122d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fasnow | #000000black |
| Foreground | #10040bblack | #faf4f8whitesmoke |
| Card | #fbf8fasnow | #000000black |
| Card foreground | #10040bblack | #faf4f8whitesmoke |
| Popover | #fbf8fasnow | #000000black |
| Popover foreground | #10040bblack | #faf4f8whitesmoke |
| Primary | #44122ddarkslategray | #44122ddarkslategray |
| Primary foreground | #e6a2c7plum | #e6a2c7plum |
| Secondary | #e6e0e3gainsboro | #1c1217black |
| Secondary foreground | #52424adarkslategray | #c0a0b1darkgray |
| Muted | #f7edf3whitesmoke | #12080dblack |
| Muted foreground | #6d5462dimgray | #ab929frosybrown |
| Accent | #e6e0e3gainsboro | #1c1217black |
| Accent foreground | #52424adarkslategray | #c0a0b1darkgray |
| Destructive | #b8380afirebrick | #f34e12orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #44122ddarkslategray | #44122ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Polished in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 343.547);
--foreground: oklch(0.136 0.027 345.471);
--muted: oklch(0.956 0.012 343.767);
--muted-foreground: oklch(0.477 0.039 345.378);
--popover: oklch(0.983 0.004 343.547);
--popover-foreground: oklch(0.136 0.027 345.471);
--card: oklch(0.983 0.004 343.547);
--card-foreground: oklch(0.136 0.027 345.471);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.277 0.084 350.972);
--primary-foreground: oklch(0.789 0.093 346.193);
--secondary: oklch(0.912 0.008 343.663);
--secondary-foreground: oklch(0.399 0.026 345.02);
--accent: oklch(0.912 0.008 343.663);
--accent-foreground: oklch(0.399 0.026 345.02);
--destructive: oklch(0.526 0.172 36.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.084 350.972);
--chart-1: oklch(0.277 0.084 350.972);
--chart-2: oklch(0.912 0.008 343.663);
--chart-3: oklch(0.912 0.008 343.663);
--chart-4: oklch(0.936 0.006 343.599);
--chart-5: oklch(0.278 0.087 351.381);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.008 343.645);
--muted: oklch(0.151 0.02 346.213);
--muted-foreground: oklch(0.685 0.035 344.692);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.008 343.645);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.008 343.645);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.277 0.084 350.972);
--primary-foreground: oklch(0.789 0.093 346.193);
--secondary: oklch(0.198 0.018 345.557);
--secondary-foreground: oklch(0.74 0.044 344.863);
--accent: oklch(0.198 0.018 345.557);
--accent-foreground: oklch(0.74 0.044 344.863);
--destructive: oklch(0.648 0.21 36.946);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.084 350.972);
--chart-1: oklch(0.277 0.084 350.972);
--chart-2: oklch(0.198 0.018 345.557);
--chart-3: oklch(0.198 0.018 345.557);
--chart-4: oklch(0.229 0.023 345.777);
--chart-5: oklch(0.278 0.087 351.381);
}