package
A tool for creating Atomic CSS, a collection of single purpose styling units for maximum reuse
npm install atomizerGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.

Atomizer is a tool that helps you create simple, scalable, CSS rules (acss.io).
For more information we recommend that you read "Challenging CSS best practices", watch the Atomic CSS presentation, or check this deck.
npm install atomizer -gUsage: atomizer [options] [path]
Options:
-h, --help output usage information
-V, --version output the version number
-R, --recursive process all files recursively in the path.
-c, --config=[file] source config file if any.
-r, --rules=[file] custom rules file (argument may be passed multiple times)
-o, --outfile=[file] destination config file.
-n, --namespace=[namespace] adds the given
Example:
atomizer -o atomic.css ./site/*.html
atomizer -o atomic.css ./site/*.html --exclude=*-0.html
atomizer -c config.js -R ./site/ > atomic.css
atomizer -c config.js -n \#myrootclass > atomic.cssimport Atomizer from 'atomizer';
const defaultConfig = {
breakPoints: {
sm: '@media(min-width:750px)',
md: '@media(min-width:1000px)',
lg: '@media(min-width:1200px)'
},
custom: {
border: '2px dotted #f00'
}
};
const atomizer = new Atomizer({verbose: true});
// Parse text to find Atomic CSS classes
const foundClasses = atomizer.findClassNames('<div class="P(10px) M(20%) Bd(border)--sm"></div>');
// Generate Atomizer configuration from an array of Atomic classnames
const finalConfig = atomizer.
This software is free to use under the Yahoo Inc. BSD license. See the LICENSE file for license text and copyright information.
Third-party open source code used are listed in our package.json file.
snyamathi
snyamathi@gmail.com
Estimated unpacked size across 17 packages.
11.0 MB
Includes dependencies.