Loading...
Loading...
Use when the developer wants to convert an inline style attribute, JSX style object, or <style> block into a named CSS class appended to the project stylesheet. Replaces hard-coded colors, units, and values with CSS variables — reusing an existing variable when one matches and creating a new one when none does.
npx skill4agent add shawn-sandy/agentic-acss-plugins inline-style-to-classstylestyle<style>/css-to-classvar()| Form | Example |
|---|---|
| IDE selection | Select an element or style block in your editor, then run |
| HTML inline attribute | |
| JSX style object | |
| |
<div style="..." class="existing">styleclassstylebackground: red; padding: 1remRead[a-z][a-z0-9-]*name-[a-z0-9-][a-z]AskUserQuestionnameAskUserQuestionbuttonbtnsectionsectionheaderheadernavnavullilistinputinputimgimgalinkdivdivbackgroundbackground-colorcolorbgpaddingpadding-*padmarginmargin-*gapfont-sizefont-weightfont-*typedisplayflexgridlayoutborderborder-*borderwidthheightmin-*max-*sizepositiontopleftz-indexpos-<tag-abbrev>-<role>div-bgbtn-pad--custom-classAskUserQuestion**/node_modules/****/.git/****/dist/****/build/**src/**/*.{css,scss,sass}styles/**/*.{css,scss,sass}app/**/*.{css,scss,sass}*.{css,scss,sass}.css.scss.sass\nglobalsmainindexstylesappbaseAskUserQuestion^\s*(--[A-Za-z0-9_-]+)\s*:\s*([^;\n]+);?;.sass--color-*--clr-*--c-*--space-*--spacing-*--size-*tokens.{css,scss,sass}variables.{css,scss,sass}_variables.{scss,sass}:root { }globalsmainindexstylesappbase:root { }#hex#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})rgb()rgba()hsl()hsla()redwhitepxremem%vhvwchborder-radiusfont-sizebox-shadowz-indexflexblocknoneautocenterurl(...)16px1remvar(...)var(var(--x, calc(...))var(--x, color-mix(...))/* unresolved */--color-1--color-2--color-<role>--space-*widthheightmin-*max-*--size-*--radius-*--font-size-*--text-*--shadow-*--z-*--<property>-<value>display: flex--display-flex.-[a-z0-9-]1.5remspace-1-5rem-2-3<style>style="..."style='...';property: valuestyle={{...}}-/* unresolved: <expr> */<style><style></style>AskUserQuestion[name]AskUserQuestion/* from: <source summary — e.g. "style attr on <div>", "JSX style object", or "<style> block" */property: var(--name, <original-literal>);var(...)/* <property>: unresolved — was JS expression *//* verify unit */.sass--name: value;:root:root { }.sassEditstyle="..."classclass="<name>"data-*idaria-*className<style>/* rule moved to .<name> in <stylesheet path> */<style>Editvalue → --name--name: value