An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# purescript-css-validate

[![purescript-css-validate on Pursuit](https://pursuit.purescript.org/packages/purescript-css-validate/badge)](https://pursuit.purescript.org/packages/purescript-css-validate)
[![CircleCI](https://circleci.com/gh/nonbili/purescript-css-validate.svg?style=svg)](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
```