css

Write modern CSS and CSS Modules with nesting, :has(), and media queries.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kizzz/eleon-client --skill css-kizzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: css
Source: https://github.com/kizzz/eleon-client/tree/main/.agents/skills/carlos-algms-css
Command: npx skills add https://github.com/kizzz/eleon-client --skill css-kizzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps writers create CSS and CSS Modules with modern features for maintainable, scalable styling across components.

Core Features & Use Cases

  • Modern features: nesting, :has(), and nested @media using the & selector to compose styles efficiently.
  • CSS Modules guidance: camelCase class names, no root-level tag selectors, no nested class/id selectors, and proper descendant and pseudo-class nesting.
  • Related skills: css-scss-standards (BEM, SCSS, Stylelint, theme.json); tailwind-3 (Tailwind utility CSS); angular-ui-patterns (UI/styling patterns).

Quick Start

Create a CSS module with camelCase class names and apply nesting for states and responsive rules.

Frequently Asked Questions about css

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

FAQPage Schema
How do I write modern CSS with nesting and responsive media queries?

Modern CSS supports native nesting and media queries using the & selector to compose styles efficiently. You can apply nested @media rules and pseudo-classes directly within parent blocks to maintain scalable component styles.

What are the best practices for structuring CSS Modules in web projects?

CSS Modules best practices require camelCase class names and prohibit root-level tag selectors or nested class/id selectors. Proper descendant and pseudo-class nesting keeps component styles maintainable and scoped.

Can I use the :has() pseudo-class for component styling?

Yes, the :has() pseudo-class is supported for modern component styling. It enables parent selection based on child states, allowing you to compose dynamic styles efficiently without extra JavaScript.

Why should I avoid root-level tag selectors in CSS Modules?

Root-level tag selectors in CSS Modules break style encapsulation and cause global scope leakage. Avoiding them ensures component styles remain isolated, scalable, and maintainable across the entire project.

Does this CSS approach work with utility frameworks like Tailwind?

This approach focuses on scoped CSS Modules rather than utility classes. Related skills like tailwind-3 cover utility-based styling, while this skill targets maintainable component-level styles with modern CSS features.

What is the correct way to nest pseudo-classes in CSS Modules?

Nest pseudo-classes in CSS Modules using the & selector within the parent class block. This ensures styles remain scoped and prevents the need for nested class or id selectors that violate module guidelines.