role-frontend:css-architecture

Guide CSS architecture choices across BEM, ITCSS, and modern styling solutions.

14|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rnavarych/alpha-engineer --skill role-frontend-css-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-frontend:css-architecture
Source: https://github.com/rnavarych/alpha-engineer/tree/main/plugins/roles/role-frontend/skills/css-architecture
Command: npx skills add https://github.com/rnavarych/alpha-engineer --skill role-frontend-css-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers choose and implement effective CSS architectures, manage styling complexity, and leverage modern CSS features for robust and maintainable user interfaces.

Core Features & Use Cases

  • Methodology Guidance: Provides insights into BEM, ITCSS, CUBE CSS, and more.
  • Styling Solutions: Covers CSS Modules, styled-components, Emotion, Vanilla Extract, and Panda CSS.
  • Modern CSS: Explains container queries, nesting, :has(), @layer, subgrid, and modern color functions.
  • Use Case: When starting a new project, use this Skill to decide between BEM and CSS Modules for your component styling strategy and to configure Tailwind CSS with custom design tokens.

Quick Start

Use the role-frontend:css-architecture skill to compare BEM and CSS Modules for a new project.

Frequently Asked Questions about role-frontend:css-architecture

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

FAQPage Schema
What is the best way to choose a CSS architecture methodology like BEM or ITCSS for a new project?

Choosing a CSS architecture like BEM or ITCSS depends on project scale and team preferences. This Skill compares these methodologies, helping you evaluate naming conventions and structure against modern alternatives like CUBE CSS to manage styling complexity effectively.

How do CSS Modules compare to CSS-in-JS solutions like styled-components and Emotion?

CSS Modules offer scoped styles via build tools, while styled-components and Emotion leverage CSS-in-JS for dynamic styling. This Skill covers these approaches alongside Vanilla Extract and Panda CSS, outlining their distinct trade-offs in maintainability and performance.

How do I use modern CSS features like container queries, nesting, and @layer for responsive design?

Modern CSS features like container queries, nesting, and @layer enable robust responsive design without heavy preprocessing. This Skill explains how to implement these native capabilities, alongside :has() and subgrid, to optimize frontend styling performance.

Does this guidance cover configuring Tailwind CSS with custom design tokens?

Yes, the guidance covers configuring Tailwind CSS with custom design tokens. It addresses how to integrate Tailwind within your chosen styling strategy, ensuring consistent theming and responsive design across your frontend components.

When should I avoid using CSS-in-Js libraries for frontend styling?

You should avoid CSS-in-JS libraries like Emotion or styled-components when prioritizing critical rendering path performance, as runtime injection adds overhead. This Skill details these constraints and suggests static alternatives like Vanilla Extract or CSS Modules.