FR

frontend-system

Expert frontend design system assistant for component styling, accessibility, and localization.

Install

mkdir -p .claude/skills/frontend-system && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9749" && unzip -o skill.zip -d .claude/skills/frontend-system && rm skill.zip

Installs to .claude/skills/frontend-system

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

UI/UX expert. Use for creating components, styling (Tailwind), accessibility, and translations (I18n). Trigger when: create a component, change appearance, add a chart, translate, stwórz komponent, zmień wygląd, dodaj wykres, przetłumacz.
238 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Create UI components
  • Apply Tailwind styling
  • Ensure accessibility
  • Translate UI text

How it works

It provides guidance on Tailwind styling, semantic HTML, and localization best practices.

Inputs & outputs

You give it
UI component requirement
You get back
Styled and accessible component

When to use frontend-system

  • Creating new UI components
  • Optimizing accessibility
  • Translating UI text
  • Applying consistent styling

About this skill

🎨 Frontend & Design System

1. Internationalization (I18n)

[!CAUTION] ZERO HARDCODED STRINGS! Every user-visible text must use the useTranslation hook / t() (or your project's i18n equivalent).

Required languages: define the project's locale list in your i18n config (e.g. pl.json, en.json, ...).

Key structure:

{
  "component.action.state": "Text"
}

3. Styling

  • Framework: Tailwind CSS
  • Animations: Framer Motion (for UI interactions) or CSS Transitions
  • Responsiveness: Mobile-first (sm:, md:, lg:)
  • Dark mode: Supported via dark: classes

4. SEO

New public pages MUST include the <SEO /> component:

<SEO 
  title="Page title" 
  description="Description for search engines" 
/>

5. Accessibility (a11y)

  • Use semantic HTML (<nav>, <main>, <article>)
  • All interactive elements must have aria-label or visible text
  • Colors: minimum 4.5:1 contrast ratio (WCAG AA)

6. Pitfalls (Lessons Learned)

P1. Runtime fetch of static files

Mistake: Files fetched via fetch() at runtime (not imported) reside outside public/ → they don't end up in dist/. Fix: Runtime files MUST be in public/. Only public/ is copied to the build output.

P2. Config defensiveness

Mistake: Missing field in a JSON config (e.g., xRange) → TypeError crash in the renderer. Fix: Always use optional chaining with defaults: config?.xRange ?? [-5, 5].

P3. useIsMobile — matchMedia vs resize

Mistake: addEventListener('resize') + innerWidth — less performant and off-by-one at the breakpoint. Fix: matchMedia('(max-width: ${breakpoint - 1}px)') — performant, no overlap.

P4. PWA cache — large chunks

Mistake: Default workbox maximumFileSizeToCacheInBytes limit (2MB) silently skips large chunks. Fix: Increase the limit when the bundle grows. Without this, offline mode loses critical resources.

P5. Ratings / nullable values: null vs 0

Mistake: Missing rating mapped as ?? 0 → renders 0 stars (grey), as if someone rated it 0. Fix: Use ?? undefined — triggers the "no rating" state (yellow default).

When not to use it

  • For non-frontend projects
  • When hardcoded strings are required

Prerequisites

Tailwind CSSi18n library

Limitations

  • Zero hardcoded strings
  • Minimum 4.5:1 contrast ratio

How it compares

It enforces a strict design system and accessibility-first approach.

Compared to similar skills

frontend-system side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
frontend-system (this skill)03moNo flagsIntermediate
web-design-reviewer77moNo flagsIntermediate
baseline-ui36moNo flagsIntermediate
bencium-innovative-ux-designer15moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry