text_color | R Documentation |
The text_color()
function adjusts the color of text in a tag element.
text_color(x, color)
text_emphasis(x, color)
x |
A tag element or .style pronoun. |
color |
A character string specifying a color. One of,
|
An object of the same type as x
.
Other text utilities:
text_alignment()
,
text_break()
,
text_decoration()
,
text_height()
,
text_selection()
,
text_style()
,
text_transform()
,
text_weight()
,
text_wrap()
library(htmltools)
div(
.style %>%
text_color(theme_primary())
)
div(
.style %>%
text_color(theme_dark()) %>%
border_color(theme_dark())
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.