Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a near-white primary color (#fefcfb) with near-white accents (#fcfbfe). The light mode uses a neutral background (#fefcfb). Dark mode keeps the near-white primary (#fefcfb) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fefcfbsnow
#070403black
Foreground
#040201black
#fcf9f8snow
Card
#fefcfbsnow
#070403black
Card foreground
#040201black
#fcf9f8snow
Popover
#fefcfbsnow
#070403black
Popover foreground
#040201black
#fcf9f8snow
Primary
#fefcfbsnow
#fefcfbsnow
Primary foreground
#4c2715maroon
#4c2715maroon
Secondary
#fbfefcwhite
#fbfefcwhite
Secondary foreground
#154c27darkslategray
#154c27darkslategray
Muted
#e0e6e2gainsboro
#191f1bblack
Muted foreground
#5b625ddimgray
#9da49fdarkgray
Accent
#fcfbfewhite
#fcfbfewhite
Accent foreground
#512b9crebeccapurple
#512b9crebeccapurple
Destructive
#ab3e07saddlebrown
#f66c28tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefcfbsnow
#fefcfbsnow

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button12.76:1AAA
Secondary button9.86:1AAA
Muted text4.95:1AA
Accent9.36:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button12.76:1AAA
Secondary button9.86:1AAA
Muted text6.56:1AA
Accent9.36:1AAA
Destructive7.11:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 48.722);
  --foreground: oklch(0.091 0.013 59.151);
  --muted: oklch(0.92 0.009 157.057);
  --muted-foreground: oklch(0.488 0.012 156.745);
  --popover: oklch(0.992 0.002 48.722);
  --popover-foreground: oklch(0.091 0.013 59.151);
  --card: oklch(0.992 0.002 48.722);
  --card-foreground: oklch(0.091 0.013 59.151);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.992 0.002 48.721);
  --primary-foreground: oklch(0.319 0.063 46.17);
  --secondary: oklch(0.994 0.004 157.184);
  --secondary-foreground: oklch(0.371 0.085 150.83);
  --accent: oklch(0.99 0.004 301.428);
  --accent-foreground: oklch(0.407 0.172 292.279);
  --destructive: oklch(0.511 0.154 40.826);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.992 0.002 48.721);
  --chart-1: oklch(0.992 0.002 48.721);
  --chart-2: oklch(0.994 0.004 157.184);
  --chart-3: oklch(0.99 0.004 301.428);
  --chart-4: oklch(1.012 0.008 337.423);
  --chart-5: oklch(0.992 0.003 48.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.009 54.478);
  --foreground: oklch(0.985 0.003 48.714);
  --muted: oklch(0.233 0.013 156.067);
  --muted-foreground: oklch(0.712 0.011 156.943);
  --popover: oklch(0.115 0.009 54.478);
  --popover-foreground: oklch(0.985 0.003 48.714);
  --card: oklch(0.115 0.009 54.478);
  --card-foreground: oklch(0.985 0.003 48.714);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.992 0.002 48.721);
  --primary-foreground: oklch(0.319 0.063 46.17);
  --secondary: oklch(0.994 0.004 157.184);
  --secondary-foreground: oklch(0.371 0.085 150.83);
  --accent: oklch(0.99 0.004 301.428);
  --accent-foreground: oklch(0.407 0.172 292.279);
  --destructive: oklch(0.692 0.186 43.323);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.992 0.002 48.721);
  --chart-1: oklch(0.992 0.002 48.721);
  --chart-2: oklch(0.994 0.004 157.184);
  --chart-3: oklch(0.99 0.004 301.428);
  --chart-4: oklch(1.012 0.008 337.423);
  --chart-5: oklch(0.992 0.003 48.719);
}