Skip to content

pantoken-root / formats/css/src / ToCssOptions

介面: ToCssOptions ​

Beta(測試)

提供給 toCss 的選項。

屬性 ​

scope? ​

optional scope?: string

Beta(測試)

選擇器作用域的宣告會輸出於(預設 ":root")。


layer? ​

optional layer?: string

Beta(測試)

純層級名稱(例如 "pantoken"),不帶 @ 前綴。省略以跳過包裹器。


emit? ​

optional emit?: CssEmitTarget

Beta(測試)

要輸出的主題(預設:"rebrand")。


declareAll? ​

optional declareAll?: boolean

Beta(測試)

將每個 token 以宣告輸出,而不是將具體 token 指向 @property。這對可嵌套在另一主題子樹內的主題區塊是必要的:不完整的區塊會對其遺漏的 token 繼承外層主題的值。


plugins? ​

optional plugins?: readonly PantokenPlugin[]

Beta(測試)

其 css 鉤子在基底 CSS 建構之後執行的外掛(預設:無)。