This is often useful within a glue::glue
function for a
graph title or subtitle.
color_text(color, text, weight = "bold")
character, valid CSS color
character, text to color
character, which CSS font-weight
to
apply: c("bold", "normal", "900")
, etc.
character, HTML-span-wrapped version of text
styled according to color
and weight
color_text("#190C65", "predicted")
#> <span style="color: #190C65; font-weight: bold;">predicted</span>