react-chic
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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>
));

Readme

Keywords

none

Package Sidebar

Install

npm i react-chic

Weekly Downloads

0

Version

0.4.1

License

MIT

Unpacked Size

50.9 kB

Total Files

52

Last publish

Collaborators

  • partheseas