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

貢獻者指南