Skip to content
Fresh shiny themes
R CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R vignette + description Jul 31, 2019
inst vignette + description Jul 31, 2019
man vignette + description Jul 31, 2019
vignettes vignette + description Jul 31, 2019
.Rbuildignore added pkgdown Aug 1, 2019
.gitignore added pkgdown Aug 1, 2019
.travis.yml
DESCRIPTION vignette + description Jul 31, 2019
NAMESPACE dropdown vars Jul 31, 2019
README.md update readme Aug 6, 2019
_pkgdown.yml added pkgdown Aug 1, 2019

README.md

fresh

Create fresh themes for use in shiny applications and flexdashboard documents.

Lifecycle: experimental Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Travis build status

Installation

You can install the development version of fresh from GitHub with:

remotes::install_github("dreamRs/fresh")

shiny

Create new themes to use in shiny applications with fluidPage or navbarPage. From the default theme :

Obtain this :

This theme was creating with following code:

create_theme(
  theme = "default",
  bs_vars_nav(
    default_bg = "#3f2d54",
    default_color = "#FFFFFF",
    default_link_color = "#FFFFFF",
    default_link_active_color = "#FFFFFF"
  ),
  bs_vars_color(
    gray_base = "#354e5c",
    brand_primary = "#75b8d1",
    brand_success = "#c9d175",
    brand_info = "#758bd1",
    brand_warning = "#d1ab75",
    brand_danger = "#d175b8"
  ),
  bs_vars_state(
    success_text = "#FFF",
    success_bg = "#c9d175",
    success_border = "#c9d175",
    info_text = "#FFF",
    info_bg = "#3f2d54",
    info_border = "#3f2d54",
    danger_text = "#FFF",
    danger_bg = "#d175b8",
    danger_border = "#d175b8"
  ),
  bs_vars_wells(
    bg = "#FFF",
    border = "#3f2d54"
  ),
  output_file = "www/mytheme.css"
)

Use the created theme like this:

navbarPage(
  
  title = "My application",
  theme = "mytheme.css",
  
  ...
)
You can’t perform that action at this time.