frontend-standards

Enforce frontend standards for HTML, CSS/SCSS, and JavaScript/TypeScript components.

Updated May 20, 2025
One-click install
npx skills add https://github.com/flext-sh/flext --skill frontend-standards-flext-sh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-standards
Source: https://github.com/flext-sh/flext/tree/main/.claude/skills/frontend-standards
Command: npx skills add https://github.com/flext-sh/flext --skill frontend-standards-flext-sh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill ensures frontend code adheres to best practices for accessibility, component design, styling, and responsiveness, preventing common UI bugs and improving user experience.

Core Features & Use Cases

  • Accessibility Compliance: Enforces semantic HTML, keyboard navigation, and color contrast ratios (WCAG AA).
  • Component Best Practices: Guides the creation of single-responsibility components with clear prop interfaces.
  • Styling & Responsiveness: Promotes design token usage, avoids !important, and implements mobile-first responsive design.
  • Use Case: When developing a new user profile card, this Skill will guide you to use semantic HTML, ensure it's navigable with a keyboard, and apply styles using predefined design tokens for a consistent look across devices.

Quick Start

Apply the frontend-standards skill to review the accessibility and styling of the new user profile component.

Frequently Asked Questions about frontend-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my HTML components for WCAG AA accessibility compliance?

To check WCAG AA accessibility compliance, validate that HTML components use semantic elements, support full keyboard navigation, and maintain sufficient color contrast ratios. This prevents common UI bugs and ensures usable interfaces.

What is the best way to structure CSS for mobile-first responsive design?

Mobile-first responsive design is structured by applying base CSS styles for small screens first, then scaling up with media queries. It uses predefined design tokens and avoids `!important` to ensure maintainable layouts across devices.

How do I create single-responsibility components with clear prop interfaces?

Creating single-responsibility components involves designing UI elements that handle only one specific task, exposing clear and minimal prop interfaces. This approach improves reusability and prevents styling or logic conflicts within your frontend architecture.

Does this frontend standards skill work with JavaScript and TypeScript components?

Yes, the frontend standards skill works with JavaScript and TypeScript components, as well as HTML templates and SCSS files. It enforces styling methodology and accessibility guidelines across these file types within the control panel directory.

Why should I avoid using !important in my CSS methodology?

You should avoid `!important` in CSS methodology because it breaks the natural cascade, making styles difficult to override and maintain. Using design tokens ensures a consistent look and predictable styling behavior across the project.

When do I need to use semantic HTML for UI component design?

You need to use semantic HTML for UI component design whenever building or modifying templates to ensure accessibility. It provides proper meaning to screen readers and enables correct keyboard navigation for interactive elements.