-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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: trueWhich 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...
Metadata
Metadata
Assignees
Labels
No labels