web portfolio for shadcn/ui

web portfolio is a shadcn/ui theme built around a vivid teal primary color (#15c16e) with muted light teal accents (#c4d9cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#15c16e) on a teal-tinted background (#050a08).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a08black
Foreground
#03110ablack
#ffffffwhite
Card
#fcfcfcsnow
#070e0ablack
Card foreground
#030d08black
#ffffffwhite
Popover
#fcfcfcsnow
#070e0ablack
Popover foreground
#030d08black
#ffffffwhite
Primary
#15c16emediumseagreen
#15c16emediumseagreen
Primary foreground
#010905black
#010905black
Secondary
#dce5e1gainsboro
#131614black
Secondary foreground
#3d5148darkslategray
#a7b4aedarkgray
Muted
#d6e6degainsboro
#192921black
Muted foreground
#455e52darkslategray
#a1baaedarkgray
Accent
#c4d9cflightgrey
#1f2824darkslategray
Accent foreground
#2a4136darkslategray
#b4c5bdsilver
Destructive
#8f1e05darkred
#ec3209orangered
Destructive foreground
#fdd2c9peachpuff
#ffffffwhite
Border
#e5ebe8lavender
#1d2521black
Input
#e5ebe8lavender
#1d2521black
Ring
#15c16emediumseagreen
#15c16emediumseagreen

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button8.50:1AAA
Secondary button6.60:1AA
Muted text5.44:1AA
Accent7.43:1AAA
Destructive6.47:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.54:1AAA
Primary button8.50:1AAA
Secondary button8.48:1AAA
Muted text7.33:1AAA
Accent8.37:1AAA
Destructive4.16:1AA Large

CSS variables

Paste this into your globals.css to use web portfolio in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.026 163.508);
  --muted: oklch(0.91 0.02 165.422);
  --muted-foreground: oklch(0.458 0.035 163.757);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.144 0.022 165.626);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.144 0.022 165.626);
  --border: oklch(0.935 0.007 165.82);
  --input: oklch(0.935 0.007 165.82);
  --primary: oklch(0.713 0.175 154.255);
  --primary-foreground: oklch(0.127 0.022 166.257);
  --secondary: oklch(0.913 0.011 165.701);
  --secondary-foreground: oklch(0.416 0.03 163.951);
  --accent: oklch(0.867 0.027 165.165);
  --accent-foreground: oklch(0.353 0.036 162.939);
  --destructive: oklch(0.425 0.151 33.206);
  --destructive-foreground: oklch(0.899 0.05 32.783);
  --ring: oklch(0.713 0.175 154.255);
  --chart-1: oklch(0.713 0.175 154.255);
  --chart-2: oklch(0.913 0.011 165.701);
  --chart-3: oklch(0.867 0.027 165.165);
  --chart-4: oklch(0.935 0.008 165.787);
  --chart-5: oklch(0.721 0.179 153.888);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.012 166.13);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.026 163.039);
  --muted-foreground: oklch(0.766 0.032 164.865);
  --popover: oklch(0.153 0.014 164.657);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.014 164.657);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.256 0.013 164.529);
  --input: oklch(0.256 0.013 164.529);
  --primary: oklch(0.713 0.175 154.255);
  --primary-foreground: oklch(0.127 0.022 166.257);
  --secondary: oklch(0.196 0.006 165.181);
  --secondary-foreground: oklch(0.758 0.017 165.403);
  --accent: oklch(0.268 0.015 164.37);
  --accent-foreground: oklch(0.809 0.022 165.267);
  --destructive: oklch(0.613 0.225 32.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.713 0.175 154.255);
  --chart-1: oklch(0.713 0.175 154.255);
  --chart-2: oklch(0.196 0.006 165.181);
  --chart-3: oklch(0.268 0.015 164.37);
  --chart-4: oklch(0.231 0.008 165.076);
  --chart-5: oklch(0.721 0.179 153.888);
}