palantir/blueprint

Exposing SASS variables as custom properties

Open

#5181 aperta il 18 mar 2022

Vedi su GitHub
 (3 commenti) (1 reazione) (0 assegnatari)TypeScript (2167 fork)batch import
Domain: APIP2Package: coreType: feature requesthelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

Environment

Any

Feature request

Have you considered exposing SASS variables as custom properties so users can write custom CSS in their applications using the values blueprint uses internally?

This could be optional and probably prefixed.

Examples

For instance, variables like $pt-grid-size could be exposed like this:

:root {
  --pt-grid-size: #{$pt-grid-size};
}

Guida contributor