Paltry for shadcn/ui

Paltry is a shadcn/ui theme built around a near-white primary color (#fafbfe) with near-white accents (#fefefa). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the near-white primary (#fafbfe) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#020203black
Foreground
#000000black
#f5f6f9whitesmoke
Card
#f7f8fdghostwhite
#030407black
Card foreground
#000000black
#f8f9fbghostwhite
Popover
#f7f8fdghostwhite
#030407black
Popover foreground
#000000black
#f8f9fbghostwhite
Primary
#fafbfeghostwhite
#fafbfeghostwhite
Primary foreground
#162db1mediumblue
#162db1mediumblue
Secondary
#fefefasnow
#fefefasnow
Secondary foreground
#564b0bdarkolivegreen
#564b0bdarkolivegreen
Muted
#eae8dcantiquewhite
#232115black
Muted foreground
#68675edimgray
#a19f97darkgray
Accent
#fefefasnow
#fefefasnow
Accent foreground
#564b0bdarkolivegreen
#564b0bdarkolivegreen
Destructive
#d91b02red
#fd4830tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fafbfeghostwhite
#fafbfeghostwhite

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card19.78:1AAA
Primary button9.94:1AAA
Secondary button8.63:1AAA
Muted text4.62:1AA
Accent8.63:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.47:1AAA
Primary button9.94:1AAA
Secondary button8.63:1AAA
Muted text6.08:1AA
Accent8.63:1AAA
Destructive3.42: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.003 278.27);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.017 98.565);
  --muted-foreground: oklch(0.512 0.013 98.666);
  --popover: oklch(0.979 0.007 278.22);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.007 278.22);
  --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.989 0.005 278.252);
  --primary-foreground: oklch(0.391 0.206 266.548);
  --secondary: oklch(0.996 0.004 98.381);
  --secondary-foreground: oklch(0.412 0.08 98.385);
  --accent: oklch(0.996 0.004 98.381);
  --accent-foreground: oklch(0.412 0.08 98.385);
  --destructive: oklch(0.564 0.221 30.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.005 278.252);
  --chart-1: oklch(0.989 0.005 278.252);
  --chart-2: oklch(0.996 0.004 98.381);
  --chart-3: oklch(0.996 0.004 98.381);
  --chart-4: oklch(1.008 0.009 278.188);
  --chart-5: oklch(0.989 0.005 278.249);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.009 274.562);
  --foreground: oklch(0.973 0.005 278.245);
  --muted: oklch(0.247 0.022 99.332);
  --muted-foreground: oklch(0.701 0.012 98.558);
  --popover: oklch(0.106 0.011 274.562);
  --popover-foreground: oklch(0.982 0.003 278.27);
  --card: oklch(0.106 0.011 274.562);
  --card-foreground: oklch(0.982 0.003 278.27);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.005 278.252);
  --primary-foreground: oklch(0.391 0.206 266.548);
  --secondary: oklch(0.996 0.004 98.381);
  --secondary-foreground: oklch(0.412 0.08 98.385);
  --accent: oklch(0.996 0.004 98.381);
  --accent-foreground: oklch(0.412 0.08 98.385);
  --destructive: oklch(0.661 0.221 30.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.005 278.252);
  --chart-1: oklch(0.989 0.005 278.252);
  --chart-2: oklch(0.996 0.004 98.381);
  --chart-3: oklch(0.996 0.004 98.381);
  --chart-4: oklch(1.008 0.009 278.188);
  --chart-5: oklch(0.989 0.005 278.249);
}