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

https://github.com/melhosseiny/get-rhythm

PostCSS plugin to generate vertical rhythm using a modular typographic scale
https://github.com/melhosseiny/get-rhythm

deno postcss typography

Last synced: about 2 months ago
JSON representation

PostCSS plugin to generate vertical rhythm using a modular typographic scale

Awesome Lists containing this project

README

          

# get-rhythm

[PostCSS] plugin to generate vertical rhythm using a modular typographic scale

[PostCSS]: https://github.com/postcss/postcss

```css
/* f0=16, r=1.618, i=2 */
@scale 16 1.618 2;
```

## Usage

import postcss from "https://deno.land/x/postcss/mod.js";
import get_rhythm from "https://raw.githubusercontent.com/melhosseiny/get-rhythm/main/get_rhythm.js";

const css = '@scale 16 1.618 2;';

const result = await postcss([get_rhythm]).process(css);

console.log(result.css);

`deno run --no-check --allow-env rhythm.js`