A CSS-beautifier utility which will ensure that your SCSS is consistent with our code style.
-
Install Node.js and NPM with NVM as directed in the Adaptive.js docs
-
Install CSSComb and the Mobify Code Style:
npm install -g csscomb mobify-code-style
- Install css-comb package for Atom (this will allow you to set the global CSSComb config)
- Open your Atom package settings for "css-comb" (not "csscomb")
- Ensure your custom config path is set to your machine's version of
mobify-code-style
: Runnpm config get prefix
and append/lib/node_modules/mobify-code-style/css/.csscomb.json
to the result - Ensure Disable config searching is unchecked
- Restart Atom
- Start combing your Sass!
Before you start, make sure you have Package Control installed for Sublime Text.
- Install CSSComb for Sublime (Search for "CSScomb" in Sublime's Package Control)
- CSSComb for Sublime will look for your config in your HOME directory, so make a symlink to the Mobify Code Style version (this way, updating the code style through NPM will automagically update the config for Sublime):
cd ~
ln -s /path/to/your/local/node_modules/mobify-code-style/css/.csscomb.json ./.csscomb.json
(Find your local path by running npm config get prefix
and append /lib/node_modules/mobify-code-style/css/.csscomb.json
to the result)
- Restart Sublime
- Start combing your Sass!
- CSSComb for VIM
- jetbrains-csscomb which should work for all JetBrains IDEs, such as IDEA, PyCharm, WebStorm, PhpStorm, RubyMine, and perhaps others.
- CSSComb for Emacs, including Aquamacs
- CSSComb for VS Code