Skip to content

Add "params" ability to styles #32

Description

@regisphilibert

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions