astro-ghostcms/.pnpm-store/v3/files/a7/faf51b349d31b62f88e0329ba12...

28 lines
503 B
Plaintext

# css-box-shadow
CSS box shadow parser and stringifier
```sh
npm i css-box-shadow
```
```js
const { parse, stringify } = require('css-box-shadow')
// parse a CSS string value into an array of objects
const parsed = parse('0 0 0 32px tomato')
// [{ inset: false,
// offsetX: 0,
// offsetY: 0,
// blurRadius: 0,
// spreadRadius: 32,
// color: 'tomato' }]
// convert an array of objects into a box-shadow string value
const value = stringify(parsed)
// '0 0 0 32px tomato'
```
MIT License