Paltry for shadcn/ui

Paltry is a shadcn/ui theme built around a near-white primary color (#fcfcfd) with near-white accents (#fdfcfd). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-white primary (#fcfcfd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#0b0510black
#faf8fcghostwhite
Card
#faf7fdghostwhite
#030303black
Card foreground
#08030cblack
#fdfcfdwhite
Popover
#faf7fdghostwhite
#030303black
Popover foreground
#08030cblack
#fdfcfdwhite
Primary
#fcfcfdwhite
#fcfcfdwhite
Primary foreground
#312f32darkslategray
#312f32darkslategray
Secondary
#fcfcfdwhite
#fcfcfdwhite
Secondary foreground
#616066dimgray
#616066dimgray
Muted
#ececf3lavender
#0c0c13black
Muted foreground
#52516cdimgray
#9493aedarkgray
Accent
#fdfcfdwhite
#fdfcfdwhite
Accent foreground
#322f32darkslategray
#322f32darkslategray
Destructive
#df1401red
#fe200bred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfcfdwhite
#fcfcfdwhite

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.26:1AAA
Primary button12.97:1AAA
Secondary button6.08:1AA
Muted text6.50:1AA
Accent12.93:1AAA
Destructive4.94:1AA
Dark mode
Text on background19.89:1AAA
Text on card20.20:1AAA
Primary button12.97:1AAA
Secondary button6.08:1AA
Muted text6.54:1AA
Accent12.93:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 309.747);
  --foreground: oklch(0.13 0.029 309.641);
  --muted: oklch(0.946 0.009 287.755);
  --muted-foreground: oklch(0.447 0.043 286.046);
  --popover: oklch(0.981 0.008 309.708);
  --popover-foreground: oklch(0.118 0.025 311.195);
  --card: oklch(0.981 0.008 309.708);
  --card-foreground: oklch(0.118 0.025 311.195);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.992 0 309.783);
  --primary-foreground: oklch(0.308 0.006 309.606);
  --secondary: oklch(0.992 0 287.936);
  --secondary-foreground: oklch(0.493 0.009 287.583);
  --accent: oklch(0.992 0 326.543);
  --accent-foreground: oklch(0.309 0.006 326.719);
  --destructive: oklch(0.573 0.229 30.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0 309.783);
  --chart-1: oklch(0.992 0 309.783);
  --chart-2: oklch(0.992 0 287.936);
  --chart-3: oklch(0.992 0 326.543);
  --chart-4: oklch(1.015 0 107.947);
  --chart-5: oklch(0.992 0 309.781);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 309.732);
  --muted: oklch(0.157 0.015 286.081);
  --muted-foreground: oklch(0.674 0.039 286.84);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.003 309.759);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.003 309.759);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.992 0 309.783);
  --primary-foreground: oklch(0.308 0.006 309.606);
  --secondary: oklch(0.992 0 287.936);
  --secondary-foreground: oklch(0.493 0.009 287.583);
  --accent: oklch(0.992 0 326.543);
  --accent-foreground: oklch(0.309 0.006 326.719);
  --destructive: oklch(0.634 0.249 30.043);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0 309.783);
  --chart-1: oklch(0.992 0 309.783);
  --chart-2: oklch(0.992 0 287.936);
  --chart-3: oklch(0.992 0 326.543);
  --chart-4: oklch(1.015 0 107.947);
  --chart-5: oklch(0.992 0 309.781);
}