tersecss is a lightweight css-in-ts framework
npm install tersecssbash
npm i tersecss
`$3
Create a *.css.ts file (eg style.css.ts) and export style to use
`javascript
import {
//main top level functions
terseCSS, //hook
style,
} from "tersecss"
const wrap = style({
width: "50%",
height: "60%",
cursor: "pointer",
marginTop: "6rem",
display: "flex",
flexDirection: "column",
})
//use TerseCSS like this
function HelloWorld() => {
return(
Hello World
)
}//Or use main level function
//style.css.ts
export const mystyle = terseCSS.create({ wrap })
//use TerseCSS like this
import { mystyle } from "style.css"
function HelloWorld() => {
return(
Hello World
)
}``MIT © Ademujimi Oluwaseyi