Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a deep purple primary color (#1a091b) with neutral gray accents (#d2cbd2). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#1a091b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080208black
#faf5faghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#040104black
#fbf8fbsnow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#040104black
#fbf8fbsnow
Primary
#1a091bblack
#1a091bblack
Primary foreground
#d382d4orchid
#d382d4orchid
Secondary
#d2cbd2lightgrey
#2d242ddarkslategray
Secondary foreground
#393239darkslategray
#c8bbc9silver
Muted
#e4dde4gainsboro
#221b22black
Muted foreground
#675f67dimgray
#9f98a0darkgray
Accent
#d2cbd2lightgrey
#2d242ddarkslategray
Accent foreground
#393239darkslategray
#c8bbc9silver
Destructive
#900909darkred
#e10e0ered
Destructive foreground
#fccfcfpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a091bblack
#1a091bblack

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.31:1AAA
Primary button7.19:1AAA
Secondary button7.82:1AAA
Muted text4.61:1AA
Accent7.82:1AAA
Destructive6.72:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.61:1AAA
Primary button7.19:1AAA
Secondary button8.10:1AAA
Muted text5.98:1AA
Accent8.10:1AAA
Destructive4.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.027 326.781);
  --muted: oklch(0.905 0.012 325.189);
  --muted-foreground: oklch(0.497 0.016 325.319);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.086 0.021 326.781);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.086 0.021 326.781);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.176 0.043 326.608);
  --primary-foreground: oklch(0.719 0.145 326.373);
  --secondary: oklch(0.85 0.012 325.196);
  --secondary-foreground: oklch(0.327 0.017 325.444);
  --accent: oklch(0.85 0.012 325.196);
  --accent-foreground: oklch(0.327 0.017 325.444);
  --destructive: oklch(0.414 0.164 28.457);
  --destructive-foreground: oklch(0.893 0.051 18.145);
  --ring: oklch(0.176 0.043 326.608);
  --chart-1: oklch(0.176 0.043 326.608);
  --chart-2: oklch(0.85 0.012 325.196);
  --chart-3: oklch(0.85 0.012 325.196);
  --chart-4: oklch(0.874 0.01 325.179);
  --chart-5: oklch(0.176 0.046 326.683);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.008 325.157);
  --muted: oklch(0.234 0.016 325.565);
  --muted-foreground: oklch(0.687 0.015 325.247);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.983 0.005 325.138);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.005 325.138);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.176 0.043 326.608);
  --primary-foreground: oklch(0.719 0.145 326.373);
  --secondary: oklch(0.275 0.021 325.604);
  --secondary-foreground: oklch(0.807 0.024 325.302);
  --accent: oklch(0.275 0.021 325.604);
  --accent-foreground: oklch(0.807 0.024 325.302);
  --destructive: oklch(0.575 0.231 28.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.176 0.043 326.608);
  --chart-1: oklch(0.176 0.043 326.608);
  --chart-2: oklch(0.275 0.021 325.604);
  --chart-3: oklch(0.275 0.021 325.604);
  --chart-4: oklch(0.305 0.024 325.624);
  --chart-5: oklch(0.176 0.046 326.683);
}