Portly is a shadcn/ui theme built around a vivid pink primary color (#f0339e) with vivid green accents (#33f085). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#f0339e) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #0f050bblack | #fcf8fasnow |
| Card | #fcfcfcsnow | #070305black |
| Card foreground | #0b0408black | #fdfcfdwhite |
| Popover | #ffffffwhite | #040103black |
| Popover foreground | #0f050bblack | #fcf8fasnow |
| Primary | #f0339edeeppink | #f0339edeeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #33f085springgreen | #33f085springgreen |
| Secondary foreground | #065126darkgreen | #065126darkgreen |
| Muted | #e3e8e5gainsboro | #171c19black |
| Muted foreground | #516158dimgray | #9eaea5darkgray |
| Accent | #33f085springgreen | #33f085springgreen |
| Accent foreground | #065126darkgreen | #065126darkgreen |
| Destructive | #642102maroon | #fc6722tomato |
| Destructive foreground | #fdba9bburlywood | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0339edeeppink | #f0339edeeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 3.70:1 | AA Large |
| Secondary button | 6.28:1 | AA |
| Muted text | 5.30:1 | AA |
| Accent | 6.28:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.70:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 3.70:1 | AA Large |
| Secondary button | 6.28:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 7.08:1 | AAA |
Paste this into your globals.css to use Portly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.137 0.024 343.726);
--muted: oklch(0.927 0.007 161.616);
--muted-foreground: oklch(0.477 0.024 160.508);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.137 0.024 343.726);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.021 342.026);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.647 0.238 351.673);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.841 0.207 152.357);
--secondary-foreground: oklch(0.381 0.097 151.623);
--accent: oklch(0.841 0.207 152.357);
--accent-foreground: oklch(0.381 0.097 151.623);
--destructive: oklch(0.348 0.105 41.12);
--destructive-foreground: oklch(0.844 0.089 45.887);
--ring: oklch(0.647 0.238 351.673);
--chart-1: oklch(0.647 0.238 351.673);
--chart-2: oklch(0.841 0.207 152.357);
--chart-3: oklch(0.841 0.207 152.357);
--chart-4: oklch(0.848 0.197 153.303);
--chart-5: oklch(0.65 0.243 352.041);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.012 341.825);
--foreground: oklch(0.983 0.005 341.92);
--muted: oklch(0.221 0.01 160.622);
--muted-foreground: oklch(0.735 0.022 161.062);
--popover: oklch(0.086 0.012 341.825);
--popover-foreground: oklch(0.983 0.005 341.92);
--card: oklch(0.109 0.016 341.825);
--card-foreground: oklch(0.991 0.002 341.864);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.647 0.238 351.673);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.841 0.207 152.357);
--secondary-foreground: oklch(0.381 0.097 151.623);
--accent: oklch(0.841 0.207 152.357);
--accent-foreground: oklch(0.381 0.097 151.623);
--destructive: oklch(0.693 0.197 41.476);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.647 0.238 351.673);
--chart-1: oklch(0.647 0.238 351.673);
--chart-2: oklch(0.841 0.207 152.357);
--chart-3: oklch(0.841 0.207 152.357);
--chart-4: oklch(0.848 0.197 153.303);
--chart-5: oklch(0.65 0.243 352.041);
}