$ npm install tachyons-validate-classnamesValidate if a CSS class name is valid for Tachyons. Useful to validate Tachyons overrides are valid.
const validate = require('tachyons-validate-classnames')
validate('.black { color: white }')
// => { selectors: ['.black'], failed: [] }
validate('.foo { color: white }')
// => { selectors: ['.foo'], failed: ['.foo'] }
Usage: tachyons-validate-classnames [options] [filename]
Options:
-h, --help Output usage information
-v, --version Output version number
Examples:
$ tachyons-validate-classnames ./bundle.css # Validate a file
$ curl foobar.com/bundle.css | tachyons-validate-classnames # Validate stdin
Docs: https://github.com/yoshuawuyts/tachyons-validate-class
Bugs: https://github.com/yoshuawuyts/tachyons-validate-class/issues
Validate a string of CSS. Returns all selectors and all failed selectors.
$ npm install tachyons-validate-classnames