Skip to content

pantoken / 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"