Port for shadcn/ui

Port is a shadcn/ui theme built around a light orange primary color (#faf8f5) with light green accents (#f9faf5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the light orange primary (#faf8f5) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040301black
Foreground
#140f06black
#fbfaf9snow
Card
#fcfbf8snow
#080602black
Card foreground
#100c05black
#fdfdfcwhite
Popover
#fcfbf8snow
#080602black
Popover foreground
#100c05black
#fdfdfcwhite
Primary
#faf8f5whitesmoke
#faf8f5whitesmoke
Primary foreground
#3a301ddarkslategray
#3a301ddarkslategray
Secondary
#faf6f5whitesmoke
#faf6f5whitesmoke
Secondary foreground
#7d493fsienna
#7d493fsienna
Muted
#e7e4e4gainsboro
#1b1818black
Muted foreground
#68605edimgray
#a19897darkgray
Accent
#f9faf5whitesmoke
#f9faf5whitesmoke
Accent foreground
#353a1ddarkslategray
#353a1ddarkslategray
Destructive
#b41504firebrick
#fb4632tomato
Destructive foreground
#ffedeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf8f5whitesmoke
#faf8f5whitesmoke

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.79:1AAA
Primary button12.22:1AAA
Secondary button6.73:1AA
Muted text4.86:1AA
Accent11.27:1AAA
Destructive6.08:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.90:1AAA
Primary button12.22:1AAA
Secondary button6.73:1AA
Muted text6.24:1AA
Accent11.27:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 83.056);
  --foreground: oklch(0.171 0.02 83.797);
  --muted: oklch(0.922 0.003 29.48);
  --muted-foreground: oklch(0.496 0.011 29.559);
  --popover: oklch(0.987 0.004 83.059);
  --popover-foreground: oklch(0.156 0.017 85.665);
  --card: oklch(0.987 0.004 83.059);
  --card-foreground: oklch(0.156 0.017 85.665);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.98 0.005 83.059);
  --primary-foreground: oklch(0.313 0.034 82.377);
  --secondary: oklch(0.975 0.005 29.484);
  --secondary-foreground: oklch(0.464 0.075 30.825);
  --accent: oklch(0.983 0.007 113.433);
  --accent-foreground: oklch(0.335 0.046 115.939);
  --destructive: oklch(0.491 0.191 30.489);
  --destructive-foreground: oklch(0.959 0.019 25.165);
  --ring: oklch(0.98 0.005 83.059);
  --chart-1: oklch(0.98 0.005 83.059);
  --chart-2: oklch(0.975 0.005 29.484);
  --chart-3: oklch(0.983 0.007 113.433);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.98 0.005 83.06);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 88.766);
  --foreground: oklch(0.986 0.002 83.056);
  --muted: oklch(0.213 0.005 29.562);
  --muted-foreground: oklch(0.687 0.01 29.523);
  --popover: oklch(0.122 0.013 88.766);
  --popover-foreground: oklch(0.993 0.001 83.055);
  --card: oklch(0.122 0.013 88.766);
  --card-foreground: oklch(0.993 0.001 83.055);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.98 0.005 83.059);
  --primary-foreground: oklch(0.313 0.034 82.377);
  --secondary: oklch(0.975 0.005 29.484);
  --secondary-foreground: oklch(0.464 0.075 30.825);
  --accent: oklch(0.983 0.007 113.433);
  --accent-foreground: oklch(0.335 0.046 115.939);
  --destructive: oklch(0.657 0.22 30.214);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.98 0.005 83.059);
  --chart-1: oklch(0.98 0.005 83.059);
  --chart-2: oklch(0.975 0.005 29.484);
  --chart-3: oklch(0.983 0.007 113.433);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.98 0.005 83.06);
}