Polished is a shadcn/ui theme built around a vivid deep green primary color (#1a2801) with vivid deep green accents (#072801). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid deep green primary (#1a2801) on a green-tinted background (#090c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #090c03black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbfdf7snow | #090c03black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfdf7snow | #090c03black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1a2801black | #1a2801black |
| Primary foreground | #9ef005chartreuse | #9ef005chartreuse |
| Secondary | #282201black | #282201black |
| Secondary foreground | #f0cd05gold | #f0cd05gold |
| Muted | #eae9e6linen | #191815black |
| Muted foreground | #585750dimgray | #afaea7darkgray |
| Accent | #072801black | #072801black |
| Accent foreground | #28f005lime | #28f005lime |
| Destructive | #9d2802saddlebrown | #fd4c12orangered |
| Destructive foreground | #ffddd2blanchedalmond | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a2801black | #1a2801black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 11.06:1 | AAA |
| Secondary button | 10.17:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 10.33:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 11.06:1 | AAA |
| Secondary button | 10.17:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 10.33:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Polished in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 122.343);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.004 98.381);
--muted-foreground: oklch(0.456 0.011 98.659);
--popover: oklch(0.991 0.008 122.343);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.008 122.343);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.255 0.064 126.99);
--primary-foreground: oklch(0.868 0.234 130.27);
--secondary: oklch(0.251 0.051 99.469);
--secondary-foreground: oklch(0.852 0.175 96.407);
--accent: oklch(0.243 0.076 140.027);
--accent-foreground: oklch(0.83 0.277 141.831);
--destructive: oklch(0.46 0.158 35.655);
--destructive-foreground: oklch(0.922 0.041 39.301);
--ring: oklch(0.255 0.064 126.99);
--chart-1: oklch(0.255 0.064 126.99);
--chart-2: oklch(0.251 0.051 99.469);
--chart-3: oklch(0.243 0.076 140.027);
--chart-4: oklch(0.304 0.062 98.633);
--chart-5: oklch(0.257 0.066 127.076);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.023 122.111);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.006 98.707);
--muted-foreground: oklch(0.749 0.01 98.506);
--popover: oklch(0.148 0.023 122.111);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.023 122.111);
--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.255 0.064 126.99);
--primary-foreground: oklch(0.868 0.234 130.27);
--secondary: oklch(0.251 0.051 99.469);
--secondary-foreground: oklch(0.852 0.175 96.407);
--accent: oklch(0.243 0.076 140.027);
--accent-foreground: oklch(0.83 0.277 141.831);
--destructive: oklch(0.664 0.221 35.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.255 0.064 126.99);
--chart-1: oklch(0.255 0.064 126.99);
--chart-2: oklch(0.251 0.051 99.469);
--chart-3: oklch(0.243 0.076 140.027);
--chart-4: oklch(0.304 0.062 98.633);
--chart-5: oklch(0.257 0.066 127.076);
}