Paltry for shadcn/ui

Paltry is a shadcn/ui theme built around a near-black primary color (#040201) with near-black accents (#010304). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the near-black primary (#040201) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fdf9f7snow
#040201black
Foreground
#080402black
#ffffffwhite
Card
#fdf9f7snow
#040201black
Card foreground
#080402black
#ffffffwhite
Popover
#fdf9f7snow
#040201black
Popover foreground
#080402black
#ffffffwhite
Primary
#040201black
#040201black
Primary foreground
#d58462peru
#d58462peru
Secondary
#010304black
#010304black
Secondary foreground
#62b3d5cornflowerblue
#62b3d5cornflowerblue
Muted
#ccdee5gainsboro
#1a2b33darkslategray
Muted foreground
#434647darkslategray
#b8bbbcsilver
Accent
#010304black
#010304black
Accent foreground
#62b3d5cornflowerblue
#62b3d5cornflowerblue
Destructive
#aa4409saddlebrown
#df590cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040201black
#040201black

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.20:1AAA
Secondary button8.78:1AAA
Muted text6.86:1AA
Accent8.78:1AAA
Destructive5.95:1AA
Dark mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button7.20:1AAA
Secondary button8.78:1AAA
Muted text7.54:1AAA
Accent8.78:1AAA
Destructive3.76: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.984 0.006 44.924);
  --foreground: oklch(0.113 0.013 53.122);
  --muted: oklch(0.889 0.022 225.279);
  --muted-foreground: oklch(0.391 0.004 225.111);
  --popover: oklch(0.984 0.006 44.924);
  --popover-foreground: oklch(0.113 0.013 53.122);
  --card: oklch(0.984 0.006 44.924);
  --card-foreground: oklch(0.113 0.013 53.122);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.09 0.011 53.299);
  --primary-foreground: oklch(0.692 0.111 43.731);
  --secondary: oklch(0.094 0.01 219.227);
  --secondary-foreground: oklch(0.727 0.094 227.991);
  --accent: oklch(0.094 0.01 219.227);
  --accent-foreground: oklch(0.727 0.094 227.991);
  --destructive: oklch(0.517 0.147 43.597);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.09 0.011 53.299);
  --chart-1: oklch(0.09 0.011 53.299);
  --chart-2: oklch(0.094 0.01 219.227);
  --chart-3: oklch(0.094 0.01 219.227);
  --chart-4: oklch(0.149 0.016 223.481);
  --chart-5: oklch(0.09 0.011 53.839);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.009 51.924);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.278 0.027 226.814);
  --muted-foreground: oklch(0.79 0.004 225.034);
  --popover: oklch(0.09 0.009 51.924);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.09 0.009 51.924);
  --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.09 0.011 53.299);
  --primary-foreground: oklch(0.692 0.111 43.731);
  --secondary: oklch(0.094 0.01 219.227);
  --secondary-foreground: oklch(0.727 0.094 227.991);
  --accent: oklch(0.094 0.01 219.227);
  --accent-foreground: oklch(0.727 0.094 227.991);
  --destructive: oklch(0.63 0.183 43.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.09 0.011 53.299);
  --chart-1: oklch(0.09 0.011 53.299);
  --chart-2: oklch(0.094 0.01 219.227);
  --chart-3: oklch(0.094 0.01 219.227);
  --chart-4: oklch(0.149 0.016 223.481);
  --chart-5: oklch(0.09 0.011 53.839);
}