palantir/blueprint

Exposing SASS variables as custom properties

开放

#5,181 创建于 2022年3月18日

 (3 条评论) (1 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
Domain: APIP2Package: coreType: feature requesthelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南