Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a vivid deep blue primary color (#010728) with vivid deep violet accents (#0f0128). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid deep blue primary (#010728) on a blue-tinted background (#05060a).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#05060ablack
Foreground
#050715black
#fcfcfdwhite
Card
#f8f8fcghostwhite
#05060ablack
Card foreground
#050715black
#fcfcfdwhite
Popover
#f8f8fcghostwhite
#05060ablack
Popover foreground
#050715black
#fcfcfdwhite
Primary
#010728black
#010728black
Primary foreground
#c3ccfdlightblue
#c3ccfdlightblue
Secondary
#011a28black
#011a28black
Secondary foreground
#069defdodgerblue
#069defdodgerblue
Muted
#ccdde6gainsboro
#192a33darkslategray
Muted foreground
#494d50darkslategray
#afb3b6darkgray
Accent
#0f0128black
#0f0128black
Accent foreground
#d8c3fdthistle
#d8c3fdthistle
Destructive
#ad2810firebrick
#d23014firebrick
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010728black
#010728black

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button12.60:1AAA
Secondary button5.99:1AA
Muted text6.09:1AA
Accent12.46:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button12.60:1AAA
Secondary button5.99:1AA
Muted text6.98:1AA
Accent12.46:1AAA
Destructive5.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 278.241);
  --foreground: oklch(0.135 0.032 271.448);
  --muted: oklch(0.887 0.022 231.019);
  --muted-foreground: oklch(0.419 0.006 230.87);
  --popover: oklch(0.981 0.005 278.241);
  --popover-foreground: oklch(0.135 0.032 271.448);
  --card: oklch(0.981 0.005 278.241);
  --card-foreground: oklch(0.135 0.032 271.448);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.15 0.07 264.497);
  --primary-foreground: oklch(0.855 0.069 277.004);
  --secondary: oklch(0.207 0.042 234.799);
  --secondary-foreground: oklch(0.669 0.161 242.965);
  --accent: oklch(0.15 0.078 293.428);
  --accent-foreground: oklch(0.854 0.082 300.684);
  --destructive: oklch(0.49 0.173 32.182);
  --destructive-foreground: oklch(0.972 0.012 29.512);
  --ring: oklch(0.15 0.07 264.497);
  --chart-1: oklch(0.15 0.07 264.497);
  --chart-2: oklch(0.207 0.042 234.799);
  --chart-3: oklch(0.15 0.078 293.428);
  --chart-4: oklch(0.247 0.052 237.271);
  --chart-5: oklch(0.149 0.072 263.534);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 274.567);
  --foreground: oklch(0.992 0.001 278.306);
  --muted: oklch(0.275 0.028 232.7);
  --muted-foreground: oklch(0.766 0.005 230.757);
  --popover: oklch(0.121 0.013 274.567);
  --popover-foreground: oklch(0.992 0.001 278.306);
  --card: oklch(0.121 0.013 274.567);
  --card-foreground: oklch(0.992 0.001 278.306);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.15 0.07 264.497);
  --primary-foreground: oklch(0.855 0.069 277.004);
  --secondary: oklch(0.207 0.042 234.799);
  --secondary-foreground: oklch(0.669 0.161 242.965);
  --accent: oklch(0.15 0.078 293.428);
  --accent-foreground: oklch(0.854 0.082 300.684);
  --destructive: oklch(0.565 0.202 32.112);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.15 0.07 264.497);
  --chart-1: oklch(0.15 0.07 264.497);
  --chart-2: oklch(0.207 0.042 234.799);
  --chart-3: oklch(0.15 0.078 293.428);
  --chart-4: oklch(0.247 0.052 237.271);
  --chart-5: oklch(0.149 0.072 263.534);
}