Getting started

The font utility is used to change text colors, font weights, and more.

Changing text color

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.")
)

Changing font weight

p(
  .style %>%
    font(weight = "bold"),
  "Curabitur lacinia pulvinar nibh."
)
p(
  .style %>%
    font(weight = "light"),
  "Proin quam nisl, tincidunt et."
)


nteetor/dull documentation built on June 10, 2022, 11:30 a.m.