Content for shadcn/ui

Content is a shadcn/ui theme built around a near-white primary color (#fcf8f9) with near-white accents (#fcf9f8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcf8f9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fcf8f9snow
#fcf8f9snow
Primary foreground
#883a50sienna
#883a50sienna
Secondary
#fcf8fbsnow
#fcf8fbsnow
Secondary foreground
#883a77rebeccapurple
#883a77rebeccapurple
Muted
#e8e3e7gainsboro
#1c171bblack
Muted foreground
#4f404cdarkslategray
#bfb0bcsilver
Accent
#fcf9f8snow
#fcf9f8snow
Accent foreground
#884b3asienna
#884b3asienna
Destructive
#842c06saddlebrown
#f45f1fchocolate
Destructive foreground
#fcd2c0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcf8f9snow
#fcf8f9snow

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.19:1AAA
Secondary button6.83:1AA
Muted text7.62:1AAA
Accent6.42:1AA
Destructive6.48:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.19:1AAA
Secondary button6.83:1AA
Muted text8.55:1AAA
Accent6.42:1AA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.921 0.008 332.758);
  --muted-foreground: oklch(0.391 0.029 333.732);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.982 0.005 357.849);
  --primary-foreground: oklch(0.459 0.108 4.559);
  --secondary: oklch(0.983 0.006 332.712);
  --secondary-foreground: oklch(0.474 0.131 336.571);
  --accent: oklch(0.984 0.004 35.999);
  --accent-foreground: oklch(0.481 0.087 36.332);
  --destructive: oklch(0.419 0.128 39.402);
  --destructive-foreground: oklch(0.895 0.054 44.475);
  --ring: oklch(0.982 0.005 357.849);
  --chart-1: oklch(0.982 0.005 357.849);
  --chart-2: oklch(0.983 0.006 332.712);
  --chart-3: oklch(0.984 0.004 35.999);
  --chart-4: oklch(1.009 0.003 152.57);
  --chart-5: oklch(0.982 0.005 357.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 357.747);
  --muted: oklch(0.212 0.012 333.481);
  --muted-foreground: oklch(0.773 0.025 333.103);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 357.747);
  --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.982 0.005 357.849);
  --primary-foreground: oklch(0.459 0.108 4.559);
  --secondary: oklch(0.983 0.006 332.712);
  --secondary-foreground: oklch(0.474 0.131 336.571);
  --accent: oklch(0.984 0.004 35.999);
  --accent-foreground: oklch(0.481 0.087 36.332);
  --destructive: oklch(0.672 0.196 40.159);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.982 0.005 357.849);
  --chart-1: oklch(0.982 0.005 357.849);
  --chart-2: oklch(0.983 0.006 332.712);
  --chart-3: oklch(0.984 0.004 35.999);
  --chart-4: oklch(1.009 0.003 152.57);
  --chart-5: oklch(0.982 0.005 357.859);
}