Portly is a shadcn/ui theme built around a light red primary color (#e7cecb) with light cyan accents (#cbe3e7). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#e7cecb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #150604black | #faf5f5whitesmoke |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #150604black | #faf5f5whitesmoke |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #150604black | #faf5f5whitesmoke |
| Primary | #e7cecblightgrey | #e7cecblightgrey |
| Primary foreground | #572e28saddlebrown | #572e28saddlebrown |
| Secondary | #cbe3e7gainsboro | #cbe3e7gainsboro |
| Secondary foreground | #285157darkslategray | #285157darkslategray |
| Muted | #ecf2f3whitesmoke | #0c1213black |
| Muted foreground | #3b4344darkslategray | #bbc3c4silver |
| Accent | #cbe3e7gainsboro | #cbe3e7gainsboro |
| Accent foreground | #285157darkslategray | #285157darkslategray |
| Destructive | #732202maroon | #e14305orangered |
| Destructive foreground | #fdc2aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7cecblightgrey | #e7cecblightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 8.97:1 | AAA |
| Accent | 6.52:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 10.55:1 | AAA |
| Accent | 6.52:1 | AA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Portly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 27.947);
--foreground: oklch(0.149 0.029 33.351);
--muted: oklch(0.958 0.007 207.904);
--muted-foreground: oklch(0.376 0.01 207.846);
--popover: oklch(0.991 0.003 27.947);
--popover-foreground: oklch(0.149 0.029 33.351);
--card: oklch(0.991 0.003 27.947);
--card-foreground: oklch(0.149 0.029 33.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.872 0.028 28.128);
--primary-foreground: oklch(0.354 0.061 29.714);
--secondary: oklch(0.899 0.027 207.843);
--secondary-foreground: oklch(0.408 0.047 208.458);
--accent: oklch(0.899 0.027 207.843);
--accent-foreground: oklch(0.408 0.047 208.458);
--destructive: oklch(0.377 0.12 38.484);
--destructive-foreground: oklch(0.861 0.076 42.568);
--ring: oklch(0.872 0.028 28.128);
--chart-1: oklch(0.872 0.028 28.128);
--chart-2: oklch(0.899 0.027 207.843);
--chart-3: oklch(0.899 0.027 207.843);
--chart-4: oklch(0.919 0.021 207.854);
--chart-5: oklch(0.871 0.03 28.149);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.005 27.958);
--muted: oklch(0.176 0.01 207.853);
--muted-foreground: oklch(0.81 0.009 207.89);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.005 27.958);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.005 27.958);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.872 0.028 28.128);
--primary-foreground: oklch(0.354 0.061 29.714);
--secondary: oklch(0.899 0.027 207.843);
--secondary-foreground: oklch(0.408 0.047 208.458);
--accent: oklch(0.899 0.027 207.843);
--accent-foreground: oklch(0.408 0.047 208.458);
--destructive: oklch(0.608 0.203 36.704);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.872 0.028 28.128);
--chart-1: oklch(0.872 0.028 28.128);
--chart-2: oklch(0.899 0.027 207.843);
--chart-3: oklch(0.899 0.027 207.843);
--chart-4: oklch(0.919 0.021 207.854);
--chart-5: oklch(0.871 0.03 28.149);
}