mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +00:00
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];
|
||||
}
|
||||
|
||||
export function colorText(textToColor: string, color = "var(--accent2)"): string {
|
||||
return `<span style="color: ${color}">${textToColor}</span>`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue