The current pre-build script generates a Sass stylesheet with all the available colors, which are then used to generate the given classes.
However, this adds a slow generation step that must run before the build.
This change includes a custom Vite plugin that injects the generated color variables into the global CSS. Unlike the previous solution, this happens during the build and thus adds basically no time penalty.
The current pre-build script generates a Sass stylesheet with all the available colors, which are then used to generate the given classes. However, this adds a slow generation step that must run before the build.
This change includes a custom Vite plugin that injects the generated color variables into the global CSS. Unlike the previous solution, this happens during the build and thus adds basically no time penalty.