Just like we can easily pass params to the scripts which can be imported from the js code,
we could try and add the same for styles. Those could be inserted as css variables:
styles:
- path: main.scss
params:
env: huge/env/Get()
darkMode: true
Which would generate something like:
:root {
--env: production;
--darkMode: true;
}
I'm thinking it would be better to give control to user over the positioning of those variable declaration, shall it overwrite some of their own...
Maybe it could create a file which could then be imported by user mimicking the JS side of this...
Just like we can easily pass
paramsto the scripts which can be imported from the js code,we could try and add the same for styles. Those could be inserted as css variables:
Which would generate something like:
I'm thinking it would be better to give control to user over the positioning of those variable declaration, shall it overwrite some of their own...
Maybe it could create a file which could then be imported by user mimicking the JS side of this...