Newspaper for shadcn/ui

Newspaper is a shadcn/ui theme built around a muted purple primary color (#a180a8) with muted pink accents (#a8809b). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted purple primary (#a180a8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#080109black
#fdfcfdwhite
Card
#fcf7fdghostwhite
#030303black
Card foreground
#040104black
#ffffffwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#080109black
#fdfcfdwhite
Primary
#a180a8rosybrown
#a180a8rosybrown
Primary foreground
#000000black
#000000black
Secondary
#8d80a8lightslategray
#8d80a8lightslategray
Secondary foreground
#000000black
#000000black
Muted
#dddce0gainsboro
#201f23black
Muted foreground
#55515cdimgray
#a7a3aedarkgray
Accent
#a8809brosybrown
#a8809brosybrown
Accent foreground
#000000black
#000000black
Destructive
#a23510saddlebrown
#e95625chocolate
Destructive foreground
#fdede8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a180a8rosybrown
#a180a8rosybrown

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.62:1AAA
Primary button6.15:1AA
Secondary button5.76:1AA
Muted text5.64:1AA
Accent6.20:1AA
Destructive6.03:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button6.15:1AA
Secondary button5.76:1AA
Muted text6.62:1AA
Accent6.20:1AA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 320.539);
  --foreground: oklch(0.103 0.033 323.02);
  --muted: oklch(0.896 0.006 301.376);
  --muted-foreground: oklch(0.444 0.017 300.864);
  --popover: oklch(0.991 0.005 320.539);
  --popover-foreground: oklch(0.103 0.033 323.02);
  --card: oklch(0.981 0.009 320.546);
  --card-foreground: oklch(0.082 0.026 323.02);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.644 0.071 320.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.625 0.062 299.871);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.646 0.062 339.108);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.485 0.152 36.977);
  --destructive-foreground: oklch(0.957 0.018 39.396);
  --ring: oklch(0.644 0.071 320.687);
  --chart-1: oklch(0.644 0.071 320.687);
  --chart-2: oklch(0.625 0.062 299.871);
  --chart-3: oklch(0.646 0.062 339.108);
  --chart-4: oklch(0.653 0.057 300.071);
  --chart-5: oklch(0.642 0.082 320.707);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 320.535);
  --muted: oklch(0.242 0.009 300.895);
  --muted-foreground: oklch(0.722 0.015 301.151);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 320.535);
  --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.644 0.071 320.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.625 0.062 299.871);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.646 0.062 339.108);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.644 0.192 37.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.644 0.071 320.687);
  --chart-1: oklch(0.644 0.071 320.687);
  --chart-2: oklch(0.625 0.062 299.871);
  --chart-3: oklch(0.646 0.062 339.108);
  --chart-4: oklch(0.653 0.057 300.071);
  --chart-5: oklch(0.642 0.082 320.707);
}