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

https://github.com/nju33/postcss-blokk

BLOKK auto import
https://github.com/nju33/postcss-blokk

blokk mockup postcss-plugin

Last synced: 7 months ago
JSON representation

BLOKK auto import

Awesome Lists containing this project

README

          

# PostCSS BLOKK

[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)

BLOKK auto import.

## Install

```bash
yarn add -D postcss-blokk
npm i -D postcss-blokk
```

```js
postcss([blokk])
```

## Usage

### Input

```css
body {
font-family: BLOKK;
}

.a {
font: 16px / 1.5 BLOKK;
}
```

### Output

```css
@import url("https://blokkfont-losgordos.netdna-ssl.com/v2/blokkfont.css");

body {
font-family: BLOKK;
}

.a {
font: 16px / 1.5 BLOKK;
}
```

## Tip

If you get an `Access-Control-Allow-Origin` related error during development, you may want to install [https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi/related](chrome-extension:allow-control-allow-origi)

## Related

- [http://www.blokkfont.com/](http://www.blokkfont.com/)

## License

The MIT License (MIT)

Copyright (c) 2017 nju33