Home

Awesome

<h1 align="center"> <br> <img width="360" src="https://rawgit.com/ben-eb/css-values/master/media/logo.svg" alt="css-values"> <br> <br> <br> </h1>

Validate CSS property value pairs.

Build Status NPM version Coverage Status

This project is in very early alpha stages. At present, around half of the existing CSS specification is covered in a very limited capacity. Please feel free to improve the functionality of this module, and test it out, but don't yet rely on it in production!

The aim of this project is to produce a module that can consume CSS property/value pairs and validate them based on the actual CSS specification. This is useful because it brings what is traditionally hidden away in online documentation to automated tools such as linters. Indeed, with this data we can cover all of these use cases (and others):

css-values uses specification data gathered from Mozilla, with some overrides that make it easier for the parser to operate smoothly. In addition, css-values uses Autoprefixer to supplement values from the spec with proprietary browser syntax. This is to ensure that css-values can let these values pass through as valid, even though they are not to specification.

Property support

We support 254 of 361 CSS properties (70.36%).

Contributors

Thanks goes to these wonderful people (emoji key):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<img src="https://avatars.githubusercontent.com/u/1282980?v=3" width="100px;"/><br /><sub>Ben Briggs</sub><br />💻 📖 👀 ⚠️<img src="https://avatars.githubusercontent.com/u/13777538?v=3" width="100px;"/><br /><sub>Ivan Serniaev</sub><br />💻 ⚠️<img src="https://avatars.githubusercontent.com/u/11515852?v=3" width="100px;"/><br /><sub>Oleg-docent</sub><br />💻 ⚠️
<!-- ALL-CONTRIBUTORS-LIST:END -->

🎨 Logo design by Arina Efremova.

This project follows the all-contributors specification. Contributions of any kind welcome!

License

Template:CSSData by Mozilla Contributors is licensed under CC-BY-SA 2.5.

MIT © Ben Briggs