Add colorText utility function

This commit is contained in:
thepaperpilot 2022-06-28 09:52:49 -05:00
parent ff9fa0bf07
commit 7dd7744edf

View file

@ -248,3 +248,7 @@ export function createCollapsibleModifierSections(
});
return [jsxFunc, collapsed];
}
export function colorText(textToColor: string, color = "var(--accent2)"): string {
return `<span style="color: ${color}">${textToColor}</span>`;
}