0.2.0 • Published 10 months ago

typed-css-classes v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Installation

npm install --save typed-css-classes

Then add the ppx in your bsconfig.json file:

"ppx-flags": [
  "typed-css-classes/ppx"
]

Usage

CSS Modules

%%css.module(let css = "./styles.module.css")

@react.component
let make = () => {
  <h1 className={css["title"]}> {"Hello World!"->React.string} </h1>
}

Importing global CSS

%%css.import(let css = "./styles.css")

@react.component
let make = () => {
  <h1 className={css["title"]}> {"Hello World!"->React.string} </h1>
}
0.2.0

10 months ago

0.1.0

11 months ago