css-to-class
CommunityCollapse utility classes into one semantic class.
Software Engineering#accessibility#refactoring#css#utility-first#tailwind-compatible#selector resolution#markup transformation
Authorshawn-sandy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
css-to-class eliminates the maintenance burden of “utility soup” by turning long class attribute strings into a single semantic CSS class that’s easier to read, reuse, and refactor.
Core Features & Use Cases
- Class list to single semantic selector: Converts an element’s multi-class value into one named class under consistent kebab-case rules.
- Resolves declarations from your project CSS: Greps discovered project
.cssfiles to inline the actual property/value declarations for each utility token. - Preserves at-rule context: Keeps declarations that originate inside
@media,@supports, or@layerin nested form so responsive/feature behavior remains correct. - Handles unresolved tokens safely: Emits placeholders for any tokens that can’t be resolved from existing CSS so you can fill gaps manually.
Quick Start
Extract the utility declarations from the provided HTML element into a new single semantic class in your project CSS, using css-to-class with your element’s class attribute as input.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: css-to-class Download link: https://github.com/shawn-sandy/agentic-acss-plugins/archive/main.zip#css-to-class Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.