Pill for shadcn/ui

Pill is a shadcn/ui theme built around a muted light teal primary color (#f6f8f7) with muted light teal accents (#caded5). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted light teal primary (#f6f8f7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefdwhite
#000000black
Foreground
#010403black
#ffffffwhite
Card
#f7fdfamintcream
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefdwhite
#000000black
Popover foreground
#010403black
#ffffffwhite
Primary
#f6f8f7whitesmoke
#f6f8f7whitesmoke
Primary foreground
#26312cdarkslategray
#26312cdarkslategray
Secondary
#e4ece8lavender
#131b17black
Secondary foreground
#17211dblack
#a3bdb1darkgray
Muted
#e8edeblavender
#121715black
Muted foreground
#515d57dimgray
#a2aea9darkgray
Accent
#caded5lightgrey
#21362cdarkslategray
Accent foreground
#2d483cdarkslategray
#b6d2c6silver
Destructive
#b93209firebrick
#ef400borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6f8f7whitesmoke
#f6f8f7whitesmoke

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.38:1AAA
Primary button12.67:1AAA
Secondary button13.74:1AAA
Muted text5.80:1AA
Accent7.06:1AAA
Destructive5.96:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button12.67:1AAA
Secondary button8.76:1AAA
Muted text7.92:1AAA
Accent8.01:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 167.708);
  --foreground: oklch(0.1 0.015 168.083);
  --muted: oklch(0.942 0.005 167.651);
  --muted-foreground: oklch(0.465 0.017 166.736);
  --popover: oklch(0.994 0.004 167.708);
  --popover-foreground: oklch(0.1 0.015 168.083);
  --card: oklch(0.989 0.008 167.602);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.978 0.002 167.749);
  --primary-foreground: oklch(0.3 0.017 166.193);
  --secondary: oklch(0.936 0.01 167.512);
  --secondary-foreground: oklch(0.237 0.017 165.669);
  --accent: oklch(0.882 0.025 167.023);
  --accent-foreground: oklch(0.376 0.039 164.5);
  --destructive: oklch(0.522 0.178 35.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.978 0.002 167.749);
  --chart-1: oklch(0.978 0.002 167.749);
  --chart-2: oklch(0.936 0.01 167.512);
  --chart-3: oklch(0.882 0.025 167.023);
  --chart-4: oklch(0.958 0.007 167.618);
  --chart-5: oklch(0.979 0.003 167.734);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.197 0.008 166.648);
  --muted-foreground: oklch(0.741 0.016 167.218);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.978 0.002 167.749);
  --primary-foreground: oklch(0.3 0.017 166.193);
  --secondary: oklch(0.212 0.013 166.038);
  --secondary-foreground: oklch(0.775 0.032 166.623);
  --accent: oklch(0.311 0.032 164.576);
  --accent-foreground: oklch(0.841 0.035 166.617);
  --destructive: oklch(0.629 0.217 34.762);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.978 0.002 167.749);
  --chart-1: oklch(0.978 0.002 167.749);
  --chart-2: oklch(0.212 0.013 166.038);
  --chart-3: oklch(0.311 0.032 164.576);
  --chart-4: oklch(0.247 0.016 165.853);
  --chart-5: oklch(0.979 0.003 167.734);
}