opt_css()
Use exibble to create a gt table and format the data in both columns. With opt_css(), insert CSS rulesets as as string and be sure to set the table ID explicitly (here as "one").
exibble
"one"
exibble |> dplyr::select(num, currency) |> gt(id = "one") |> fmt_currency( columns = currency, currency = "HKD" ) |> fmt_scientific(columns = num) |> opt_css( css = " #one .gt_table { background-color: skyblue; } #one .gt_row { padding: 20px 30px; } #one .gt_col_heading { text-align: center !important; } " )