Rich UI

fikrifirmanfVerified creator@fikrifirmanf2on fikrifirmanf/craft-skillsSkill

Verified creator: @fikrifirmanf signed in with the GitHub account that owns this repository. It is not a safety check.

Give an AI agent a design workflow for typography, color, layout, tokens, and visual review.

Skill installation command

Example for Codex. The repository also documents Claude Code and custom destinations.

git clone https://github.com/fikrifirmanf/craft-skills.git
cd craft-skills
./install.sh --skill rich-ui --target codex

Use this in your own environment. Copying text here does not run it.

Made forWeb design
What you needAn AI coding agent; the skill installer requires Bash and Python 3.8 or newer.
Project links
Project licenseMIT
Sources checked2026-10-29

How to use it

  1. Open the skill documentation and check its requirements.
  2. Copy the installation command for your preferred agent.
  3. Ask your agent to use the skill on a specific task and review the result.

SKILL.md

The instructions your assistant reads, from fikrifirmanf/craft-skills/skills/rich-ui/SKILL.md. Its authors wrote it, so read it before you install.

name: rich-ui
description: Design, build, or review web and native interfaces with deliberate hierarchy, typography, materials, and motion. Use for screens, redesigns, design systems, and gesture-driven interactions such as draggable sheets, swipes, and interruptible transitions. Preserve established product styles and platform conventions.

Rich UI

Make visual decisions that fit the product, carry them into code, and inspect the rendered result. Preserve the user's scope and existing design language.

Choose the smallest useful workflow

RequestWorkflow
Small visual fix or component adjustmentRead the affected component and existing tokens. Make the change and inspect the affected states. Read a reference only when the change calls for its guidance.
Gesture or transition that people can interruptPrototype the interaction in the affected component. Read the direct manipulation reference and exercise release, reversal, and alternate input on the target.
New screen in an established productReuse its theme and components. Add only missing tokens; update an existing design.md only when decisions change. If useful, record new decisions briefly in the project's existing documentation.
New product, design system, or substantial redesignChoose a direction, write a concise design.md, implement, render, and verify as below.
Review onlyInspect renders and relevant source. Report actionable findings ranked by impact, and scan with the heuristic pass in references/guardrails.md. Create files or change code only when requested.

Full design workflow

  1. Understand the context. Inspect the target platform, existing theme, relevant components, audience, and primary task. Follow provided references. Choose reasonable defaults when the brief leaves room; state only consequential assumptions.
  2. Choose a direction. Define the visual hierarchy, density, typography, palette, and one recognizable design decision. It might be a product demonstration, distinctive type, information-rich chart, or composition. Familiar conventions are useful when they help users. Do not invent interactions or add decoration just to look different.
  3. Record decisions once. For a new system, use assets/design.md.template and references/design-md-format.md. Keep prose brief; document tokens and decisions that affect implementation. Omit unused effects and motion tokens. Read assets/examples/harbor-ledger.design.md only if the format remains unclear. Existing native theme files remain the implementation source of truth; avoid maintaining duplicate token inventories for minor changes.
  4. Implement the requested surface. Map reusable decisions into native theme tokens, then reference them in components. Keep primary, secondary, and utility actions visually distinct; variants may share a component. Build the relevant loading, empty, error, disabled, focus, and overflow states. Use realistic content without inventing testimonials, customer counts, or product claims. Compute displayed metrics from their underlying data.
  5. Render and inspect. Check the affected screen at a narrow and wide supported size, and supported themes when affected. Look for hierarchy, alignment, readable density, overflow, and consistency with the chosen direction. For a small fix, inspect the affected breakpoint and state. If rendering is unavailable, report that limitation and what remains unverified.
  6. Verify and fix concrete issues. Use the checks below when applicable. Recheck after changes that could invalidate a result; avoid rerunning unchanged checks. Stop when requested behavior works, visible defects are addressed, and relevant checks succeed. Report what was inspected and any remaining limitations.

Design decisions that matter

  • Give the screen a clear first focus and a readable path to its primary action. Use accent colors for defined roles; semantic and data colors may need separate roles.
  • Choose type for the product and language. One family can be enough. Set a clear scale, readable line lengths, and appropriate tracking; allow native typography conventions.
  • Reuse spacing and radius roles. Choose density by task. Equal grids suit equal peers; asymmetry should serve content. In a three-column grid with one two-column card, use five cards, or make the final card span two columns when there are four; never use six.
  • Add imagery, charts, texture, or motion when they explain the product or establish its identity. A text-led hero or quiet form can be the right choice. There is no quota of visual treatments.
  • Give immediate press feedback and commit through the control's normal activation. Keep controls responsive during transitions. When a surface opens from a trigger or edge, make its origin and return path clear.
  • Keep depth and effects coherent. Use meaningful grouping and alignment before adding shadows or decoration.
  • On native Apple targets, start with system controls, semantic styles, and the platform's navigation and presentation patterns. Match the target and deployment version before choosing APIs or borrowing conventions across devices.
  • Tokenize reusable visual decisions. Allow local geometry, intrinsic dimensions, and calculated layouts where appropriate; do not create tokens for every incidental number. In utility frameworks, prefer theme-backed classes for reusable colors, spacing, type, and radii.
  • Tappable items (icon buttons, tabs, checkboxes) are at least 44px in their hit area, even in a small restyle. An empty state shows only the message and the one fill-it action: hide the tab bar, filters, sort controls and table header above it, because they do nothing until content exists. Hide them (the hidden attribute or a state class) rather than deleting the markup.
  • A small empty section inside a busy page (a panel with no linked items yet) gets the same treatment: one line saying what will appear there, plus one action or a pointer to where it is created. A bare "Nothing here yet" is not a designed empty state.
  • In tables and lists, one text column flexes and everything else stays compact. Clamp long titles (text-overflow: ellipsis or -webkit-line-clamp: 2) and keep the full text in a title attribute or expandable detail so one long value cannot set the row height. Right-align numbers with tabular-nums and one decimal format per column.
  • A table that scrolls inside its own container keeps its header row sticky (position: sticky; top: 0 on th with a solid background). Chart legends and series use more than colour: a different line style, marker shape or direct label per series, and a text description of the chart.
  • For a new product, choose the palette from the product's world and say why in one line (a comment or design note). A warm off-white page with one teal or indigo accent is the common default; use it only when it fits, not because it is safe.
  • Use visible keyboard focus, semantic controls, accessible labels, and status cues beyond color. Normal text needs 4.5:1 contrast; large text and meaningful non-text UI need 3:1. Support reduced motion and platform font scaling, including text inside graphics. Use platform hit-target conventions and check required RTL layouts.

Checks and their limits

For a newly created full design.md:

python3 <skill-dir>/scripts/lint_design_md.py path/to/design.md

This checks the full document structure and calls the contrast checker. Errors need correction; stylistic warnings are advisory and do not require changing an intentional design or writing justifications. Run the contrast checker separately only when checking palette changes without the full linter:

python3 <skill-dir>/scripts/check_contrast.py path/to/design.md

Prefer explicit contrast pairings for colors actually used together (see references/design-md-format.md). Without them, the checker infers pairings from token names. It cannot prove accessibility of a render, gradients, images, or unlisted pairings.

For token drift in changed source, exclude token definitions and use strict mode to catch recognized literals even when they match token values:

python3 <skill-dir>/scripts/find_offscale.py path/to/design.md src/ --strict-literals --exclude '*/tokens.css'

Without --strict-literals, this checks value membership only. It is a regex scan, not proof of token usage; review geometry exceptions and unsupported syntax manually. Scope scans to affected source. Run the project's relevant build and behavior checks too.

Read references only when needed

Do not load the reference collection upfront. Select the file that answers the current design question; skip references when the existing system already answers it.

QuestionReference
How should a new full design.md be structured?references/design-md-format.md and assets/design.md.template
Need possible visual directions?references/style-families.md
Does a major new screen need a stronger visual explanation?references/richness.md
Does the screen feel flat, noisy, or without a clear focus?references/hierarchy.md
Need palette, type, layout, or component details?The relevant file: color.md, typography.md, layout-spacing.md, or components-states.md under references/
Need effects, motion, platform mapping, or design guardrails?The relevant file: effects-motion.md, platforms.md, or guardrails.md under references/
Building or reviewing drag, swipe, snap, or interruptible motion?Direct manipulation
Building or reviewing a native Apple surface, including macOS workflows?Native Apple UI
Need historical numeric ranges?references/token-ranges.md; optional heuristics, not requirements

View on GitHub

Example request

Use rich-ui to design a resource directory. Propose typography, color roles, layout, and interaction states. Save exact tokens in design.md, implement the chosen direction, and inspect narrow and wide layouts when rendering is available.

Example results

Illustrative example

Example design outline Page: warm ivory #F6F5EF Text: deep ink #20251F Action: forest green #315642 Typography: one readable interface family and a compact technical face Next steps: define reusable tokens, build the page, then inspect its rendered layouts.

Illustrative response outline, not a recorded run.

Illustrative examples show a possible response format. They are not recorded runs or verified results. Actual responses will vary.

Security checks

Automated checks, last run Nov 9, 2026. They can miss problems and do not guarantee a listing is safe. Read the source and what you are asked to run before you use it.

3 of 3 checks passed
  • PassedSetup commands and descriptionLayer 1

    The install commands and description match none of the risky patterns we look for.

    Source: AIWantsThis screening rules

  • PassedSkill instructions (SKILL.md)Layer 1

    The skill file shows no hidden text, no instruction-override phrases and no risky commands.

    Source: AIWantsThis screening rules

  • PassedSource repositoryLayer 2

    The repository is public, not archived and has recent activity.

    Evidence (3)
    Last push
    2026-10-30
    Archived
    no
    License
    MIT

    Source: GitHub