forked from profectus/Profectus
Add colorText utility function
This commit is contained in:
parent
ff9fa0bf07
commit
7dd7744edf
1 changed files with 4 additions and 0 deletions
|
@ -248,3 +248,7 @@ export function createCollapsibleModifierSections(
|
||||||
});
|
});
|
||||||
return [jsxFunc, collapsed];
|
return [jsxFunc, collapsed];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function colorText(textToColor: string, color = "var(--accent2)"): string {
|
||||||
|
return `<span style="color: ${color}">${textToColor}</span>`;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue