Polite is a shadcn/ui theme built around a vivid red primary color (#f4978a) with vivid orange accents (#f4cc8a). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid red primary (#f4978a) on a red-tinted background (#0e0706).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #0e0706black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fdf7f7snow | #0e0706black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fdf7f7snow | #0e0706black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #f4978adarksalmon | #f4978adarksalmon |
| Primary foreground | #460e07maroon | #460e07maroon |
| Secondary | #f48ab3hotpink | #f48ab3hotpink |
| Secondary foreground | #46071fmaroon | #46071fmaroon |
| Muted | #e4d8dcgainsboro | #271b20black |
| Muted foreground | #6b6165dimgray | #9e9498darkgray |
| Accent | #f4cc8akhaki | #f4cc8akhaki |
| Accent foreground | #462e07saddlebrown | #462e07saddlebrown |
| Destructive | #bc4c0bchocolate | #e75d0dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4978adarksalmon | #f4978adarksalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 4.29:1 | AA Large |
| Accent | 8.35:1 | AAA |
| Destructive | 5.03:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 5.64:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Polite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 26.484);
--foreground: oklch(0.085 0.013 32.221);
--muted: oklch(0.893 0.014 352.049);
--muted-foreground: oklch(0.503 0.014 352.387);
--popover: oklch(0.981 0.006 26.484);
--popover-foreground: oklch(0.085 0.013 32.221);
--card: oklch(0.981 0.006 26.484);
--card-foreground: oklch(0.085 0.013 32.221);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.768 0.115 28.112);
--primary-foreground: oklch(0.263 0.087 31.165);
--secondary: oklch(0.759 0.136 356.418);
--secondary-foreground: oklch(0.261 0.094 4.133);
--accent: oklch(0.864 0.095 78.893);
--accent-foreground: oklch(0.322 0.063 73.947);
--destructive: oklch(0.557 0.159 43.544);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.115 28.112);
--chart-1: oklch(0.768 0.115 28.112);
--chart-2: oklch(0.759 0.136 356.418);
--chart-3: oklch(0.864 0.095 78.893);
--chart-4: oklch(0.786 0.119 355.652);
--chart-5: oklch(0.768 0.119 28.197);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 29.279);
--foreground: oklch(1 0 180);
--muted: oklch(0.239 0.02 353.903);
--muted-foreground: oklch(0.676 0.013 352.143);
--popover: oklch(0.139 0.014 29.279);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.014 29.279);
--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.768 0.115 28.112);
--primary-foreground: oklch(0.263 0.087 31.165);
--secondary: oklch(0.759 0.136 356.418);
--secondary-foreground: oklch(0.261 0.094 4.133);
--accent: oklch(0.864 0.095 78.893);
--accent-foreground: oklch(0.322 0.063 73.947);
--destructive: oklch(0.649 0.187 43.14);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.115 28.112);
--chart-1: oklch(0.768 0.115 28.112);
--chart-2: oklch(0.759 0.136 356.418);
--chart-3: oklch(0.864 0.095 78.893);
--chart-4: oklch(0.786 0.119 355.652);
--chart-5: oklch(0.768 0.119 28.197);
}