Demo ui direction

From Innei/haklex · View interactive version

Demo ui direction is an AI agent skill from the GitHub repository Innei/haklex. Use when modifying demo/ UI — adding pages, components, or styles. Defines the left-sidebar shell, the Doc and Workbench page templates, and the flat-line Quiet Ink conventions for the haklex demo site.

How to use this skill

Skill file

Demo UI Direction

The demo site is haklex's docs + playground. Its chrome uses the same Quiet Ink tokens as the editor (--rc-*); there is no second palette. Direction: modern, flat, 1px lines, translucent fills for interaction, no card shadows.

Sub-references:

Design spec: docs/superpowers/specs/2026-10-25-docs-site-layout-design.md.

Shell

demo/src/App.tsx → .app is a 2-column grid: Sidebar (260px) + .app-main (the only scroll container). No top header. Below 768px the sidebar becomes a drawer opened from .mobile-bar.

Two page templates

| Template | Component | Use for | Shape |

| --------- | -------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |

| Doc | components/doc/DocPage | reading / comparing (Nodes, Extensions, Charts) | breadcrumb → H1 → lead → meta chips → body ≤760 + auto TOC (200) + prev/next. wide → ≤1080, no TOC (overviews) |

| Workbench | components/workbench/Workbench | trying / tweaking (Editor, Presets, Comments, AI, Hostile) | 44px top bar (title, meta, actions) + flush stage + right panel (300, AI 380) |

Doc rules:

Workbench rules:

Anti-patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.