Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/metonym/colonial

Old fashioned CSS-in-JS
https://github.com/metonym/colonial

css-in-js template-literal

Last synced: about 1 month ago
JSON representation

Old fashioned CSS-in-JS

Awesome Lists containing this project

README

        

# colonial

[![NPM][npm]][npm-url]
[![Build][build]][build-badge]

> Old fashioned CSS-in-JS.

## Getting Started

```bash
yarn add colonial
```

## Usage

Pass a template string literal to the `css` function.

Pass an object to the `style` function.

```js
import { css, style } from "colonial";

const h1 = css`
font-size: 2rem;
`;

const h2 = style({
fontSize: "1.5rem",
});
```

## License

[MIT](LICENSE)

[npm]: https://img.shields.io/npm/v/colonial.svg?color=blue
[npm-url]: https://npmjs.com/package/colonial
[build]: https://travis-ci.com/metonym/colonial.svg?branch=master
[build-badge]: https://travis-ci.com/metonym/colonial