| theme_brand_gt | R Documentation |
Apply brand colors to a gt table.
theme_brand_gt(table, brand = NULL, background = NULL, foreground = NULL)
table |
A gt table object to theme. |
brand |
One of:
|
background |
The background color, defaults to |
foreground |
The foreground color, defaults to |
Returns a themed gt table object.
Other branded theming functions:
theme_brand_flextable(),
theme_brand_ggplot2(),
theme_brand_plotly(),
theme_brand_thematic()
brand <- as_brand_yml('
color:
palette:
black: "#1A1A1A"
white: "#F9F9F9"
orange: "#FF6F20"
foreground: black
background: white
primary: orange')
library(gt)
theme_brand_gt(
gt(head(palmerpenguins::penguins)),
brand
)
brand <- as_brand_yml('
color:
palette:
black: "#1A1A1A"
white: "#F9F9F9"
orange: "#FF6F20"
foreground: black
background: white
primary: orange')
library(gt)
theme_brand_gt(
gt(head(mtcars)),
brand
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.