frontend-design
Skill29 starsChanged 7 months agoMITView on GitHub
React-oriented UI/UX design principles for frontend development. Covers React patterns, component architecture, hooks, layout, typography, color, accessibility, and responsive design. Use when building React UI, reviewing frontend code, designing components, or making visual/interaction decisions. Assumes React with a meta-framework (TanStack Start, Next.js, Remix, etc.).
189 other projects use a version of this.
Adopted by
Most recently taken up by
- tsukhani/jclawtheir own version, first seen Oct 5, 2026
- kopp0510/claude-ddtheir own version, first seen Oct 5, 2026
- tam159/next-roletheir own version, first seen Oct 4, 2026
- edenfunf/reelmimictheir own version, first seen Oct 4, 2026
- L-X-T/ng-agentic-skillstheir own version, first seen Oct 4, 2026
- jakubsuplicki/codumenttheir own version, first seen Oct 4, 2026
Used with
Projects with it also use file-reading, arrange and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SeifBenayedSkillfile-reading
Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.
Also in 7 projects that use this
nikafastovets-langSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.
Also in 6 projects that use this
mm-mazharSkillcache-components
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).
Also in 6 projects that use this
SeifBenayedSkillpdf-reading
Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.
Also in 6 projects that use this
JokerRunSkillcompound-engineering
Compound Engineering workflow for AI-assisted development. Use when planning features, executing work, reviewing code, or codifying learnings. Follows the Plan → Work → Review → Compound loop where each unit of engineering makes subsequent work easier. Triggers on: plan this feature, implement this, review this code, compound learnings, create implementation plan, systematic development.
Also in 5 projects that use this
mtctSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 10 projects that use this
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 189
- anthropics/skills★ 199ksame name
- bytedance/deer-flow★ 83ksame name
- anthropics/claude-plugins-official★ 37ksame name
- anbeime/skill★ 7.5ksame name
- steipete/agent-scripts★ 7.2ksame name
- vercel-labs/open-agents★ 5.8ksame name
- Galaxy-Dawn/claude-scholar★ 5.7ksame name
- cloudflare/vibesdk★ 5.4ksame name
- microsoft/agent-academy★ 3.5ksame name
- jjyaoao/HelloAgents★ 3.2ksame name
179 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- broSkill
- build-skillSkill
- cloudflareSkill
- cold-emailSkill
- composio-cliSkill
- copywritingSkill
- diff-walkthroughSkill
- emailsSkill
- grill-meSkill
- grill-with-docsSkill
- howSkill
- improve-codebase-architectureSkill
- index-knowledgeSkill
- install-skillSkill
- jira-toolSkill
- librarianSkill
- prospectingSkill
- repo-walkthroughSkill
- spec-plannerSkill
- teachSkill
- timesharingSkill
- tmuxSkill
- unslopSkill
- using-git-worktreesSkill
- whySkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 180 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Use a consistent base unit (4px or 8px).
- Distinctive: line 68
When reviewing frontend code or designs:
“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Frontend Design
UI/UX principles for building well-designed, accessible, maintainable React interfaces.
Context: This skill assumes React as the UI layer, typically with a meta-framework (TanStack Start, Next.js, Remix, etc.) and a styling approach (Tailwind, CSS Modules, etc.). Raw HTML/CSS guidance is provided only where it underpins React patterns.
Core Principles
- Clarity over cleverness — Users should understand the interface immediately
- Consistency over novelty — Reuse established patterns; deviate only with reason
- Accessibility is not optional — Design for all users from the start
- Content drives layout — Structure follows information hierarchy, not decoration
- Composition over configuration — Prefer
childrenand compound components over prop sprawl - Server-first data, client-first interaction — Load data on the server; keep interactivity on the client
Decision Tree
What are you working on?
├─ React component design / hooks / state → See react.md
├─ Reusable UI component patterns → See components.md
├─ Page layout / spacing → See layout.md
├─ Text styling / hierarchy → See typography.md
├─ Colors / theming / contrast → See color.md
├─ Keyboard / screen reader / a11y → See accessibility.md
├─ Multi-device / breakpoints → See responsive.md
└─ Multiple concerns → Start with react.md, layer in othersQuick Reference
Visual Hierarchy Checklist
| Level | Purpose | Techniques |
| Primary | Single main action/content | Size, weight, color, position |
| Secondary | Supporting actions/content | Reduced size/weight, muted color |
| Tertiary | Contextual/metadata | Smallest size, lightest weight |
Spacing System
Use a consistent base unit (4px or 8px). Apply multiples:
| Token | Value (8px base) | Use |
xs | 4px | Inline elements, icon gaps |
sm | 8px | Tight grouping |
md | 16px | Default element spacing |
lg | 24px | Section padding |
xl | 32px | Major section separation |
2xl | 48px | Page-level separation |
The 60-30-10 Rule
| Proportion | Role | Example |
| 60% | Dominant / background | Page background, card surfaces |
| 30% | Secondary / supporting | Section backgrounds, borders |
| 10% | Accent / emphasis | CTAs, active states, highlights |
Design Review Checklist
When reviewing frontend code or designs:
- Hierarchy: Is the most important content/action visually dominant?
- Consistency: Do similar elements look and behave the same?
- Spacing: Is spacing systematic (not arbitrary pixel values)?
- Color contrast: Do text/background combos meet WCAG AA (4.5:1)?
- Interactive states: Do clickable elements have hover, focus, active, disabled states?
- Responsive: Does the layout work at mobile, tablet, and desktop widths?
- Keyboard: Can all interactive elements be reached and operated via keyboard?
- Loading states: Are empty/loading/error states designed, not just happy path?
- Touch targets: Are tap targets at least 44x44px on mobile?
- Content overflow: Does the layout handle long text, missing images, edge cases?
Common Anti-Patterns
| Anti-Pattern | Problem | Fix |
| Magic numbers | margin: 13px breaks system | Use spacing tokens |
| Color hardcoding | #3b82f6 everywhere | Use semantic color tokens |
| Hover-only affordance | Hidden from keyboard/touch users | Always show affordance; enhance on hover |
| Fixed dimensions | Breaks on different content/screens | Use min/max + fluid sizing |
| Z-index wars | Escalating z-index: 9999 | Use a layering system (base, dropdown, modal, toast) |
| Truncation without access | text-overflow: ellipsis hides content | Add tooltip or expand mechanism |
Interaction Principles
- Feedback is immediate — Every user action gets a visible response within 100ms
- State is visible — Users can always tell what state the system is in
- Actions are reversible — Destructive actions require confirmation; prefer undo over "are you sure?"
- Errors are recoverable — Show what went wrong and how to fix it
- Transitions are meaningful — Animation communicates change, not decoration
React Review Checklist (Addendum)
On top of the design review checklist above, verify for React code:
- Component boundaries: Is each component focused on one concern?
- Props: Are props minimal and well-typed? No boolean prop sprawl?
- Composition: Using
children/render props instead of mega-config objects? - Effects: Are effects necessary, or can derived state / event handlers replace them?
- Keys: Are list keys stable and meaningful (not array index)?
- Memoization: Is
useMemo/useCallbackused only where measured necessary? - Server vs client: Is data fetching on the server? Is client JS minimal?
- Error boundaries: Do async/fallible sections have error boundaries?
- Suspense: Are loading states handled with Suspense where appropriate?
Reading Order
| Task | Files to Read |
| React component architecture | react.md |
| Building a page layout | layout.md |
| Designing a reusable UI component | react.md + components.md |
| Styling text content | typography.md |
| Choosing / applying colors | color.md |
| Making UI accessible | accessibility.md |
| Supporting multiple screen sizes | responsive.md |
| Full design review | This file + all references |
In This Reference
| File | Purpose |
| react.md | React patterns, hooks, composition, state, meta-frameworks |
| components.md | Common UI component design patterns |
| layout.md | Spatial organization, grid, flexbox, spacing |
| typography.md | Type scale, font selection, readability |
| color.md | Color systems, contrast, theming, dark mode |
| accessibility.md | WCAG compliance, keyboard, screen readers |
| responsive.md | Breakpoints, mobile-first, fluid design |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

