/design-engine:practical-ui-designfrom design-engine
Builds a coherent visual system for color, typography, spacing, layout, buttons, and forms. Use when designing or auditing UI tokens, palettes, and component states.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
doctrine/references/type-scale-and-spacing.md and a deliberate (non-banned) typeface from doctrine/references/font-groups-and-usage.md.webapp-gui-design, android-ui-ux-design, or ios-ui-ux-design; this skill supplies the visual system, not the framework code.doctrine/references/* font and pairing docs, not this entrypoint.interaction-design-patterns), animation timing (motion-design), or a pass/fail generic-AI-UI quality gate (visual-product-slop-audit, design-audit) — those are companion siblings, not this skill.healthcare-ui-design and load this for the colour/type/spacing layer.| Input | Source | Evidence |
|---|---|---|
| Product tasks, audience, and platform | Approved brief | Representative screens and priority actions |
| Brand/type/colour constraints | Brand system and doctrine | Approved assets, licences, and contrast requirements |
| Existing component inventory | UI audit or repository | Repeated patterns, variants, and inconsistency examples |
doctrine/references/* before applying the type and spacing rules.Start feature-first and hierarchy-first: state the user outcome, establish the information structure in grayscale, then add type, colour, depth, imagery, and personality as deliberate system choices.
Treat empty, loading, error, success, and recovery states as part of the visual specification; verify long, short, localised, and missing content before polishing.
When a product already exists, audit token drift, duplicated components, and inconsistent states before proposing new styling.
| Condition | Choice | Wrong-choice failure |
|---|---|---|
| Existing brand tokens meet usability needs | Extend them minimally | Parallel palette/type systems create drift |
| Dense operational UI | Restrained surfaces and strong alignment | Excess ornament reduces scanning and data clarity |
| Primary and secondary actions coexist | One dominant action treatment and quiet alternatives | Equal button weight hides priority |
| Output | Consumer | Evidence and acceptance |
|---|---|---|
| Practical UI specification | Design and engineering | Type, colour, spacing, hierarchy, controls, and states use named rules |
| Consistency/accessibility review | Product and QA | Representative screens pass contrast, focus, target, and component consistency checks |
skills/09-design-systems-tokens-and-theming/component-library-architecture/references/design-system-operating-model.md §3 and references/ui-numeric-baselines.md — build order, numeric baselines, CUBI screen check (sources cited in each file).
doctrine/design-doctrine.md — the anti-slop charter; this visual system exists to push UI away from the convergent AI mean.
doctrine/references/ai-slop-banned-fonts.md — banned primary typefaces; pick a deliberate face from doctrine/references/font-groups-and-usage.md before applying the type rules below.
doctrine/references/pairing-principles.md — always pair a distinctive display face with a refined body face; never monotype.
doctrine/references/type-scale-and-spacing.md — the canonical type scale, line-height, weight, tracking, and spacing-rhythm numbers behind the typography and spacing sections (replaces the former math-for-web-design reference, which did not migrate to this engine).
Use the references/ directory for deep detail after reading the core workflow below.
Use references/visual-consistency.md when pattern coherence, affordances, or user expectations are part of the task.
examples/ui-before-after-worked.md — a pricing card taken from a weak (AI-slop) version to a fixed version, with every change mapped to the rule it satisfies (spacing, hierarchy, contrast, colour restraint, button design, shadow/border).| Companion Skill | When to Load |
|---|---|
webapp-gui-design | Web app dashboards, admin panels, SaaS UIs |
android-ui-ux-design | Android native (Kotlin/Compose) |
ios-ui-ux-design | iOS native (SwiftUI/UIKit) |
healthcare-ui-design | Clinical-grade interfaces with strict accessibility |
visual-product-slop-audit | Quality gate to catch generic AI-generated UI patterns |
motion-design | Animation timing, easing, and micro-interaction standards |
design-audit | Comprehensive UI quality audit with severity ratings |
interaction-design-patterns | Tidwell behaviour/navigation/layout/action patterns |
Usage: This skill provides the visual system (colour, type, spacing, components). Platform skills provide implementation code. Load both. Font, pairing, and type-scale rules trace to doctrine/references/* — do not restate them here.
Use HSB (Hue 0-360, Saturation 0-100, Brightness 0-100) for all design decisions. HSB maps to how humans perceive colour: pick a hue, adjust richness with saturation, adjust lightness with brightness. Convert to HEX/RGB only at implementation time.
For perceptually uniform colour manipulation, consider OKLCH (oklch(L C H)) instead of HSB. OKLCH ensures equal perceived brightness across hues (unlike HSB where blue looks darker than yellow at the same B value). Use OKLCH for generating palettes, ensuring consistent visual weight. Convert final values to HEX/RGB for implementation. Tint all neutrals — add 2-5% of brand hue to greys; never use pure grey.
Design the interface without colour first. Focus on spacing, size, layout, and contrast. Colour is added last, purposefully.
Choose a single distinctive brand colour. Apply it only to interactive elements (buttons, text links, active states). Do not apply brand colour to headings or non-interactive elements -- users will mistake them for links.
All you need: 1 brand colour + 5 tonal variations sharing the same hue.
| Token | HSB | Purpose | Contrast Req. |
|---|---|---|---|
| Primary | 230, 70, 80 | Buttons, links, interactive | >= 4.5:1 vs Lightest |
| Darkest | 230, 60, 20 | Heading text | >= 4.5:1 vs Lightest |
| Dark | 230, 30, 45 | Secondary/body text | >= 4.5:1 vs Lightest |
| Medium | 230, 20, 66 | Non-decorative borders, icons | >= 3:1 vs Lightest |
| Light | 230, 10, 95 | Decorative borders, dividers | Decorative -- no req. |
| Lightest | 230, 2, 98 | Alternate backgrounds | Base surface |
| White | 0, 0, 100 | Main background | Base surface |
| Token | HSB | Purpose | Contrast Req. |
|---|---|---|---|
| Primary | 166, 50, 90 | Buttons, links, interactive | >= 4.5:1 vs Dark |
| White | 0, 0, 100 | Heading text | >= 4.5:1 vs Dark |
| Lightest | 166, 4, 80 | Secondary/body text | >= 4.5:1 vs Dark |
| Light | 166, 6, 65 | Non-decorative borders | >= 3:1 vs Dark |
| Medium | 166, 8, 33 | Decorative borders | Decorative -- no req. |
| Dark | 166, 10, 23 | Alternate backgrounds | Base surface |
| Darkest | 166, 12, 15 | Main background | Base surface |
| Colour | Meaning | Usage |
|---|---|---|
| Red | Error | Negative messages, failures, urgent alerts |
| Amber | Warning | Caution, risky actions |
| Green | Success | Positive messages, completed actions |
| Blue | Info | Neutral informational messages |
| Element | Min. Ratio |
|---|---|
| Small text (<= 18px regular, <= 14px bold) | 4.5:1 |
| Large text (> 18px bold or > 24px regular) | 3:1 |
| UI components (fields, radios, checkboxes) | 3:1 |
| Decorative-only elements | No requirement |
APCA (design aid only; not a W3C method): 90 preferred body, 75 minimum body, 60 other text, 45 large text + UI, 30 placeholders, 15 non-text.
Extended guidance for practical-ui-design was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. Typography Rules3. Layout and Spacing4. Copywriting for UI5. Buttons6. Forms (Quick Reference)7. Component Patterns (Kuleszo)8. Dark Mode Rules9. Anti-Patterns10. Design ChecklistWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-design, visual-system, design-tokens, color-palette, typography, accessibility
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job