csscomb/csscomb.js
csscomb/csscomb.js has 3,331 GitHub stars and 434 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 17:48 UTC. Last push 2023-01-03.
CSS coding style formatter
Measured star growth
- in 24h
- +1
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalCSScomb 
CSScomb is a coding style formatter for CSS. You can easily write your own configuration to make your style sheets beautiful and consistent.
The main feature is sorting properties in a specific order. It was inspired by @miripiruni's PHP-based tool of the same name. This is the new JavaScript version, based on the powerful CSS parser Gonzales PE.
1. Install
Global installation (for use as a command-line tool):
npm install csscomb -g
Local installation (for use as a command-line tool within current directory):
npm install csscomb
To install as a project dependency (the package will appear in your dependencies):
npm install csscomb --save
To install as a dev dependency (the package will appear in your devDependencies):
npm install csscomb --save-dev
2. Configure
There are a number of ways to configure CSScomb:
- Use one of predefined configs
- Put
.csscomb.jsonfile in the project root. - Set path to config's file
- Use
*.cssfile as a template
3. Use
Command Line
csscomb assets/css
Node.js module
var Comb = require('csscomb');
var comb = new Comb('zen');
comb.processPath('assets/css');
4. Contribute
This project is actively mantained. But anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
Also you can become a maintainer. To do that please ping @tonyganch.
Authors
Thanks for assistance and contributions:
@miripiruni, @anton-rudeshko, @cvrebert, @filtercake, @ignovak, @kizu, @lefoy, @L0stSoul, @mishaberezin, @puzankov, @schneyra, @thejameskyle, @vecmezoni
License
This software is released under the terms of the MIT license.
Other projects
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,849 starspublic-apis/public-apis
A collective list of free APIs
497,094 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,634 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,160 stars