Title: Apply 'colorffy' Color Gradients Within 'shiny' Elements
Version: 0.1.0
Description: Allows the user to apply nice color gradients to 'shiny' elements. The gradients are extracted from the 'colorffy' website. See https://www.colorffy.com/gradients/catalog.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.0
Imports: htmltools
Depends: R (≥ 2.10)
URL: https://github.com/feddelegrand7/corazon
BugReports: https://github.com/feddelegrand7/corazon/issues
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2020-06-24 12:45:00 UTC; THINKPAD L390
Author: Mohamed El Fodil Ihaddaden [aut, cre], Hadjer Haned [ctb]
Maintainer: Mohamed El Fodil Ihaddaden <ihaddaden.fodeil@gmail.com>
Repository: CRAN
Date/Publication: 2020-06-28 09:20:02 UTC

Display available gradient colors

Description

the function displays the available gradient colors contained within the package along with their corresponding hex colors

Usage

available_gradients()

Value

a character vector

Examples



available_gradients()







Display a linear gradient color within shiny elements

Description

Display a linear gradient color within shiny elements

Usage

corazon_gradient(
  element = "body",
  direction = "right",
  colorName = "LIFE",
  txtColor = "#F2F2F2"
)

Arguments

element

the shiny element that will incorporate the gradient color ? Defaults to "body"

direction

the direction of the gradient, between "right", "left", "bottom", "top". Defaults to "right"

colorName

the name of the gradient color to apply. see https://www.colorffy.com/gradients/catalog

txtColor

the text color. Default to "#F2F2F2" (white)

Value

A linear gradient color applied on a specific shiny element

Examples


if(interactive()){

ui <- fluidPage(


corazon_gradient(txtColor = "blue"),


h1("This is a Title"),

)

server <- function(input, output) {

}

# Run the application


shinyApp(ui = ui, server = server)

}





colorffy gradient color data set

Description

A data set containing the gradient colors available at the colorffy website

Usage

gradient

Format

A data frame containing all the the gradient colors: