Prose for shadcn/ui

Prose is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#ded4d4). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fdf7f7snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f7snow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e9e7e7linen
#2c2121black
Secondary foreground
#534b4bdarkslategray
#c8b6b6silver
Muted
#e7dadagainsboro
#251818black
Muted foreground
#6e5959dimgray
#a69191rosybrown
Accent
#ded4d4lightgrey
#482e2edarkslategray
Accent foreground
#483737darkslategray
#ddcacalightgrey
Destructive
#9b3708saddlebrown
#f35c16orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

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 button7.37:1AAA
Secondary button6.88:1AA
Muted text4.76:1AA
Accent7.69:1AAA
Destructive7.14:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.37:1AAA
Secondary button8.05:1AAA
Muted text5.78:1AA
Accent7.87:1AAA
Destructive6.35:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.216);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.899 0.014 17.42);
  --muted-foreground: oklch(0.484 0.029 18.197);
  --popover: oklch(0.98 0.007 17.276);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 17.276);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.929 0.002 17.202);
  --secondary-foreground: oklch(0.421 0.011 17.581);
  --accent: oklch(0.877 0.011 17.366);
  --accent-foreground: oklch(0.357 0.024 18.323);
  --destructive: oklch(0.475 0.143 40.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.929 0.002 17.202);
  --chart-3: oklch(0.877 0.011 17.366);
  --chart-4: oklch(0.953 0.002 17.187);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 17.174);
  --muted: oklch(0.226 0.021 18.817);
  --muted-foreground: oklch(0.675 0.026 17.822);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.26 0.017 18.271);
  --secondary-foreground: oklch(0.792 0.02 17.592);
  --accent: oklch(0.331 0.038 19.299);
  --accent-foreground: oklch(0.855 0.021 17.579);
  --destructive: oklch(0.665 0.198 40.486);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.26 0.017 18.271);
  --chart-3: oklch(0.331 0.038 19.299);
  --chart-4: oklch(0.29 0.019 18.332);
  --chart-5: oklch(0 0 0);
}