0.4.1 • Published 2 years ago

react-chic v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Chic

main

A CSS-sort-of-in-JS solution that's quite nice and well dressed

import { chic, Stylist } from "chic";

import styles from "./Component.module.css";

const Component = (props) => {
	return (
		<Stylist styles={styles}>
			<chic.div cx={["color-blue", "font-lg", "padding-4"]}>Hello!</chic.div>
		</Stylist>
	);
};

Alternatively...

import { chic, withStyles } from "chic";

import styles from "./Component.module.css";

const Component = withStyles(styles, (props) => (
	<chic.div cx={["color-blue", "font-lg", "padding-4"]}>Hello!</chic.div>
));
0.4.1

2 years ago

0.4.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago