Portofino Guan for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.52:1AAA
Text on card19.54:1AAA
Primary button6.24:1AA
Secondary button6.23:1AA
Muted text6.83:1AA
Accent6.94:1AA
Destructive5.72:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.20:1AAA
Primary button6.24:1AA
Secondary button6.23:1AA
Muted text7.58:1AAA
Accent6.94:1AA
Destructive3.55:1AA Large

CSS variables

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);
}