mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 09:45:33 +00:00
prettier
This commit is contained in:
parent
10d82dcde1
commit
f6e4140c79
1 changed files with 6 additions and 2 deletions
|
|
@ -21,9 +21,13 @@ function generateCustomThemeStructure(theme: any, prefix = ""): any {
|
|||
const result: any = {};
|
||||
for (const key in theme) {
|
||||
if (typeof theme[key] === "object" && theme[key] !== null) {
|
||||
result[key] = generateCustomThemeStructure(theme[key], `${prefix}${key}-`);
|
||||
result[key] = generateCustomThemeStructure(
|
||||
theme[key],
|
||||
`${prefix}${key}-`,
|
||||
);
|
||||
} else {
|
||||
result[key] = `rgb(var(${cssVarName(`${prefix}${key}`)}) / <alpha-value>)`;
|
||||
result[key] =
|
||||
`rgb(var(${cssVarName(`${prefix}${key}`)}) / <alpha-value>)`;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue