# NOT RUN {
### Changing text color
card(
header = h3("Important!") %>%
font(color = "amber"),
div(
"This is a reminder."
)
) %>%
border(color = "amber")
### Changing font size
div(
p("Extra small") %>%
font(size = "xs"),
p("Small") %>%
font(size = "sm"),
p("Medium") %>%
font(size = "base"),
p("Large") %>%
font(size = "lg"),
p("Extra large") %>%
font(size = "xl")
)
### Changing font weight
# Make an element's text bold, italic, light, or monospace.
p("Curabitur lacinia pulvinar nibh.") %>%
font(weight = "bold")
p("Proin quam nisl, tincidunt et.") %>%
font(weight = "light")
# }
Run the code above in your browser using DataLab