Skip to content

metonym/colonial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colonial

NPM Build

Old fashioned CSS-in-JS.

Getting Started

yarn add colonial

Usage

Pass a template string literal to the css function.

Pass an object to the style function.

import { css, style } from "colonial";

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

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

License

MIT