Poet for shadcn/ui

Poet is a shadcn/ui theme built around a near-black primary color (#05020d) with near-black accents (#0b0d02). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the near-black primary (#05020d) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040208black
Foreground
#05040cblack
#fcfbfdsnow
Card
#fcfbfewhite
#040208black
Card foreground
#05040cblack
#fcfbfdsnow
Popover
#fcfbfewhite
#040208black
Popover foreground
#05040cblack
#fcfbfdsnow
Primary
#05020dblack
#05020dblack
Primary foreground
#c3b6f1lightsteelblue
#c3b6f1lightsteelblue
Secondary
#0b0d02black
#0b0d02black
Secondary foreground
#98b823yellowgreen
#98b823yellowgreen
Muted
#f0f3e7linen
#15180cblack
Muted foreground
#4e4f4adarkslategray
#b4b5b0darkgray
Accent
#0b0d02black
#0b0d02black
Accent foreground
#98b823yellowgreen
#98b823yellowgreen
Destructive
#771708maroon
#f0472dtomato
Destructive foreground
#fac0b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#05020dblack
#05020dblack

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button11.03:1AAA
Secondary button8.59:1AAA
Muted text7.36:1AAA
Accent8.59:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button11.03:1AAA
Secondary button8.59:1AAA
Muted text8.72:1AAA
Accent8.59:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 296.25);
  --foreground: oklch(0.113 0.023 295.485);
  --muted: oklch(0.959 0.016 116.63);
  --muted-foreground: oklch(0.424 0.008 116.653);
  --popover: oklch(0.989 0.004 296.25);
  --popover-foreground: oklch(0.113 0.023 295.485);
  --card: oklch(0.989 0.004 296.25);
  --card-foreground: oklch(0.113 0.023 295.485);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.107 0.031 294.961);
  --primary-foreground: oklch(0.808 0.083 294.398);
  --secondary: oklch(0.152 0.026 117.443);
  --secondary-foreground: oklch(0.734 0.168 121.912);
  --accent: oklch(0.152 0.026 117.443);
  --accent-foreground: oklch(0.734 0.168 121.912);
  --destructive: oklch(0.373 0.133 31.628);
  --destructive-foreground: oklch(0.858 0.068 28.546);
  --ring: oklch(0.107 0.031 294.961);
  --chart-1: oklch(0.107 0.031 294.961);
  --chart-2: oklch(0.152 0.026 117.443);
  --chart-3: oklch(0.152 0.026 117.443);
  --chart-4: oklch(0.206 0.038 119.66);
  --chart-5: oklch(0.105 0.032 294.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.019 295.632);
  --foreground: oklch(0.99 0.003 296.28);
  --muted: oklch(0.201 0.022 118.411);
  --muted-foreground: oklch(0.77 0.007 116.484);
  --popover: oklch(0.099 0.019 295.632);
  --popover-foreground: oklch(0.99 0.003 296.28);
  --card: oklch(0.099 0.019 295.632);
  --card-foreground: oklch(0.99 0.003 296.28);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.107 0.031 294.961);
  --primary-foreground: oklch(0.808 0.083 294.398);
  --secondary: oklch(0.152 0.026 117.443);
  --secondary-foreground: oklch(0.734 0.168 121.912);
  --accent: oklch(0.152 0.026 117.443);
  --accent-foreground: oklch(0.734 0.168 121.912);
  --destructive: oklch(0.64 0.21 31.635);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.107 0.031 294.961);
  --chart-1: oklch(0.107 0.031 294.961);
  --chart-2: oklch(0.152 0.026 117.443);
  --chart-3: oklch(0.152 0.026 117.443);
  --chart-4: oklch(0.206 0.038 119.66);
  --chart-5: oklch(0.105 0.032 294.835);
}