Integrations
Set up Master CSS in Astro
Guide to setting up Master CSS in your Astro project.
Create a project
If you don't have an Astro project, create one first.
npm create astro@latest my-appcd my-appAdd Master CSS
Run the installer in static mode from the Astro project root. Static mode scans complete class strings and emits generated CSS at build time.
npm create @master/css@rc -- --framework astro --mode static --yesStart dev server
Run the command to start the Astro dev server.
npm run devStart using Master CSS
Now style your first Astro page using Master CSS syntax.
localhost:4321
Hello World
<h1 class="m:2xl italic font:5xl font:heavy text:neutral"> Hello World</h1>