Profectus / data/common / colorText
Function: colorText() ​
colorText(
textToColor,color):JSX.Element
Creates an HTML string for a span that writes some given text in a given color.
Parameters ​
textToColor ​
string
The content to change the color of
color ​
string = "var(--accent2)"
The color to change the content to look like. Defaults to the current theme's accent 2 variable.
Returns ​
JSX.Element