Known for shadcn/ui

Known is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#020302). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030203) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#000000black
#fdfcfdwhite
Card
#ffffffwhite
#030203black
Card foreground
#000000black
#fdfcfdwhite
Popover
#ffffffwhite
#030203black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#030203black
#030203black
Primary foreground
#ad8aaddarkgray
#ad8aaddarkgray
Secondary
#020302black
#020302black
Secondary foreground
#8aad8adarkseagreen
#8aad8adarkseagreen
Muted
#eceeecwhitesmoke
#111311black
Muted foreground
#3b453bdarkslategray
#bac4basilver
Accent
#020302black
#020302black
Accent foreground
#8aad8adarkseagreen
#8aad8adarkseagreen
Destructive
#ae3b09firebrick
#df4b0corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030203black
#030203black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.91:1AA
Secondary button8.28:1AAA
Muted text8.59:1AAA
Accent8.28:1AAA
Destructive6.11:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.91:1AA
Secondary button8.28:1AAA
Muted text10.39:1AAA
Accent8.28:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.948 0.004 145.069);
  --muted-foreground: oklch(0.377 0.022 144.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.09 0.006 325.616);
  --primary-foreground: oklch(0.677 0.066 325.744);
  --secondary: oklch(0.094 0.006 144.578);
  --secondary-foreground: oklch(0.713 0.064 144.445);
  --accent: oklch(0.094 0.006 144.578);
  --accent-foreground: oklch(0.713 0.064 144.445);
  --destructive: oklch(0.513 0.16 38.889);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.09 0.006 325.616);
  --chart-1: oklch(0.09 0.006 325.616);
  --chart-2: oklch(0.094 0.006 144.578);
  --chart-3: oklch(0.094 0.006 144.578);
  --chart-4: oklch(0.149 0.01 144.579);
  --chart-5: oklch(0.09 0.007 325.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.01 325.958);
  --foreground: oklch(0.992 0.002 325.117);
  --muted: oklch(0.183 0.006 144.855);
  --muted-foreground: oklch(0.811 0.018 144.945);
  --popover: oklch(0.089 0.01 325.958);
  --popover-foreground: oklch(0.992 0.002 325.117);
  --card: oklch(0.089 0.01 325.958);
  --card-foreground: oklch(0.992 0.002 325.117);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.09 0.006 325.616);
  --primary-foreground: oklch(0.677 0.066 325.744);
  --secondary: oklch(0.094 0.006 144.578);
  --secondary-foreground: oklch(0.713 0.064 144.445);
  --accent: oklch(0.094 0.006 144.578);
  --accent-foreground: oklch(0.713 0.064 144.445);
  --destructive: oklch(0.613 0.194 38.482);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.09 0.006 325.616);
  --chart-1: oklch(0.09 0.006 325.616);
  --chart-2: oklch(0.094 0.006 144.578);
  --chart-3: oklch(0.094 0.006 144.578);
  --chart-4: oklch(0.149 0.01 144.579);
  --chart-5: oklch(0.09 0.007 325.702);
}