Calcification for shadcn/ui

Calcification is a shadcn/ui theme built around a near-black primary color (#090607) with near-black accents (#060709). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the near-black primary (#090607) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0b0505black
Foreground
#090202black
#ffffffwhite
Card
#faf5f5whitesmoke
#0e0607black
Card foreground
#040101black
#ffffffwhite
Popover
#fcf8f9snow
#0b0505black
Popover foreground
#090202black
#ffffffwhite
Primary
#090607black
#090607black
Primary foreground
#b29094rosybrown
#b29094rosybrown
Secondary
#070906black
#070906black
Secondary foreground
#94b290darkseagreen
#94b290darkseagreen
Muted
#deefdcgainsboro
#122310black
Muted foreground
#4e504edarkslategray
#afb1afdarkgray
Accent
#060709black
#060709black
Accent foreground
#9094b2darkgray
#9094b2darkgray
Destructive
#da1e01red
#fe4225orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090607black
#090607black

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.23:1AAA
Primary button7.01:1AAA
Secondary button8.59:1AAA
Muted text6.79:1AA
Accent6.78:1AA
Destructive5.03:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.02:1AAA
Primary button7.01:1AAA
Secondary button8.59:1AAA
Muted text7.61:1AAA
Accent6.78:1AA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 8.995);
  --foreground: oklch(0.101 0.023 10.611);
  --muted: oklch(0.935 0.032 141.993);
  --muted-foreground: oklch(0.429 0.003 142.088);
  --popover: oklch(0.983 0.004 8.995);
  --popover-foreground: oklch(0.101 0.023 10.611);
  --card: oklch(0.974 0.005 9.039);
  --card-foreground: oklch(0.08 0.019 10.611);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.129 0.006 9.206);
  --primary-foreground: oklch(0.685 0.041 10.335);
  --secondary: oklch(0.135 0.008 141.558);
  --secondary-foreground: oklch(0.73 0.058 141.836);
  --accent: oklch(0.127 0.006 278.824);
  --accent-foreground: oklch(0.672 0.044 279.212);
  --destructive: oklch(0.568 0.22 31.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.129 0.006 9.206);
  --chart-1: oklch(0.129 0.006 9.206);
  --chart-2: oklch(0.135 0.008 141.558);
  --chart-3: oklch(0.127 0.006 278.824);
  --chart-4: oklch(0.175 0.014 141.845);
  --chart-5: oklch(0.128 0.007 9.262);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 9.718);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.044 141.508);
  --muted-foreground: oklch(0.758 0.003 142.101);
  --popover: oklch(0.123 0.014 9.718);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.017 10.323);
  --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.129 0.006 9.206);
  --primary-foreground: oklch(0.685 0.041 10.335);
  --secondary: oklch(0.135 0.008 141.558);
  --secondary-foreground: oklch(0.73 0.058 141.836);
  --accent: oklch(0.127 0.006 278.824);
  --accent-foreground: oklch(0.672 0.044 279.212);
  --destructive: oklch(0.657 0.228 31.651);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.129 0.006 9.206);
  --chart-1: oklch(0.129 0.006 9.206);
  --chart-2: oklch(0.135 0.008 141.558);
  --chart-3: oklch(0.127 0.006 278.824);
  --chart-4: oklch(0.175 0.014 141.845);
  --chart-5: oklch(0.128 0.007 9.262);
}