Portofino Guan is a shadcn/ui theme built around a vivid light yellow primary color (#f6f2a2) with vivid light purple accents (#f2a2f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#f6f2a2) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #0d0d02black | #ffffffwhite |
| Card | #fcfcfcsnow | #070703black |
| Card foreground | #090901black | #ffffffwhite |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #0d0d02black | #ffffffwhite |
| Primary | #f6f2a2palegoldenrod | #f6f2a2palegoldenrod |
| Primary foreground | #5d5909darkolivegreen | #5d5909darkolivegreen |
| Secondary | #a2f6f2paleturquoise | #a2f6f2paleturquoise |
| Secondary foreground | #095d59darkslategray | #095d59darkslategray |
| Muted | #d1eae9gainsboro | #152e2cdarkslategray |
| Muted foreground | #404f4edarkslategray | #b0bfbesilver |
| Accent | #f2a2f6plum | #f2a2f6plum |
| Accent foreground | #59095dindigo | #59095dindigo |
| Destructive | #c12e06firebrick | #f84716orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f4f4f0whitesmoke | #202018black |
| Input | #f4f4f0whitesmoke | #202018black |
| Ring | #f6f2a2palegoldenrod | #f6f2a2palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.83:1 | AA |
| Accent | 6.94:1 | AA |
| Destructive | 5.72:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.58:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Portofino Guan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.155 0.027 107.048);
--muted: oklch(0.92 0.027 193.037);
--muted-foreground: oklch(0.413 0.018 192.743);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.155 0.027 107.048);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.023 107.332);
--border: oklch(0.966 0.005 104.057);
--input: oklch(0.966 0.005 104.057);
--primary: oklch(0.945 0.1 105.582);
--primary-foreground: oklch(0.452 0.093 106.244);
--secondary: oklch(0.918 0.081 191.828);
--secondary-foreground: oklch(0.432 0.072 189.343);
--accent: oklch(0.818 0.142 325.05);
--accent-foreground: oklch(0.333 0.145 325.839);
--destructive: oklch(0.532 0.188 34.021);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.945 0.1 105.582);
--chart-1: oklch(0.945 0.1 105.582);
--chart-2: oklch(0.918 0.081 191.828);
--chart-3: oklch(0.818 0.142 325.05);
--chart-4: oklch(0.929 0.07 192.097);
--chart-5: oklch(0.949 0.103 105.621);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.008 105.753);
--foreground: oklch(1 0 180);
--muted: oklch(0.28 0.031 191.296);
--muted-foreground: oklch(0.793 0.016 193.214);
--popover: oklch(0.099 0.008 105.753);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.011 105.753);
--card-foreground: oklch(1 0 180);
--border: oklch(0.24 0.015 104.955);
--input: oklch(0.24 0.015 104.955);
--primary: oklch(0.945 0.1 105.582);
--primary-foreground: oklch(0.452 0.093 106.244);
--secondary: oklch(0.918 0.081 191.828);
--secondary-foreground: oklch(0.432 0.072 189.343);
--accent: oklch(0.818 0.142 325.05);
--accent-foreground: oklch(0.333 0.145 325.839);
--destructive: oklch(0.651 0.22 34.737);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.945 0.1 105.582);
--chart-1: oklch(0.945 0.1 105.582);
--chart-2: oklch(0.918 0.081 191.828);
--chart-3: oklch(0.818 0.142 325.05);
--chart-4: oklch(0.929 0.07 192.097);
--chart-5: oklch(0.949 0.103 105.621);
}