Skip to contents

Apply dark theme to a gt table

Usage

gt_theme_dark(gt_object, ...)

Arguments

gt_object

An existing gt table object of class gt_tbl

...

Optional additional arguments to gt::table_options()

Value

An object of class gt_tbl.

Figures

Function ID

1-6

Examples


library(gt)
dark_tab <- head(mtcars) %>%
  gt() %>%
  gt_theme_dark() %>%
  tab_header(title = "Dark mode table")