palantir/blueprint

Exposing SASS variables as custom properties

Open

#5,181 建立於 2022年3月18日

在 GitHub 查看
 (3 留言) (1 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
Domain: APIP2Package: coreType: feature requesthelp wanted

描述

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

貢獻者指南