tachyons-validate-class
Validate if a CSS class name is valid for Tachyons. Useful to validate Tachyons overrides are valid.
Usage
const validate = require('tachyons-validate-class')
validate('.black { color: white }')
// => { selectors: ['.black'], failed: [] }
validate('.foo { color: white }')
// => { selectors: ['.foo'], failed: ['.foo'] }
API
validate(css)
Validate a string of CSS. Returns all selectors and all failed selectors.
Installation
$ npm install tachyons-validate-class