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
- Host: GitHub
- URL: https://github.com/melhosseiny/get-rhythm
- Owner: melhosseiny
- License: mit
- Created: 2021-07-03T08:00:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-03T08:32:48.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T20:11:14.764Z (over 1 year ago)
- Topics: deno, postcss, typography
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`