AgentSkillsCN

ux

在Papyro应用中,结合Phlex与Tailwind CSS,打造优质的UX/UI设计模式。在生成视图、设计布局,或实现UI/UX功能时,可选用此方法。遵循编辑导向、平和舒缓、内容优先的设计原则。内容涵盖视图生成、排版布局、版式设计,以及无障碍访问的考量。

SKILL.md
--- frontmatter
name: ux
description: UX/UI patterns for Papyro with Phlex and Tailwind CSS. Use when generating views, designing layouts, or implementing UI/UX features. Follows editorial, calm, content-first design principles. Covers view generation, typography, layout patterns, and accessibility.

UX/UI (Papyro)

Dependencies

  • phlex
  • phlex-rails
  • tailwindcss-rails

Source of Truth

Use UI_UX_BRIEF.md as the design brief.

Guidance (Examples)

  • Generate views after the brief is filled
  • Keep layouts editorial, calm, and content-first
  • Prefer whitespace and typography over decorative UI
  • Use shadcn/ui-style components via app/components/ui/
  • Ensure copy uses i18n keys (see checklist)

View Generation Checklist (Example)

  • Hero: clear headline + short supporting line
  • Primary CTA: single, focused action
  • Typography: consistent type scale
  • Grid: simple, readable structure
  • Components: use Components::Ui::*
  • Accessibility: proper headings, labels, and focus states

See Frontend rules and I18n rules.

Required Inputs

  • Brand adjectives + mission
  • Type scale + colors
  • Page archetypes
  • 2–3 reference links
  • Sample copy