palantir/blueprint

Exposing SASS variables as custom properties

Open

#5,181 opened on Mar 18, 2022

View on GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: APIP2Package: coreType: feature requesthelp wanted

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

Exposing SASS variables as custom properties · palantir/blueprint#5181 | Good First Issue