# @filbert-js/css-ast

> > CSS to AST transformer for filbert-js.

Latest version **0.0.8** (published 2020-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @filbert-js/css-ast
pnpm add @filbert-js/css-ast
yarn add @filbert-js/css-ast
bun add @filbert-js/css-ast
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2020-12-22 |
| First published | 2020-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 175 |
| Author | Kuldeep Keshwar |
| Maintainers | kuldeepkeshwar |
| Keywords | ast, css-ast, javascript, react, preact, css, css-in-js, filbert-js, 1kb, light-weight, styling, styled, emotion, styled-components |

## Links

- npm: https://www.npmjs.com/package/@filbert-js/css-ast
- Repository: https://github.com/kuldeepkeshwar/filbert-js
- Homepage: https://github.com/kuldeepkeshwar/filbert-js#readme
- Issues: https://github.com/kuldeepkeshwar/filbert-js/issues
- npm.io page: https://npm.io/package/@filbert-js/css-ast

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2020-12-22
- 0.0.7 — 2020-08-14
- 0.0.6 — 2020-08-13
- 0.0.5 — 2020-07-14
- 0.0.4 — 2020-07-11
- 0.0.3 — 2020-07-09
- 0.0.2 — 2020-07-05

## README

# @filbert-js/css-ast

> CSS to AST transformer for filbert-js.

## Install

```bash
yarn add @filbert-js/css-ast
```

```js editor=static
import { toAST } from '@filbert-js/css-ast';

const css = `
color: gray;
button {
    margin: 0 1rem;
    background: #1f368f;
    color: white;
    span {
        color: red;
    }
}
button,span {
    color: pink;
}
`;
const ast = toAST(css);
console.log(ast);
/**  
children: Array[2]
    0: Node
    1: Node
rules: Array[1]
    0: Object
name: "color"
value: "gray"
start: 0
end: 168
raw: "
  color: gray;
  button {
    margin: 0 1rem;
    background: #1f368f;
    color: white;
    span {
      color: red;
    }
  }
  button,
  span {
    color: pink;
  }
"
* */
```

More documentation is available at https://filbert-js.vercel.app.

---
_Source: https://npm.io/package/@filbert-js/css-ast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
