Sermon for shadcn/ui

Sermon is a shadcn/ui theme built around a near-black primary color (#050102) with near-black accents (#010205). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the near-black primary (#050102) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f9snow
#000000black
Foreground
#120307black
#faf5f6whitesmoke
Card
#fbf4f6lavenderblush
#030303black
Card foreground
#0d0205black
#fbf8f9snow
Popover
#fcf8f9snow
#000000black
Popover foreground
#120307black
#faf5f6whitesmoke
Primary
#050102black
#050102black
Primary foreground
#f5a8bflightpink
#f5a8bflightpink
Secondary
#020501black
#020501black
Secondary foreground
#48bb16limegreen
#48bb16limegreen
Muted
#eaf4e6beige
#0f190bblack
Muted foreground
#575e55dimgray
#a4aaa1darkgray
Accent
#010205black
#010205black
Accent foreground
#a8bff5lightsteelblue
#a8bff5lightsteelblue
Destructive
#be2109firebrick
#f42f10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050102black
#050102black

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card18.82:1AAA
Primary button11.13:1AAA
Secondary button8.21:1AAA
Muted text5.92:1AA
Accent11.31:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.59:1AAA
Primary button11.13:1AAA
Secondary button8.21:1AAA
Muted text7.61:1AAA
Accent11.31:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 356.811);
  --foreground: oklch(0.131 0.034 358.402);
  --muted: oklch(0.956 0.021 136.101);
  --muted-foreground: oklch(0.472 0.016 136.148);
  --popover: oklch(0.982 0.005 356.811);
  --popover-foreground: oklch(0.131 0.034 358.402);
  --card: oklch(0.973 0.008 356.89);
  --card-foreground: oklch(0.117 0.029 356.774);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.08 0.023 356.206);
  --primary-foreground: oklch(0.812 0.094 359.841);
  --secondary: oklch(0.102 0.023 133.76);
  --secondary-foreground: oklch(0.699 0.214 139.166);
  --accent: oklch(0.08 0.017 255.239);
  --accent-foreground: oklch(0.807 0.08 266.572);
  --destructive: oklch(0.517 0.194 31.312);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.08 0.023 356.206);
  --chart-1: oklch(0.08 0.023 356.206);
  --chart-2: oklch(0.102 0.023 133.76);
  --chart-3: oklch(0.08 0.017 255.239);
  --chart-4: oklch(0.167 0.04 134.829);
  --chart-5: oklch(0.079 0.024 356.18);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.005 356.818);
  --muted: oklch(0.198 0.03 136.701);
  --muted-foreground: oklch(0.731 0.014 136.094);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.005 356.818);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.004 356.763);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.08 0.023 356.206);
  --primary-foreground: oklch(0.812 0.094 359.841);
  --secondary: oklch(0.102 0.023 133.76);
  --secondary-foreground: oklch(0.699 0.214 139.166);
  --accent: oklch(0.08 0.017 255.239);
  --accent-foreground: oklch(0.807 0.08 266.572);
  --destructive: oklch(0.624 0.233 31.348);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.08 0.023 356.206);
  --chart-1: oklch(0.08 0.023 356.206);
  --chart-2: oklch(0.102 0.023 133.76);
  --chart-3: oklch(0.08 0.017 255.239);
  --chart-4: oklch(0.167 0.04 134.829);
  --chart-5: oklch(0.079 0.024 356.18);
}