astro-css-in-js-tests
astro-css-in-js-tests copied to clipboard
Examples of using various CSS-in-JS libs in Astro (repo for withastro/astro#4432)
astro + css-in-js
This monorepo will show examples of various CSS-in-JS libraries in Astro. Currently only shows a basic counter example, would be nice to demonstrate more advanced usage for each library.
Compatibility table
See https://github.com/withastro/astro/issues/4432
Running locally
Clone the repo and install deps:
npm install
Start the dev server for all examples in parallel using turborepo:
npm run dev
Open localhost:3000, localhost:3001, etc in browser.
Contributing
To add an example of a new library:
- Create a copy of any folder (e.g.
emotion). - Rename the folder and the
namefield in the folder's package.json. - Update the dependencies and run
npm installfrom the root of the monorepo. - Update the code. Try to keep the actual styles more or less the same.
- Update the README.md