Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a vivid light purple primary color (#fdf1fd) with vivid light green accents (#f2fdf1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid light purple primary (#fdf1fd) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fefbfewhite
#070307black
Foreground
#0f0510black
#fbf8fbsnow
Card
#fefbfewhite
#070307black
Card foreground
#0f0510black
#fbf8fbsnow
Popover
#fefbfewhite
#070307black
Popover foreground
#0f0510black
#fbf8fbsnow
Primary
#fdf1fdlavenderblush
#fdf1fdlavenderblush
Primary foreground
#4b0a4dindigo
#4b0a4dindigo
Secondary
#f2fdf1honeydew
#f2fdf1honeydew
Secondary foreground
#0c4d0adarkgreen
#0c4d0adarkgreen
Muted
#eaf1eawhitesmoke
#0f150eblack
Muted foreground
#465946darkslategray
#a7b9a6darkgray
Accent
#f2fdf1honeydew
#f2fdf1honeydew
Accent foreground
#0c4d0adarkgreen
#0c4d0adarkgreen
Destructive
#a4330asaddlebrown
#f36b39tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdf1fdlavenderblush
#fdf1fdlavenderblush

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button13.26:1AAA
Secondary button9.66:1AAA
Muted text6.56:1AA
Accent9.66:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button13.26:1AAA
Secondary button9.66:1AAA
Muted text8.91:1AAA
Accent9.66:1AAA
Destructive6.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 324.648);
  --foreground: oklch(0.138 0.033 326.07);
  --muted: oklch(0.95 0.012 144.537);
  --muted-foreground: oklch(0.441 0.038 144.043);
  --popover: oklch(0.991 0.005 324.648);
  --popover-foreground: oklch(0.138 0.033 326.07);
  --card: oklch(0.991 0.005 324.648);
  --card-foreground: oklch(0.138 0.033 326.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.972 0.02 324.747);
  --primary-foreground: oklch(0.298 0.124 326.624);
  --secondary: oklch(0.983 0.02 144.49);
  --secondary-foreground: oklch(0.366 0.115 142.466);
  --accent: oklch(0.983 0.02 144.49);
  --accent-foreground: oklch(0.366 0.115 142.466);
  --destructive: oklch(0.485 0.156 37.159);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.972 0.02 324.747);
  --chart-1: oklch(0.972 0.02 324.747);
  --chart-2: oklch(0.983 0.02 144.49);
  --chart-3: oklch(0.983 0.02 144.49);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.972 0.02 324.752);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.019 325.868);
  --foreground: oklch(0.983 0.005 324.649);
  --muted: oklch(0.188 0.018 143.988);
  --muted-foreground: oklch(0.768 0.033 144.334);
  --popover: oklch(0.11 0.019 325.868);
  --popover-foreground: oklch(0.983 0.005 324.649);
  --card: oklch(0.11 0.019 325.868);
  --card-foreground: oklch(0.983 0.005 324.649);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.972 0.02 324.747);
  --primary-foreground: oklch(0.298 0.124 326.624);
  --secondary: oklch(0.983 0.02 144.49);
  --secondary-foreground: oklch(0.366 0.115 142.466);
  --accent: oklch(0.983 0.02 144.49);
  --accent-foreground: oklch(0.366 0.115 142.466);
  --destructive: oklch(0.688 0.18 39.506);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.972 0.02 324.747);
  --chart-1: oklch(0.972 0.02 324.747);
  --chart-2: oklch(0.983 0.02 144.49);
  --chart-3: oklch(0.983 0.02 144.49);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.972 0.02 324.752);
}