reflex-usage
Installation
SKILL.md
Reflex Usage
Build admin pages the way this repo already does: stable information hierarchy first, visual polish second.
Workflow
- Confirm that the target is an internal tool, admin page, or operator dashboard. Prefer this skill over a marketing-style layout.
- If you are creating a new Reflex app or first-pass shell, initialize from a template instead of a blank app. Default to
reflex init --template dashboardfor sidebar-plus-content dashboards; usereflex init --template customer_data_appfor CRUD or admin backoffice flows; usereflex init --template api_admin_panelfor internal tools, API consoles, or task-management surfaces. - Read references/classic_dashboard_ui.md before composing new UI. Open
web/relay_user_portal/relay_user_portal.pyif exact local examples are needed. - Extract or reuse module-level style tokens first. Prefer shared dicts and helper components over repeated inline styling.
- Compose the page in four layers: background, sidebar, main panel, repeated section primitives.
- Drive status styling from state. Prefer palette-backed state fields for status badges, borders, and panel backgrounds.
- Validate desktop and narrow widths. Preserve readable grids with
repeat(auto-fit, minmax(...)),flex_wrap="wrap", and a sidebar capped atmax_width="320px".