# Knock — Design Guidelines Brand basics for Knock: logo usage, color, and type. Assets live in `logo/`. ## Concept Knock is a peephole with a prompt for a pupil. You knock on an API, look through the door, and see what comes back. The ring is the door and the `>` is the terminal. The same shape is the app icon and the **o** in the wordmark, so icon and wordmark always read as one system. ## Logo ### Assets | File | Use | | --- | --- | | `logo/knock-app-icon.svg` | App icon (512×512 tile). Source for `.desktop`, `.png`, `.ico` and `.icns` exports. | | `logo/knock-favicon.svg` | 16–24 px only (favicon, tray). Heavier strokes so it doesn't fall apart at small sizes. | | `logo/knock-mark.svg` | Mark on dark backgrounds, transparent, Knock Cyan. | | `logo/knock-mark-on-light.svg` | Mark on light backgrounds, Cyan Deep. | | `logo/knock-mark-mono.svg` | Mark in `currentColor`, for UI, monochrome and print. | | `logo/knock-wordmark-on-dark.svg` | Wordmark on dark backgrounds. | | `logo/knock-wordmark-on-light.svg` | Wordmark on light backgrounds. | | `logo/knock-wordmark-mono.svg` | Wordmark in `currentColor`. | The wordmark is fully outlined (Space Grotesk Bold). It doesn't need the font installed. ### Construction (mark) Drawn on a 100×100 grid. All strokes have round caps and joins. - Ring: center `50,50`, radius `36`, stroke `12`, so the outer edge is 42 and the inner edge is 30. - Chevron: `M45 40 L55 50 L45 60`, stroke `10`. It sits optically centered and keeps clear air to the ring on every side. - Favicon variant: ring stroke `16`, chevron `M46 40 L55 50 L46 60` with stroke `15`, on a 16 px tile with a 3.5 px radius. - App icon: tile `#101318`, corner radius ≈ 22 % (114 / 512). The mark takes 58 % of the tile width and is centered. ### Where to use what - **In the app**, the icon does the work: dock or taskbar, start menu entry, window icon. The titlebar shows the 18 px mark and the word "knock" set in Space Grotesk Bold, not the outlined wordmark. - The **wordmark** is for About, the splash screen, the website, the README header and social images. - Below 24 px, always use `knock-favicon.svg`. ### Clear space and minimum size - Clear space around the mark: at least ¼ of its width on every side. Around the wordmark: at least the height of the **o**. - Minimum sizes: mark 16 px (favicon variant), app icon 32 px, wordmark 64 px wide on screen. ### Don'ts - Don't recolor the letters of the wordmark in the accent. Only the **o** carries color. - Don't put the mark in a plain circle or anything other than the defined tile. - Don't stretch, rotate or outline it, and don't add shadows or gradients. - Don't use Knock Cyan on light backgrounds (2.0:1). Use Cyan Deep there. - Don't rebuild the wordmark from live text with a fallback font. ## Color Dark-first, matching how the app is used. One accent, everything else neutral. Contrast is WCAG 2 relative to the background in the "on" column. ### Brand | Token | Hex | Role | Contrast | | --- | --- | --- | --- | | `knock-cyan` | `#2EC4F1` | Accent: logo, primary buttons, active state, `GET` | 9.1:1 on `ink-900` | | `knock-cyan-deep` | `#0B7FAD` | Accent on light backgrounds (logo, links) | 4.5:1 on white, 4.1:1 on `paper-100` (logo only, no body text) | | `on-accent` | `#101318` | Text and icons on Knock Cyan | 9.1:1 on `knock-cyan` | ### Neutrals: dark (app) | Token | Hex | Role | | --- | --- | --- | | `ink-950` | `#0E1014` | Titlebar, deepest layer | | `ink-900` | `#101318` | App icon tile, base background | | `ink-850` | `#111419` | Sidebar | | `ink-800` | `#15181E` | Main panel | | `ink-700` | `#1E222A` | Inputs, URL bar, code blocks | | `ink-600` | `#232833` | Active tab, hover, skeletons | | `text-strong` | `#F4F6F8` | Headings, wordmark letters (17.2:1 on `ink-900`) | | `text` | `#E3E7EC` | Body text (14.3:1 on `ink-800`) | | `text-soft` | `#C9CED6` | Secondary text (11.7:1 on `ink-850`) | | `text-muted` | `#A9B0BC` | Meta info, inactive tabs (8.2:1 on `ink-800`) | | `text-subtle` | `#8A93A2` | Section labels such as COLLECTIONS (5.7:1 on `ink-800`) | ### Neutrals: light (website, docs) | Token | Hex | Role | | --- | --- | --- | | `paper` | `#FFFFFF` | Background | | `paper-100` | `#F2F3F5` | Cards, surfaces | | `ink-900` | `#101318` | Text, wordmark letters | | `slate-500` | `#5B6270` | Secondary text (6.1:1 on white, 5.5:1 on `paper-100`) | ### Status and HTTP methods All values are checked against `ink-800` and are meant for the dark UI. | Token | Hex | Use | Contrast | | --- | --- | --- | --- | | `method-get` | `#2EC4F1` | GET (same as the accent) | 8.7:1 | | `method-post` | `#F5B85C` | POST, warnings | 10.5:1 on `ink-850` | | `method-put` | `#B8A1FF` | PUT | 8.1:1 | | `method-patch` | `#F59FD0` | PATCH | 9.1:1 | | `method-delete` | `#FF5C5C` | DELETE, errors, 4xx/5xx | 5.9:1 | | `status-ok` | `#7CF29A` | 2xx, success | 12.7:1 | Method colors are always paired with the method name. Color never carries meaning on its own. ## Typography | Role | Font | Weights | | --- | --- | --- | | UI, headings, wordmark | Space Grotesk | 500, 700 | | URLs, headers, bodies, code | JetBrains Mono | 500 | Both fonts are under the SIL Open Font License and can be bundled with the app. ## CSS tokens ```css :root { --knock-cyan: #2EC4F1; --knock-cyan-deep: #0B7FAD; --on-accent: #101318; --ink-950: #0E1014; --ink-900: #101318; --ink-850: #111419; --ink-800: #15181E; --ink-700: #1E222A; --ink-600: #232833; --text-strong: #F4F6F8; --text: #E3E7EC; --text-soft: #C9CED6; --text-muted: #A9B0BC; --text-subtle: #8A93A2; --paper: #FFFFFF; --paper-100: #F2F3F5; --slate-500: #5B6270; --method-get: #2EC4F1; --method-post: #F5B85C; --method-put: #B8A1FF; --method-patch: #F59FD0; --method-delete: #FF5C5C; --status-ok: #7CF29A; --font-sans: "Space Grotesk", system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, monospace; } ```