https://github.com/nonbili/purescript-css-validate
Validate CSS property and value pair
https://github.com/nonbili/purescript-css-validate
css purescript validate
Last synced: 2 months ago
JSON representation
Validate CSS property and value pair
- Host: GitHub
- URL: https://github.com/nonbili/purescript-css-validate
- Owner: nonbili
- License: bsd-3-clause
- Created: 2018-12-21T03:16:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T08:50:56.000Z (over 6 years ago)
- Last Synced: 2025-09-11T04:48:02.766Z (9 months ago)
- Topics: css, purescript, validate
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-css-validate
[](https://pursuit.purescript.org/packages/purescript-css-validate)
[](https://circleci.com/gh/nonbili/purescript-css-validate)
Validate single CSS property and value pair.
## Usage
[csstree](https://github.com/csstree/csstree) is used underneath, install it by
```
# csstree is a different package
npm i css-tree
```
```
import CSS.Validate (isDeclarationValid)
isDeclarationValid "color" "indigo" -- true
isDeclarationValid "color" "indigogo" -- false
```