Knokk Knokk Components
Knokk · v0.1 · dark · animated · 20 components

A unified inbox, documented.

The source of truth for every surface, chrome button, and motion spec that ships inside the Knokk desktop app — Messenger, Telegram, Instagram, WhatsApp, Gmail and more in one window. Open source, AI-referenceable, kept in sync with the live Electron build.

For AI agents

Machine-readable references for use in agentic code generation, retrieval, and automation. Read the manifest first — it captures conventions (no red/orange, match-window-radius, outlines-only, tooltip pattern) that live across many files in the app repo.

Components

Color palette

Every colour Knokk uses, organised by role. Yellow is the brand and the default per-account accent. Blue is reserved for hyperlinks. Red and orange are reserved for error states only and never appear in chrome.

Surfaces · dark default theme
bg
#0A0A0A
sidebar
#0D0D0F
surface-2
#111113
surface
#141416
bg-secondary
#1A1A1A
bg-tertiary
#252525
Surfaces · light opt-in email-reading theme · config.emailTheme
bg
#FFFFFF
sidebar
#F5F5F7
surface-2
#F8F8FA
surface
#FFFFFF
bg-secondary
#F0F0F2
bg-tertiary
#E6E6E8
Text · dark
text
white 0.9
text-mid
white 0.75
text-mute
white 0.55
text-dim
white 0.4
Text · light opt-in email-reading theme
text
black 0.88
text-mid
black 0.75
text-mute
black 0.55
text-dim
black 0.4
Borders · dark
border
white 0.06
border-mid
white 0.09
border-hard
white 0.18
Borders · light
border
black 0.07
border-mid
black 0.09
border-hard
black 0.22
Hover & selection · dark
hover
white 0.05
selected
white 0.07
Hover & selection · light
hover
black 0.04
selected
black 0.07
Feedback error / warning / success / info — never used in chrome
error
#DC4646
warning
#EAB308
success
#22C55E
info
#5B7FFF
Brand & links
brand
#FFE100
link
#5B7FFF
Editor swatches & per-account accents one palette — same nine hexes power compose colour picker, right-click menu, per-account accent rotation
default
reset
slate
#64748B
blue
#5B7FFF
indigo
#7C6CFF
violet
#A855F7
pink
#EC4899
teal
#14B8A6
green
#22C55E
yellow
#FFE100

Spacing

A 16-step ladder on a 4-px base, with three half-steps (2 / 6 / 10) for tight chrome (icon rows, kbd chips, menu rows). Derived from a live audit of every padding, gap, and margin literal in the renderer — not aspirational. The four most-used values (8, 6, 4, 12) cover over half of all spacing usage. See the full Storybook story →

kk-0 0px
kk-half 2px
kk-1 4px
kk-1.5 6px
kk-2 8px
kk-2.5 10px
kk-3 12px
kk-3.5 14px
kk-4 16px
kk-5 20px
kk-6 24px
kk-8 32px
kk-10 40px
kk-12 48px
kk-14 56px
kk-20 80px

Usage

The components are mirrored from the live Knokk Electron app at /Users/carlhagerling/Documents/Apps/Knokk. To reuse, copy the source from the path listed in components.manifest.json#components[].appSource:

# Read the manifest, find the closest component, copy the source
curl -s https://hagerling.se/apps/knokk/components/components.manifest.json \
  | jq '.components[] | select(.name == "TabBarTab")'

# → returns { appSource: "src/renderer/src/components/layout/TabBarTab.tsx", ... }
cp $KNOKK_REPO/src/renderer/src/components/layout/TabBarTab.tsx ./src/

Hard rules