# NOT RUN {
# using a temporary file but use the path you want
tmp <- file.path(tempdir(), "custom-theme.css")
# Create the new theme
create_theme(
theme = "default",
bs_vars_color(
brand_primary = "#75b8d1",
brand_success = "#c9d175",
brand_info = "#758bd1",
brand_warning = "#d1ab75",
brand_danger = "#d175b8"
),
bs_vars_navbar(
default_bg = "#75b8d1",
default_color = "#FFFFFF",
default_link_color = "#FFFFFF",
default_link_active_color = "#FFFFFF"
),
output_file = tmp
)
# Use the file created at the path provided
# in your Shiny app by moving it in the
# www/ folder, then use it in UI
library(shiny)
fluidPage(
theme = "custom-theme.css"
)
# clean up
unlink(tmp)
# }
Run the code above in your browser using DataLab