janck for shadcn/ui

janck is a shadcn/ui theme built around a near-black primary color (#000000) with neutral gray accents (#494949). The light mode uses a neutral background (#ffffff). Dark mode switches to a near-white primary (#ffffff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#0c0c0cblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0c0c0cblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#000000black
#ffffffwhite
Primary foreground
#ffffffwhite
#000000black
Secondary
#2dd4bfturquoise
#2dd4bfturquoise
Secondary foreground
#ffffffwhite
#000000black
Muted
#494949darkslategray
#161616black
Muted foreground
#abababdarkgray
#616062dimgray
Accent
#494949darkslategray
#345c5edarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d2430fchocolate
#ef531aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#000000black
#ffffffwhite
Input
#000000black
#ffffffwhite
Ring
#000000black
#0c0c0cblack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button21.00:1AAA
Secondary button1.86:1Fail
Muted text3.89:1AA Large
Accent9.00:1AAA
Destructive4.62:1AA
Dark mode
Text on background21.00:1AAA
Text on card19.56:1AAA
Primary button21.00:1AAA
Secondary button11.28:1AAA
Muted text2.90:1Fail
Accent7.42:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.407 0 180);
  --muted-foreground: oklch(0.743 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0 0 0);
  --input: oklch(0 0 0);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.785 0.133 181.919);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.405 0 180);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.582 0.188 37.052);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.785 0.133 181.919);
  --chart-3: oklch(0.405 0 180);
  --chart-4: oklch(0.794 0.129 182.513);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0 180);
  --muted-foreground: oklch(0.49 0.004 299.915);
  --popover: oklch(0.154 0 153.435);
  --popover-foreground: oklch(0.992 0.001 300.017);
  --card: oklch(0.154 0 153.435);
  --card-foreground: oklch(1 0 180);
  --border: oklch(1 0 180);
  --input: oklch(1 0 180);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.785 0.133 181.919);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.445 0.045 200.604);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.202 37.718);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.154 0 153.435);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.785 0.133 181.919);
  --chart-3: oklch(0.445 0.045 200.604);
  --chart-4: oklch(0.794 0.129 182.513);
  --chart-5: oklch(1 0 180);
}