Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/metonym/colonial
- Owner: metonym
- License: mit
- Created: 2019-09-15T01:31:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T16:24:18.000Z (over 2 years ago)
- Last Synced: 2024-07-11T21:35:05.594Z (4 months ago)
- Topics: css-in-js, template-literal
- Language: TypeScript
- Size: 221 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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