This package has been deprecated

Author message:

Use tachyons-validate-classnames instead

tachyons-validate-class

1.0.1 • Public • Published

tachyons-validate-class stability

npm version build status test coverage downloads js-standard-style

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i tachyons-validate-class

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yoshuawuyts