Open KyleAMathews opened 9 years ago
It is possible but with no nice API.
Styling supports passing arbitrary CSS like this:
styling(`
p {
margin-bottom: 1.5rem;
}
`)
which is of course suboptimal.
I'm open to API suggestions or better to a PR with implemented API :-)
That's a pretty good start. I just want to use JS to calculate colors, typography, etc. instead of relying on CSS preprocessors so this will work for now.
E.g.
I love all the JS->CSS stuff coming out but still find myself in every project needing to add a few global element styles.