Use this skill when turning a Paper canvas/artboard into React/CSS code via ExonUI Grid's paper pack (or pairing with /exonui:paper-to-code).
Workflow
- Inspect active state & context: · Call
grid_statusto confirm thepaperpack is reachable (desktop port check vianpx exonui doctor) and load repo tokens/DESIGN.mdviaexonui-context. - Discover and inspect the target artboard progressively: · Use
grid_search({ pack: "paper", query: "selection info tree screenshot jsx tokens" })andgrid_describebefore calling Paper tools viagrid_call. · Typical read flow onpaper: get_basic_info&get_selection(identify target page/node IDs)get_tree_summary/get_node_info(understand layout hierarchy cleanly)get_tokens&get_computed_styles(extract colour, typography, gap, radius tokens)get_jsx&get_screenshot(inspect visual intent and layout details) · Note:writetools on Paper (e.g.write_html,create_artboard,update_styles,delete_nodes) are policy-gated (ask/block)—never mutate canvas nodes without explicit user approval.- Translate into project tokens & components: · Map extracted
get_tokensand computed styles to existing CSS variables/Tailwind theme tokens instead of raw inline styles. · Checklibrary_docs,component_get, andasset_searchfor matching components, fonts, and SVGs (design_utils({ action: "svg_optimise" })for custom SVGs). - Add production resilience: · Convert fixed desktop artboard widths into fluid responsive grids/flex containers that hold cleanly down to
360px, with keyboard navigation and dark mode support. - Visual parity & cleanup: · Re-verify contrast (
design_utils({ action: "contrast" })) and record Paper node IDs inrelay_checkpointdesignRefswhen handing off.
Done when
- Code reflects the Paper artboard's typography, spacing, and visual hierarchy using repo design tokens and responsive layout rules.
- Contrast, dark mode, keyboard reachability, and edge states are verified.