Skip to content

pantoken-root / renderers/css-in-js/src / toThemeKey

函式: toThemeKey() ​

toThemeKey(name): string

實驗性

將 --instui-color-background-brand 變成 colorBackgroundBrand。

參數 ​

name ​

string

回傳 ​

string

範例 ​

ts
import { toThemeKey } from "@pantoken/css-in-js";

toThemeKey("--instui-color-background-brand"); // "colorBackgroundBrand"