Logo di Frontend Design

Frontend Design

Community
roerohan
frontend-design

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.).

Panoramica

Autoreroerohan
Repositoryskills
Nome della skillfrontend-design
Stelle
29
Fork
1
File inclusi
7
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 7 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da roerohan su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Frontend Design in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/roerohan/skills/tree/main/frontend-design
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/roerohan/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/frontend-design .claude/skills/frontend-design
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Frontend Design in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Frontend Design non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Frontend Design non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

  1. Clarity over cleverness — Users should understand the interface immediately
  2. Consistency over novelty — Reuse established patterns; deviate only with reason
  3. Accessibility is not optional — Design for all users from the start
  4. Content drives layout — Structure follows information hierarchy, not decoration
  5. Composition over configuration — Prefer children and compound components over prop sprawl
  6. 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 others

Quick Reference

Visual Hierarchy Checklist

LevelPurposeTechniques
PrimarySingle main action/contentSize, weight, color, position
SecondarySupporting actions/contentReduced size/weight, muted color
TertiaryContextual/metadataSmallest size, lightest weight

Spacing System

Use a consistent base unit (4px or 8px). Apply multiples:

TokenValue (8px base)Use
xs4pxInline elements, icon gaps
sm8pxTight grouping
md16pxDefault element spacing
lg24pxSection padding
xl32pxMajor section separation
2xl48pxPage-level separation

The 60-30-10 Rule

ProportionRoleExample
60%Dominant / backgroundPage background, card surfaces
30%Secondary / supportingSection backgrounds, borders
10%Accent / emphasisCTAs, 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-PatternProblemFix
Magic numbersmargin: 13px breaks systemUse spacing tokens
Color hardcoding#3b82f6 everywhereUse semantic color tokens
Hover-only affordanceHidden from keyboard/touch usersAlways show affordance; enhance on hover
Fixed dimensionsBreaks on different content/screensUse min/max + fluid sizing
Z-index warsEscalating z-index: 9999Use a layering system (base, dropdown, modal, toast)
Truncation without accesstext-overflow: ellipsis hides contentAdd tooltip or expand mechanism

Interaction Principles

  1. Feedback is immediate — Every user action gets a visible response within 100ms
  2. State is visible — Users can always tell what state the system is in
  3. Actions are reversible — Destructive actions require confirmation; prefer undo over "are you sure?"
  4. Errors are recoverable — Show what went wrong and how to fix it
  5. 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/useCallback used 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

TaskFiles to Read
React component architecturereact.md
Building a page layoutlayout.md
Designing a reusable UI componentreact.md + components.md
Styling text contenttypography.md
Choosing / applying colorscolor.md
Making UI accessibleaccessibility.md
Supporting multiple screen sizesresponsive.md
Full design reviewThis file + all references

In This Reference

FilePurpose
react.mdReact patterns, hooks, composition, state, meta-frameworks
components.mdCommon UI component design patterns
layout.mdSpatial organization, grid, flexbox, spacing
typography.mdType scale, font selection, readability
color.mdColor systems, contrast, theming, dark mode
accessibility.mdWCAG compliance, keyboard, screen readers
responsive.mdBreakpoints, mobile-first, fluid design

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Frontend Design?

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.).

Perché usare Frontend Design su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Frontend Design è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Frontend Design in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/roerohan/skills/tree/main/frontend-design. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Frontend Design?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Frontend Design?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Frontend Design: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Frontend Design è gratuita?

Sì. È pubblicata su GitHub da roerohan con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇