palantir/blueprint

Exposing SASS variables as custom properties

Open

#5,181 opened on Mar 18, 2022

 (3 comments) (1 reaction) (0 assignees)TypeScript (2,167 forks)batch import
Domain: APIP2Package: coreType: feature requesthelp wanted

Repository metrics

Stars
 (20,263 stars)
PR merge metrics
 (PR metrics pending)

Description

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};
}

Contributor guide