Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a deep green primary color (#071103) with deep violet accents (#0d0311). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the deep green primary (#071103) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#000000black
Foreground
#040802black
#ffffffwhite
Card
#f5fcf3honeydew
#030303black
Card foreground
#020401black
#ffffffwhite
Popover
#f9fdf7mintcream
#000000black
Popover foreground
#040802black
#ffffffwhite
Primary
#071103black
#071103black
Primary foreground
#4ebf22limegreen
#4ebf22limegreen
Secondary
#0d0311black
#0d0311black
Secondary foreground
#e3baf3thistle
#e3baf3thistle
Muted
#f1edf2whitesmoke
#100d12black
Muted foreground
#645969dimgray
#a196a6darkgray
Accent
#0d0311black
#0d0311black
Accent foreground
#e3baf3thistle
#e3baf3thistle
Destructive
#870703darkred
#fa2119red
Destructive foreground
#fec0belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#071103black
#071103black

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.71:1AAA
Primary button8.05:1AAA
Secondary button12.10:1AAA
Muted text5.71:1AA
Accent12.10:1AAA
Destructive6.54:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.05:1AAA
Secondary button12.10:1AAA
Muted text6.82:1AA
Accent12.10:1AAA
Destructive3.95: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.989 0.01 136.638);
  --foreground: oklch(0.124 0.019 135.093);
  --muted: oklch(0.951 0.007 316.586);
  --muted-foreground: oklch(0.481 0.028 316.438);
  --popover: oklch(0.989 0.01 136.638);
  --popover-foreground: oklch(0.124 0.019 135.093);
  --card: oklch(0.984 0.014 136.653);
  --card-foreground: oklch(0.098 0.015 135.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.164 0.035 135.455);
  --primary-foreground: oklch(0.711 0.211 139.054);
  --secondary: oklch(0.13 0.04 317.295);
  --secondary-foreground: oklch(0.842 0.089 316.294);
  --accent: oklch(0.13 0.04 317.295);
  --accent-foreground: oklch(0.842 0.089 316.294);
  --destructive: oklch(0.395 0.157 29.513);
  --destructive-foreground: oklch(0.863 0.071 20.904);
  --ring: oklch(0.164 0.035 135.455);
  --chart-1: oklch(0.164 0.035 135.455);
  --chart-2: oklch(0.13 0.04 317.295);
  --chart-3: oklch(0.13 0.04 317.295);
  --chart-4: oklch(0.165 0.056 315.569);
  --chart-5: oklch(0.165 0.037 135.407);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.165 0.012 316.404);
  --muted-foreground: oklch(0.689 0.026 316.5);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.164 0.035 135.455);
  --primary-foreground: oklch(0.711 0.211 139.054);
  --secondary: oklch(0.13 0.04 317.295);
  --secondary-foreground: oklch(0.842 0.089 316.294);
  --accent: oklch(0.13 0.04 317.295);
  --accent-foreground: oklch(0.842 0.089 316.294);
  --destructive: oklch(0.629 0.245 28.988);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.164 0.035 135.455);
  --chart-1: oklch(0.164 0.035 135.455);
  --chart-2: oklch(0.13 0.04 317.295);
  --chart-3: oklch(0.13 0.04 317.295);
  --chart-4: oklch(0.165 0.056 315.569);
  --chart-5: oklch(0.165 0.037 135.407);
}