Feather for shadcn/ui

Feather is a shadcn/ui theme built around a blue primary color (#355c7d) with muted light blue accents (#cbcfd7). The light mode uses a neutral background (#ffffff). Dark mode switches to a near-white primary (#ffffff) on a blue-tinted background (#06090f).

Color palette

TokenLightDark
Background
#ffffffwhite
#06090fblack
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#070b12black
Card foreground
#355c7ddarkslateblue
#ffffffwhite
Popover
#ffffffwhite
#06090fblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#355c7ddarkslateblue
#ffffffwhite
Primary foreground
#ffffffwhite
#355c7ddarkslateblue
Secondary
#e6e8ealavender
#151619black
Secondary foreground
#4a4d55darkslategray
#aaaeb5darkgray
Muted
#e3e8f3lavender
#0c121cblack
Muted foreground
#3c424edarkslategray
#b1b7c3silver
Accent
#cbcfd7lightgrey
#23272edarkslategray
Accent foreground
#31363fdarkslategray
#babfcasilver
Destructive
#a52a2abrown
#a52a2abrown
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ededeewhitesmoke
#202122black
Input
#ededeewhitesmoke
#202122black
Ring
#355c7ddarkslateblue
#355c7ddarkslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card6.89:1AA
Primary button7.05:1AAA
Secondary button6.86:1AA
Muted text8.20:1AAA
Accent7.78:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.46:1AAA
Text on card19.70:1AAA
Primary button7.05:1AAA
Secondary button8.10:1AAA
Muted text9.32:1AAA
Accent8.11:1AAA
Destructive7.08:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.015 264.492);
  --muted-foreground: oklch(0.378 0.022 264.268);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.461 0.07 245.64);
  --border: oklch(0.946 0.001 264.549);
  --input: oklch(0.946 0.001 264.549);
  --primary: oklch(0.461 0.07 245.64);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.929 0.003 264.541);
  --secondary-foreground: oklch(0.42 0.013 264.424);
  --accent: oklch(0.854 0.012 264.504);
  --accent-foreground: oklch(0.331 0.018 264.282);
  --destructive: oklch(0.481 0.16 25.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.461 0.07 245.64);
  --chart-1: oklch(0.461 0.07 245.64);
  --chart-2: oklch(0.929 0.003 264.541);
  --chart-3: oklch(0.854 0.012 264.504);
  --chart-4: oklch(0.953 0.002 264.544);
  --chart-5: oklch(0.461 0.075 245.9);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.014 260.449);
  --foreground: oklch(0.992 0.001 264.549);
  --muted: oklch(0.181 0.024 263.719);
  --muted-foreground: oklch(0.779 0.018 264.463);
  --popover: oklch(0.138 0.014 260.449);
  --popover-foreground: oklch(0.992 0.001 264.549);
  --card: oklch(0.149 0.017 262.622);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.247 0.002 264.528);
  --input: oklch(0.247 0.002 264.528);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.461 0.07 245.64);
  --secondary: oklch(0.202 0.005 264.466);
  --secondary-foreground: oklch(0.75 0.011 264.499);
  --accent: oklch(0.272 0.014 264.308);
  --accent-foreground: oklch(0.804 0.016 264.478);
  --destructive: oklch(0.481 0.16 25.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.461 0.07 245.64);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.202 0.005 264.466);
  --chart-3: oklch(0.272 0.014 264.308);
  --chart-4: oklch(0.234 0.006 264.454);
  --chart-5: oklch(1 0 180);
}