font | R Documentation |
The font()
utility modifies the color, size, weight, case, or alignment of
a tag element's text. All arguments default to NULL
, in which case they are
ignored. For example, font(.., size = "lg")
increases font size without
affecting color, weight, case, or alignment.
font(x, color = NULL, size = NULL, weight = NULL, case = NULL, align = NULL)
x |
A tag element or .style pronoun. |
color |
One of |
size |
Deprecated, in future versions of bootstrap resonsive font sizing will be enabled by default, https://github.com/twbs/bootstrap/pull/29152. One of |
weight |
One of |
case |
One of |
align |
A responsive argument. One of |
The font utility is used to change text colors, font weights, and more.
card( .style %>% font("primary") %>% border("primary"), header = h3("Header"), p("Nullam tristique diam non turpis.", "Pellentesque dapibus suscipit ligula.", "Nullam eu ante vel est convallis dignissim."), p("Aliquam posuere.") )
Nullam tristique diam non turpis. Pellentesque dapibus suscipit ligula. Nullam eu ante vel est convallis dignissim.
Aliquam posuere.
p( .style %>% font(weight = "bold"), "Curabitur lacinia pulvinar nibh." )
Curabitur lacinia pulvinar nibh.
p( .style %>% font(weight = "light"), "Proin quam nisl, tincidunt et." )
Proin quam nisl, tincidunt et.
Other design utilities:
active()
,
affix()
,
background()
,
border()
,
display()
,
flex()
,
float()
,
height()
,
margin()
,
padding()
,
scroll()
,
shadow()
,
width()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.