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

https://github.com/css-doodle/postcss-doodle

PostCSS plugin that enables the use of css-doodle generators
https://github.com/css-doodle/postcss-doodle

Last synced: about 1 year ago
JSON representation

PostCSS plugin that enables the use of css-doodle generators

Awesome Lists containing this project

README

          

# postcss-doodle

![Build Status](https://github.com/css-doodle/postcss-doodle/actions/workflows/ci.yml/badge.svg)
![License](https://img.shields.io/github/license/mashape/apistatus.svg)

[PostCSS] plugin that enables the use of css-doodle generators.

[PostCSS]: https://github.com/postcss/postcss
[css-doodle]: https://github.com/css-doodle
[@shape]: https://yuanchuan.dev/polygon-shapes
[@svg]: https://yuanchuan.dev/experimenting-a-new-syntax-to-write-svg

## Installation

```bash
npm i -D postcss-doodle
```

## Usage

```js
postcss([
require('postcss-doodle')
])
```

## Supported generators

### [@svg]

```css
background: @svg(
viewBox: -5 -5 10 10;
circle {
r: 5;
fill: deeppink;
}
)
```

### [@shape]

```css
clip-path: @shape(
points: 5;
turn: 2;
)
```

## TODO

* @doodle