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.zipInstalls 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.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
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
useTranslationhook /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-labelor 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| frontend-system (this skill) | 0 | 3mo | No flags | Intermediate |
| web-design-reviewer | 7 | 7mo | No flags | Intermediate |
| baseline-ui | 3 | 6mo | No flags | Intermediate |
| bencium-innovative-ux-designer | 1 | 5mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
web-design-reviewer
github
This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.
baseline-ui
agentset-ai
Enforces an opinionated UI baseline to prevent AI-generated interface slop.
bencium-innovative-ux-designer
bencium
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
theme-system
btriapitsyn
Use when creating or modifying UI components, styling, or visual elements in OpenChamber. All UI colors must use theme tokens - never hardcoded values or Tailwind color classes.
ui-skills
Ktasl
Apply strict, opinionated UI constraints to any UI work (React/Tailwind) in this conversation.
userinterface-wiki
raphaelsalaja
UI/UX best practices for web interfaces. Use when reviewing animations, CSS, audio, typography, UX patterns, prefetching, or icon implementations. Covers 11 categories from animation principles to typography. Outputs file:line findings.