Compiler-augmented typesafe CSS-in-JS with zero runtime, colocation, maximum safety and productivity
Compiler-augmented typesafe CSS-in-JS with zero runtime, colocation, maximum safety and productivity
CSS-in-JS with zero runtime, type safety and colocation
For full documentation, visit https://macaron.js.org
…The styling API is the same api is vanilla-extract, but allows styles to be defined in the same file, improving the DX.
Check out vanilla-extract docs for the API reference.
These functions can also be called directly inside expressions to provide a css prop-like API with zero-runtime cost:-
import { style } from '@macaron-css/core';
function App() {
return (
);
}You can try about these above examples at https://macaron.js.org/playground and see how macaron figures out which expressions have to be extracted and what your code would look like after being transpiled
https://macaron.js.org/docs/working/
Vanilla Extract Thanks to the vanilla-extract team for their work on VE, which macaron uses for evaluating files.
Dax Raad Thanks to Dax for helping me with this and thoroughly testing it outß, helping me find numerous bugs and improving macaron.
No open issues yet, or sync has not completed.