| create_colors_xml | R Documentation | 
Create custom color themes that can be used with wb_set_base_colors(). The color input will be checked with wb_color(), so it must be either a color R from grDevices::colors() or a hex value.
Default values for the dark argument are: black, white, darkblue and lightgray. For the accent argument, the six inner values of grDevices::palette(). The link argument uses blue and purple by default for active and visited links.
create_colors_xml(name = "Base R", dark = NULL, accent = NULL, link = NULL)
name | 
 the color name  | 
dark | 
 four colors: dark, light, brighter dark, darker light  | 
accent | 
 six accent colors  | 
link | 
 two link colors: link and visited link  | 
Other style creating functions: 
create_border(),
create_cell_style(),
create_dxfs_style(),
create_fill(),
create_font(),
create_numfmt(),
create_tablestyle()
colors <- create_colors_xml()
wb <- wb_workbook()$add_worksheet()$set_base_colors(xml = colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.