Knowing for shadcn/ui

Knowing is a shadcn/ui theme built around a neutral gray primary color (#66696b) with neutral gray accents (#696b66). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the neutral gray primary (#66696b) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020608black
Foreground
#020608black
#ffffffwhite
Card
#fbfdfewhite
#020608black
Card foreground
#020608black
#ffffffwhite
Popover
#fbfdfewhite
#020608black
Popover foreground
#020608black
#ffffffwhite
Primary
#66696bdimgray
#66696bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6b6669dimgray
#6b6669dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efdce9mistyrose
#23101dblack
Muted foreground
#705c6adimgray
#a38f9drosybrown
Accent
#696b66dimgray
#696b66dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d15315chocolate
#e35b16chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#66696bdimgray
#66696bdimgray

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button5.50:1AA
Secondary button5.60:1AA
Muted text4.68:1AA
Accent5.40:1AA
Destructive4.22:1AA Large
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button5.50:1AA
Secondary button5.60:1AA
Muted text5.99:1AA
Accent5.40:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 225.011);
  --foreground: oklch(0.118 0.012 219.484);
  --muted: oklch(0.913 0.028 336.445);
  --muted-foreground: oklch(0.499 0.034 337.102);
  --popover: oklch(0.993 0.003 225.011);
  --popover-foreground: oklch(0.118 0.012 219.484);
  --card: oklch(0.993 0.003 225.011);
  --card-foreground: oklch(0.118 0.012 219.484);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.52 0.004 225.072);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.007 336.118);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.524 0.007 120.251);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.601 0.172 42.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.004 225.072);
  --chart-1: oklch(0.52 0.004 225.072);
  --chart-2: oklch(0.517 0.007 336.118);
  --chart-3: oklch(0.524 0.007 120.251);
  --chart-4: oklch(0.543 0.007 336.12);
  --chart-5: oklch(0.521 0.01 225.217);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.012 219.57);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.041 339.301);
  --muted-foreground: oklch(0.672 0.032 336.729);
  --popover: oklch(0.118 0.012 219.57);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.012 219.57);
  --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.52 0.004 225.072);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.007 336.118);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.524 0.007 120.251);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.184 41.914);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.004 225.072);
  --chart-1: oklch(0.52 0.004 225.072);
  --chart-2: oklch(0.517 0.007 336.118);
  --chart-3: oklch(0.524 0.007 120.251);
  --chart-4: oklch(0.543 0.007 336.12);
  --chart-5: oklch(0.521 0.01 225.217);
}