Linaria CLI
CSS-in-Js styles are quite modular given their ability to be associated with components, but it is also helpful to have the option to compile some styles ahead of time for a html page to use. This behavior is desired if there are common global styles that referenced by all pages. Having minimum styles on the page in a css file also helps to prevent the flash of unstyled content.
In the following example, Linaria will be shown as the CSS-in-Js of choice since this library supports compilation during build.
Create a new project and install the project dependencies:
npm install snowpack @snowpack/plugin-run-script @linaria/cli @linaria/shaker