Browse Source

Add an example to each style function

tags/v0.3.0
Garrick Aden-Buie 6 years ago
parent
commit
b6df901b66
20 changed files with 256 additions and 0 deletions
  1. +13
    -0
      man-roxygen/style_duo.R
  2. +13
    -0
      man-roxygen/style_duo_accent.R
  3. +13
    -0
      man-roxygen/style_duo_accent_inverse.R
  4. +12
    -0
      man-roxygen/style_mono_accent.R
  5. +12
    -0
      man-roxygen/style_mono_accent_inverse.R
  6. +12
    -0
      man-roxygen/style_mono_dark.R
  7. +12
    -0
      man-roxygen/style_mono_light.R
  8. +11
    -0
      man-roxygen/style_solarized_dark.R
  9. +11
    -0
      man-roxygen/style_solarized_light.R
  10. +14
    -0
      man-roxygen/style_xaringan.R
  11. +14
    -0
      man/style_duo.Rd
  12. +14
    -0
      man/style_duo_accent.Rd
  13. +14
    -0
      man/style_duo_accent_inverse.Rd
  14. +13
    -0
      man/style_mono_accent.Rd
  15. +13
    -0
      man/style_mono_accent_inverse.Rd
  16. +13
    -0
      man/style_mono_dark.Rd
  17. +13
    -0
      man/style_mono_light.Rd
  18. +12
    -0
      man/style_solarized_dark.Rd
  19. +12
    -0
      man/style_solarized_light.Rd
  20. +15
    -0
      man/style_xaringan.Rd

+ 13
- 0
man-roxygen/style_duo.R View File

@@ -1,3 +1,16 @@
#' @title Duotone Theme
#' @description A duotone theme designed to work well with two complementary
#' colors.
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_duo(
#' primary_color = "#1f4257",
#' secondary_color = "#f97b64",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 13
- 0
man-roxygen/style_duo_accent.R View File

@@ -1,3 +1,16 @@
#' @title Duotone Accent Theme
#' @description An default xaringan theme with a two colors used for color
#' accents on select elements (headers, bold text, etc.).
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_duo_accent(
#' primary_color = "#006747",
#' secondary_color = "#cfc493",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 13
- 0
man-roxygen/style_duo_accent_inverse.R View File

@@ -1,3 +1,16 @@
#' @title Duotone Accent Inverse Theme
#' @description An "inverted" default xaringan theme with a two colors used
#' for color accents on select elements (headers, bold text, etc.).
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_duo_accent_inverse(
#' primary_color = "#006747",
#' secondary_color = "#cfc493",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 12
- 0
man-roxygen/style_mono_accent.R View File

@@ -1,3 +1,15 @@
#' @title Monotone Accent Theme
#' @description The default xaringan theme with a single color used for color
#' accents on select elements (headers, bold text, etc.).
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_mono_accent(
#' base_color = "#43418A",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 12
- 0
man-roxygen/style_mono_accent_inverse.R View File

@@ -1,3 +1,15 @@
#' @title Monotone Accent Inverse Theme
#' @description An "inverted" default xaringan theme with a single color used
#' for color accents on select elements (headers, bold text, etc.).
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_mono_accent_inverse(
#' base_color = "#3c989e",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 12
- 0
man-roxygen/style_mono_dark.R View File

@@ -1,2 +1,14 @@
#' @title Monotone Dark Theme
#' @description A dark monotone theme based around a single color.
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_mono_dark(
#' base_color = "#cbf7ed",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 12
- 0
man-roxygen/style_mono_light.R View File

@@ -1,2 +1,14 @@
#' @title Monotone Light Theme
#' @description A light monotone theme based around a single color.
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_mono_light(
#' base_color = "#23395b",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 11
- 0
man-roxygen/style_solarized_dark.R View File

@@ -3,3 +3,14 @@
#' Works well with "\code{highlightStyle: solarized-dark}" or
#' "\code{highlighStyle: solarized-light}".
#' @references \url{http://ethanschoonover.com/solarized}
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_solarized_dark(
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 11
- 0
man-roxygen/style_solarized_light.R View File

@@ -3,3 +3,14 @@
#' Works well with "\code{highlightStyle: solarized-dark}" or
#' "\code{highlighStyle: solarized-light}".
#' @references \url{http://ethanschoonover.com/solarized}
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_solarized_light(
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 14
- 0
man-roxygen/style_xaringan.R View File

@@ -1,2 +1,16 @@
#' @title Write A Customized Xaringan Theme
#' @description Creates a customized Xaringan theme CSS file.
#' @examples
#' # Create a xaringan style in a temporary file
#' xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
#'
#' style_xaringan(
#' text_color = "#002b3",
#' inverse_background_color = "#31b09e",
#' inverse_text_color = "#002b3",
#' outfile = xaringan_themer_css # omit in your slides to write the
#' # styles to xaringan-themer.css
#' )
#'
#' # View the CSS:
#' # file.edit(xaringan_themer_css)

+ 14
- 0
man/style_duo.Rd View File

@@ -378,6 +378,20 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
A duotone theme designed to work well with two complementary
colors.
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_duo(
primary_color = "#1f4257",
secondary_color = "#f97b64",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

+ 14
- 0
man/style_duo_accent.Rd View File

@@ -391,6 +391,20 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
An default xaringan theme with a two colors used for color
accents on select elements (headers, bold text, etc.).
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_duo_accent(
primary_color = "#006747",
secondary_color = "#cfc493",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

+ 14
- 0
man/style_duo_accent_inverse.Rd View File

@@ -393,6 +393,20 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
An "inverted" default xaringan theme with a two colors used
for color accents on select elements (headers, bold text, etc.).
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_duo_accent_inverse(
primary_color = "#006747",
secondary_color = "#cfc493",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent}()},

+ 13
- 0
man/style_mono_accent.Rd View File

@@ -380,6 +380,19 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
The default xaringan theme with a single color used for color
accents on select elements (headers, bold text, etc.).
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_mono_accent(
base_color = "#43418A",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

+ 13
- 0
man/style_mono_accent_inverse.Rd View File

@@ -381,6 +381,19 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
An "inverted" default xaringan theme with a single color used
for color accents on select elements (headers, bold text, etc.).
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_mono_accent_inverse(
base_color = "#3c989e",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

+ 13
- 0
man/style_mono_dark.Rd View File

@@ -381,6 +381,19 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
\description{
A dark monotone theme based around a single color.
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_mono_dark(
base_color = "#cbf7ed",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

+ 13
- 0
man/style_mono_light.Rd View File

@@ -381,6 +381,19 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
\description{
A light monotone theme based around a single color.
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_mono_light(
base_color = "#23395b",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

+ 12
- 0
man/style_solarized_dark.Rd View File

@@ -368,6 +368,18 @@ A dark theme based around on the solarized color scheme.
Works well with "\code{highlightStyle: solarized-dark}" or
"\code{highlighStyle: solarized-light}".
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_solarized_dark(
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\references{
\url{http://ethanschoonover.com/solarized}
}

+ 12
- 0
man/style_solarized_light.Rd View File

@@ -368,6 +368,18 @@ A light theme based around on the solarized color scheme.
Works well with "\code{highlightStyle: solarized-dark}" or
"\code{highlighStyle: solarized-light}".
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_solarized_light(
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\references{
\url{http://ethanschoonover.com/solarized}
}

+ 15
- 0
man/style_xaringan.Rd View File

@@ -366,6 +366,21 @@ class with the \code{font-family} property. See the \strong{Fonts} section of
\description{
Creates a customized Xaringan theme CSS file.
}
\examples{
# Create a xaringan style in a temporary file
xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")

style_xaringan(
text_color = "#002b3",
inverse_background_color = "#31b09e",
inverse_text_color = "#002b3",
outfile = xaringan_themer_css # omit in your slides to write the
# styles to xaringan-themer.css
)

# View the CSS:
# file.edit(xaringan_themer_css)
}
\seealso{
Other themes:
\code{\link{style_duo_accent_inverse}()},

Loading…
Cancel
Save