Home > @xypnox/themescura > convertToVar

convertToVar() function

Input a nested object and prefix Returns a new object with the keys replaced with css variables made from the prefix and the keys

Signature:

convertToVar: (theme: any, prefix?: string) => any

Parameters

Parameter

Type

Description

theme

any

prefix

string

(Optional)

**Returns:**

any