Powerless for shadcn/ui

Powerless is a shadcn/ui theme built around a muted light blue primary color (#f1f2f3) with muted light violet accents (#f2f1f3). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted light blue primary (#f1f2f3) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#010204black
Foreground
#000000black
#ffffffwhite
Card
#f7f8fdghostwhite
#010204black
Card foreground
#000000black
#ffffffwhite
Popover
#f7f8fdghostwhite
#010204black
Popover foreground
#000000black
#ffffffwhite
Primary
#f1f2f3whitesmoke
#f1f2f3whitesmoke
Primary foreground
#515561dimgray
#515561dimgray
Secondary
#f1f3f3whitesmoke
#f1f3f3whitesmoke
Secondary foreground
#515d61dimgray
#515d61dimgray
Muted
#e9ebedlavender
#121516black
Muted foreground
#4f5354darkslategray
#abaeb0darkgray
Accent
#f2f1f3whitesmoke
#f2f1f3whitesmoke
Accent foreground
#565161dimgray
#565161dimgray
Destructive
#6c2104maroon
#f76226tomato
Destructive foreground
#fcbfa6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1f2f3whitesmoke
#f1f2f3whitesmoke

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.62:1AA
Secondary button6.09:1AA
Muted text6.52:1AA
Accent6.79:1AA
Destructive7.04:1AAA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.62:1AA
Secondary button6.09:1AA
Muted text8.20:1AAA
Accent6.79:1AA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 273.796);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.004 223.167);
  --muted-foreground: oklch(0.438 0.005 223.25);
  --popover: oklch(0.98 0.006 273.796);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.006 273.796);
  --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.96 0.002 273.836);
  --primary-foreground: oklch(0.45 0.021 273.283);
  --secondary: oklch(0.962 0.002 223.151);
  --secondary-foreground: oklch(0.469 0.016 223.536);
  --accent: oklch(0.96 0.003 299.248);
  --accent-foreground: oklch(0.446 0.027 298.276);
  --destructive: oklch(0.363 0.113 38.821);
  --destructive-foreground: oklch(0.853 0.078 42.552);
  --ring: oklch(0.96 0.002 273.836);
  --chart-1: oklch(0.96 0.002 273.836);
  --chart-2: oklch(0.962 0.002 223.151);
  --chart-3: oklch(0.96 0.003 299.248);
  --chart-4: oklch(0.985 0.001 223.138);
  --chart-5: oklch(0.959 0.003 273.827);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.011 267.864);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.194 0.005 223.427);
  --muted-foreground: oklch(0.75 0.004 223.19);
  --popover: oklch(0.083 0.011 267.864);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.083 0.011 267.864);
  --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.96 0.002 273.836);
  --primary-foreground: oklch(0.45 0.021 273.283);
  --secondary: oklch(0.962 0.002 223.151);
  --secondary-foreground: oklch(0.469 0.016 223.536);
  --accent: oklch(0.96 0.003 299.248);
  --accent-foreground: oklch(0.446 0.027 298.276);
  --destructive: oklch(0.68 0.196 39.585);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.96 0.002 273.836);
  --chart-1: oklch(0.96 0.002 273.836);
  --chart-2: oklch(0.962 0.002 223.151);
  --chart-3: oklch(0.96 0.003 299.248);
  --chart-4: oklch(0.985 0.001 223.138);
  --chart-5: oklch(0.959 0.003 273.827);
}