Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a muted deep yellow primary color (#13120b) with muted deep blue accents (#0b0c13). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted deep yellow primary (#13120b) on a yellow-tinted background (#0e0d06).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0e0d06black
Foreground
#000000black
#f9f9f5whitesmoke
Card
#fdfdfcwhite
#0e0d06black
Card foreground
#000000black
#f9f9f5whitesmoke
Popover
#fdfdfcwhite
#0e0d06black
Popover foreground
#000000black
#f9f9f5whitesmoke
Primary
#13120bblack
#13120bblack
Primary foreground
#bfba92tan
#bfba92tan
Secondary
#0b0c13black
#0b0c13black
Secondary foreground
#9297bfdarkgray
#9297bfdarkgray
Muted
#e6e8f4lavender
#0b0d19black
Muted foreground
#4a4d64darkslategray
#9b9eb5darkgray
Accent
#0b0c13black
#0b0c13black
Accent foreground
#9297bfdarkgray
#9297bfdarkgray
Destructive
#d73604orangered
#fa420aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13120bblack
#13120bblack

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button9.49:1AAA
Secondary button6.86:1AA
Muted text6.78:1AA
Accent6.86:1AA
Destructive4.76:1AA
Dark mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button9.49:1AAA
Secondary button6.86:1AA
Muted text7.34:1AAA
Accent6.86:1AA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 100.36);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.017 280.046);
  --muted-foreground: oklch(0.426 0.038 278.768);
  --popover: oklch(0.994 0.002 100.36);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.002 100.36);
  --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.182 0.014 101.343);
  --primary-foreground: oklch(0.782 0.054 101.277);
  --secondary: oklch(0.158 0.015 278.672);
  --secondary-foreground: oklch(0.686 0.059 278.847);
  --accent: oklch(0.158 0.015 278.672);
  --accent-foreground: oklch(0.686 0.059 278.847);
  --destructive: oklch(0.578 0.204 34.399);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0.014 101.343);
  --chart-1: oklch(0.182 0.014 101.343);
  --chart-2: oklch(0.158 0.015 278.672);
  --chart-3: oklch(0.158 0.015 278.672);
  --chart-4: oklch(0.188 0.022 278.28);
  --chart-5: oklch(0.184 0.015 101.423);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.016 102.108);
  --foreground: oklch(0.981 0.005 100.406);
  --muted: oklch(0.162 0.026 277.319);
  --muted-foreground: oklch(0.705 0.034 279.544);
  --popover: oklch(0.16 0.016 102.108);
  --popover-foreground: oklch(0.981 0.005 100.406);
  --card: oklch(0.16 0.016 102.108);
  --card-foreground: oklch(0.981 0.005 100.406);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.182 0.014 101.343);
  --primary-foreground: oklch(0.782 0.054 101.277);
  --secondary: oklch(0.158 0.015 278.672);
  --secondary-foreground: oklch(0.686 0.059 278.847);
  --accent: oklch(0.158 0.015 278.672);
  --accent-foreground: oklch(0.686 0.059 278.847);
  --destructive: oklch(0.649 0.226 34.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0.014 101.343);
  --chart-1: oklch(0.182 0.014 101.343);
  --chart-2: oklch(0.158 0.015 278.672);
  --chart-3: oklch(0.158 0.015 278.672);
  --chart-4: oklch(0.188 0.022 278.28);
  --chart-5: oklch(0.184 0.015 101.423);
}