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"