Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By codingjoev0.1.0AGPL-3.0-or-laterIn 1 marketplace
Rewrites CSS into nested rules and :is() selector lists where every target browser supports them. Only widely available features are used by default; newly available ones need a flag.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 marketplace, most starred first
css-nesting, modernize-css, css-upgrade, browser-support, baseline, codemod, stylesheet, modernize ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keeping your CSS up to date with full browser compatibility.
CSSupgrade is safe and meant to be used automatically on your codebase. We recommend integrating it into your development workflow using [pre-commit], [husky], or as an agent skill.
To try it out on a repository without writing changes, run:
npx -y cssupgrade $(git ls-files '*.css')
To transform code from standard input, pass - as the input path:
echo '.a { .b { color: red } }' | npx cssupgrade -
For help with available options:
npx cssupgrade --help
uvx pre-commit install
# .pre-commit-config.yaml
repos:
- repo: https://github.com/codingjoe/cssupgrade
rev: 2026.1.0 # Use the latest release
hooks:
- id: cssupgrade
pre-commit run cssupgrade --all-files
Assuming Husky is already initialized and .husky/pre-commit already contains set -e, append:
echo "git diff --cached --name-only --diff-filter=ACMR -z -- '*.css' | xargs -0 sh -c 'test \"\$#\" -eq 0 && exit 0; npx -y cssupgrade --write -- \"\$@\"' sh" >> .husky/pre-commit
echo "git diff --cached --name-only --diff-filter=ACMR -z -- '*.css' | xargs -0 sh -c 'test \"\$#\" -eq 0 && exit 0; git add -- \"\$@\"' sh" >> .husky/pre-commit
CSSupgrade is available as a skill in [Claude Code]. The plugin is distributed via the codingjoe/claude-plugins marketplace. To use it:
/plugin marketplace add codingjoe/claude-plugins/plugin install cssupgrade@codingjoeThe skill will analyze your selected styles and suggest transformations based on the Baseline browser support policy.
All transformations are based on [Web Platform Baseline][baseline] features. Baseline tracks which web platform features are safe to use across browsers.
By default, CSSupgrade uses widely available features, meaning they work in all major browsers (Chrome, Edge, Safari, Firefox) for at least 30 months. This ensures full compatibility while keeping your styles modern.
You can opt into newly available features (available in all browsers for 0-30 months) with:
npx cssupgrade --baseline newly-available <files>
For more information about Baseline browser support, visit [web.dev/baseline][baseline].
.css - CSS stylesheets[!NOTE] A transformation applies only to CSS that the parser accepts. Unknown at-rules and invalid declarations stay unchanged.
Rules that cannot nest keep their original text.
-.card {
- padding: 1rem;
-}
-.card .title { font-weight: bold; }
-.card:hover { color: red; }
+.card {
+ padding: 1rem;
+ .title { font-weight: bold; }
+ &:hover { color: red; }
+}
-input[type="text"] { color: black; }
-input[type="email"] { color: gray; }
+input {
+ &[type="text"] { color: black; }
+ &[type="email"] { color: gray; }
+}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
cssupgrade@codingjoe is listed by codingjoe/claude-plugins — review the source before installing
npx claudepluginhub codingjoe/claude-plugins --plugin cssupgradePlugins from other owners that cover similar ground