portfolio theme for shadcn/ui

portfolio theme is a shadcn/ui theme built around a cyan primary color (#86caea) with blue accents (#8698ea). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the cyan primary (#86caea) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfewhite
#000000black
Foreground
#010305black
#f6f8f9whitesmoke
Card
#f7fbfdghostwhite
#030303black
Card foreground
#000000black
#f9fafbghostwhite
Popover
#f7fbfdghostwhite
#030303black
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#86caeaskyblue
#86caeaskyblue
Primary foreground
#092634darkslategray
#092634darkslategray
Secondary
#86ead7aquamarine
#86ead7aquamarine
Secondary foreground
#09342cdarkslategray
#09342cdarkslategray
Muted
#d0e6e2gainsboro
#192f2bdarkslategray
Muted foreground
#424847darkslategray
#b7bdbcsilver
Accent
#8698eacornflowerblue
#8698eacornflowerblue
Accent foreground
#091134black
#091134black
Destructive
#ca0502firebrick
#f70702red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e0e4e5gainsboro
#1a1d1fblack
Input
#e0e4e5gainsboro
#1a1d1fblack
Ring
#86caeaskyblue
#86caeaskyblue

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.17:1AAA
Primary button8.69:1AAA
Secondary button9.55:1AAA
Muted text7.17:1AAA
Accent6.72:1AA
Destructive5.94:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.78:1AAA
Primary button8.69:1AAA
Secondary button9.55:1AAA
Muted text7.45:1AAA
Accent6.72:1AA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 226.892);
  --foreground: oklch(0.094 0.013 218.956);
  --muted: oklch(0.909 0.024 183.59);
  --muted-foreground: oklch(0.395 0.007 183.803);
  --popover: oklch(0.986 0.006 226.927);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.006 226.927);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.916 0.004 226.914);
  --input: oklch(0.916 0.004 226.914);
  --primary: oklch(0.805 0.082 228.879);
  --primary-foreground: oklch(0.256 0.043 232.035);
  --secondary: oklch(0.869 0.098 180.716);
  --secondary-foreground: oklch(0.294 0.048 177.804);
  --accent: oklch(0.699 0.122 273.255);
  --accent-foreground: oklch(0.196 0.07 269.338);
  --destructive: oklch(0.528 0.215 29.32);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.082 228.879);
  --chart-1: oklch(0.805 0.082 228.879);
  --chart-2: oklch(0.869 0.098 180.716);
  --chart-3: oklch(0.699 0.122 273.255);
  --chart-4: oklch(0.882 0.089 181.192);
  --chart-5: oklch(0.806 0.085 229.001);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.003 226.892);
  --muted: oklch(0.284 0.029 181.122);
  --muted-foreground: oklch(0.793 0.006 184.099);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.985 0.002 226.88);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.002 226.88);
  --border: oklch(0.228 0.006 227.209);
  --input: oklch(0.228 0.006 227.209);
  --primary: oklch(0.805 0.082 228.879);
  --primary-foreground: oklch(0.256 0.043 232.035);
  --secondary: oklch(0.869 0.098 180.716);
  --secondary-foreground: oklch(0.294 0.048 177.804);
  --accent: oklch(0.699 0.122 273.255);
  --accent-foreground: oklch(0.196 0.07 269.338);
  --destructive: oklch(0.615 0.251 29.3);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.082 228.879);
  --chart-1: oklch(0.805 0.082 228.879);
  --chart-2: oklch(0.869 0.098 180.716);
  --chart-3: oklch(0.699 0.122 273.255);
  --chart-4: oklch(0.882 0.089 181.192);
  --chart-5: oklch(0.806 0.085 229.001);
}