Hi,
I am building a PoC design system in Astro and have a few questions.
Is there a way to globally load in a scss for everything without it being touched by scoped styles? I have a global.scss file. It includes colour variables and @use a _reset.scss file, and a few utilities. I want this to be visible for everything.
Issue is that this is being scoped:
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
Next, I want to grab all the scss and convert to css so that the stylesheets can be used in other projects. I don't want it to be scoped. I don't mind the scoping within the astro site but when it is build, i would a separate folder which has just pure compiled scss to vanilla css in it and also javascript (future thing).
The eventual goal is simply a static Astro site being the documentation and component showcase and then we have a separate npm package which can be generated using a different build command to detach the two. The Astro build contains what you would expect from an Astro site, the package contains plain simple css and compiled es6 compatible javascript etc.
Is this possible? Is Astro the right tool for the job?
Thanks so much in advance