Просмотр исходного кода

Feature: custom color classes

Inspired by tachyons, easily add additional colors to slides using the `colors` argument. The argument takes a named list or vector and adds a CSS variable with the color name. Also added are .<color> and .bg-<name> classes.
tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
e65d7b1dcf
47 измененных файлов: 1415 добавлений и 670 удалений
  1. +1
    -1
      DESCRIPTION
  2. +23
    -0
      R/color.R
  3. +7
    -0
      R/style_duo.R
  4. +7
    -0
      R/style_duo_accent.R
  5. +7
    -0
      R/style_duo_accent_inverse.R
  6. +7
    -0
      R/style_mono_accent.R
  7. +7
    -0
      R/style_mono_accent_inverse.R
  8. +7
    -0
      R/style_mono_dark.R
  9. +7
    -0
      R/style_mono_light.R
  10. +7
    -0
      R/style_solarized_dark.R
  11. +7
    -0
      R/style_solarized_light.R
  12. +10
    -0
      R/style_xaringan.R
  13. +13
    -1
      inst/resources/template.css
  14. +12
    -4
      inst/scripts/generate_theme_functions.R
  15. +2
    -0
      inst/scripts/style_xaringan_body.R
  16. +1
    -1
      man/apply_alpha.Rd
  17. +6
    -5
      man/google_language_codes.Rd
  18. +49
    -16
      man/scale_xaringan.Rd
  19. +87
    -57
      man/style_duo.Rd
  20. +92
    -65
      man/style_duo_accent.Rd
  21. +94
    -66
      man/style_duo_accent_inverse.Rd
  22. +90
    -57
      man/style_mono_accent.Rd
  23. +91
    -58
      man/style_mono_accent_inverse.Rd
  24. +89
    -57
      man/style_mono_dark.Rd
  25. +89
    -57
      man/style_mono_light.Rd
  26. +88
    -55
      man/style_solarized_dark.Rd
  27. +88
    -55
      man/style_solarized_light.Rd
  28. +83
    -52
      man/style_xaringan.Rd
  29. +22
    -24
      man/theme_xaringan.Rd
  30. +18
    -9
      man/theme_xaringan_base.Rd
  31. +22
    -24
      man/theme_xaringan_inverse.Rd
  32. +11
    -6
      man/theme_xaringan_set_defaults.Rd
  33. +1
    -0
      tests/testthat/css/duo-header_bg.css
  34. +1
    -0
      tests/testthat/css/duo.css
  35. +1
    -0
      tests/testthat/css/duo_accent.css
  36. +1
    -0
      tests/testthat/css/duo_accent_inverse.css
  37. +1
    -0
      tests/testthat/css/mono_accent.css
  38. +1
    -0
      tests/testthat/css/mono_accent_inverse.css
  39. +1
    -0
      tests/testthat/css/mono_dark.css
  40. +1
    -0
      tests/testthat/css/mono_light-header_bg.css
  41. +1
    -0
      tests/testthat/css/mono_light.css
  42. +1
    -0
      tests/testthat/css/solarized_dark-header_bg.css
  43. +1
    -0
      tests/testthat/css/solarized_dark.css
  44. +1
    -0
      tests/testthat/css/solarized_light.css
  45. +228
    -0
      tests/testthat/css/xaringan.css
  46. +26
    -0
      tests/testthat/test-color.R
  47. +5
    -0
      tests/testthat/test-themes.R

+ 1
- 1
DESCRIPTION Просмотреть файл

@@ -38,4 +38,4 @@ VignetteBuilder:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
RoxygenNote: 7.0.2

+ 23
- 0
R/color.R Просмотреть файл

@@ -0,0 +1,23 @@
prepare_colors <- function(colors = NULL) {
if (is.null(colors) || length(colors) < 1) return(NULL)

if (is.null(names(colors))) {
stop(
"`colors` must have names corresponding to valid CSS classes",
call. = FALSE
)
}

if (any(grepl("\\s", names(colors)))) {
stop(
"Color names in `colors` must be valid CSS classes",
" and cannot contain spaces",
call. = FALSE)
}

if (any(grepl("[^[:alpha:]_-]", names(colors)))) {
stop("Color names in `colors` must be valid CSS classes", call. = FALSE)
}

whisker::iteratelist(colors, "color_name")
}

+ 7
- 0
R/style_duo.R Просмотреть файл

@@ -58,6 +58,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -125,6 +131,7 @@ style_duo <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_duo_accent.R Просмотреть файл

@@ -60,6 +60,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -129,6 +135,7 @@ style_duo_accent <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_duo_accent_inverse.R Просмотреть файл

@@ -60,6 +60,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -129,6 +135,7 @@ style_duo_accent_inverse <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_mono_accent.R Просмотреть файл

@@ -59,6 +59,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -127,6 +133,7 @@ style_mono_accent <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_mono_accent_inverse.R Просмотреть файл

@@ -59,6 +59,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -127,6 +133,7 @@ style_mono_accent_inverse <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_mono_dark.R Просмотреть файл

@@ -59,6 +59,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -127,6 +133,7 @@ style_mono_dark <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_mono_light.R Просмотреть файл

@@ -59,6 +59,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -127,6 +133,7 @@ style_mono_light <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_solarized_dark.R Просмотреть файл

@@ -56,6 +56,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -121,6 +127,7 @@ style_solarized_dark <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 7
- 0
R/style_solarized_light.R Просмотреть файл

@@ -56,6 +56,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -121,6 +127,7 @@ style_solarized_light <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"

+ 10
- 0
R/style_xaringan.R Просмотреть файл

@@ -56,6 +56,12 @@
#' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class.
#' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the `@import url` elements.
#' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes.
#' @param colors A named vector of custom colors. The names of the colors
#' become CSS variables and classes that can be used within your slides.
#' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable
#' `--blue`, a `.blue` CSS class that applies the color to the text or
#' foreground color, and a `.bg-blue` CSS class that applies the color
#' to the background.
#' @template extra_css
#' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
#' @family themes
@@ -120,10 +126,12 @@ style_xaringan <- function(
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
# Make sure font names are wrapped in quotes if they have spaces
f_args <- names(formals(sys.function()))
for (var in f_args[grepl("font_family$", f_args)]) {
@@ -194,6 +202,8 @@ style_xaringan <- function(
ignore = header_background_ignore_classes
)
colors <- prepare_colors(colors)
tf <- system.file("resources", "template.css", package = "xaringanthemer")
template <- readLines(tf, warn = FALSE)
template <- paste(template, collapse = "\n")

+ 13
- 1
inst/resources/template.css Просмотреть файл

@@ -48,7 +48,10 @@
--inverse-background-color: {{inverse_background_color}};
--inverse-header-color: {{inverse_header_color}};
--title-slide-background-color: {{title_slide_background_color}};
--title-slide-text-color: {{title_slide_text_color}};
--title-slide-text-color: {{title_slide_text_color}};{{#colors}}
--{{color_name}}: {{value}};
{{/colors}}

}

html {
@@ -236,3 +239,12 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}

{{#colors}}
.{{color_name}} {
color: var(--{{color_name}});
}
.bg-{{color_name}} {
background-color: var(--{{color_name}});
}
{{/colors}}

+ 12
- 4
inst/scripts/generate_theme_functions.R Просмотреть файл

@@ -6,12 +6,13 @@ setup_theme_function <- function(
template = template_variables,
...,
file = "",
body = c(
" # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R",
" eval(parse(text = call_style_xaringan()))"
)
body = " eval(parse(text = call_style_xaringan()))"
) {
if (file == "clip" && !requireNamespace("clipr", quietly = TRUE)) file <- ""
body <- c(
" # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R",
body
)
tv <- template
null_default <- purrr::map_lgl(tv$default, is.null)
tv[null_default, "default"] <- "{NULL}"
@@ -24,6 +25,12 @@ setup_theme_function <- function(
"{element_description(element)}"
)
),
"#' @param colors A named vector of custom colors. The names of the colors",
"#' become CSS variables and classes that can be used within your slides.",
"#' For example, `colors = c(blue = \"#bad4ed\")` adds a CSS variable",
"#' `--blue`, a `.blue` CSS class that applies the color to the text or",
"#' foreground color, and a `.bg-blue` CSS class that applies the color",
"#' to the background.",
"#' @template extra_css",
"#' @param outfile Customized xaringan CSS output file name, default is \"xaringan-themer.css\"",
"#' @family themes",
@@ -35,6 +42,7 @@ setup_theme_function <- function(
" {variable} = {ifelse(!grepl('^[{].+[}]$', default), paste0('\"', default, '\"'), gsub('[{}]', '', default))},"
)
),
" colors = NULL,",
" extra_css = NULL,",
" extra_fonts = NULL,",
" outfile = \"xaringan-themer.css\"",

+ 2
- 0
inst/scripts/style_xaringan_body.R Просмотреть файл

@@ -68,6 +68,8 @@ header_background <- list(
ignore = header_background_ignore_classes
)

colors <- prepare_colors(colors)

tf <- system.file("resources", "template.css", package = "xaringanthemer")
template <- readLines(tf, warn = FALSE)
template <- paste(template, collapse = "\n")

+ 1
- 1
man/apply_alpha.Rd Просмотреть файл

@@ -13,6 +13,6 @@ apply_alpha(color_hex, opacity = 0.5)
}
\description{
Applies alpha (or opacity) to a color in hexadecimal form by
converting opacity in the \code{[0, 1]} range to hex in the \code{[0, 255]} range
converting opacity in the \verb{[0, 1]} range to hex in the \verb{[0, 255]} range
and appending to the hex color.
}

+ 6
- 5
man/google_language_codes.Rd Просмотреть файл

@@ -4,11 +4,12 @@
\alias{google_language_codes}
\title{List Valid Google Language Codes}
\usage{
google_language_codes(language_codes = c("latin", "latin-ext", "sinhala",
"greek", "hebrew", "vietnamese", "cyrillic", "cyrillic-ext",
"devanagari", "arabic", "khmer", "tamil", "greek-ext", "thai", "bengali",
"gujarati", "oriya", "malayalam", "gurmukhi", "kannada", "telugu",
"myanmar"))
google_language_codes(
language_codes = c("latin", "latin-ext", "sinhala", "greek", "hebrew", "vietnamese",
"cyrillic", "cyrillic-ext", "devanagari", "arabic", "khmer", "tamil", "greek-ext",
"thai", "bengali", "gujarati", "oriya", "malayalam", "gurmukhi", "kannada", "telugu",
"myanmar")
)
}
\arguments{
\item{language_codes}{Vector of potential Google language codes}

+ 49
- 16
man/scale_xaringan.Rd Просмотреть файл

@@ -12,29 +12,62 @@
\alias{scale_xaringan_colour_continuous}
\title{Xaringan Themer ggplot2 Scales}
\usage{
scale_xaringan_discrete(aes_type = c("color", "colour", "fill"), ...,
color = NULL, direction = 1, inverse = FALSE)
scale_xaringan_discrete(
aes_type = c("color", "colour", "fill"),
...,
color = NULL,
direction = 1,
inverse = FALSE
)

scale_xaringan_fill_discrete(..., color = NULL, direction = 1,
inverse = FALSE)
scale_xaringan_fill_discrete(..., color = NULL, direction = 1, inverse = FALSE)

scale_xaringan_color_discrete(..., color = NULL, direction = 1,
inverse = FALSE)
scale_xaringan_color_discrete(
...,
color = NULL,
direction = 1,
inverse = FALSE
)

scale_xaringan_colour_discrete(..., color = NULL, direction = 1,
inverse = FALSE)
scale_xaringan_colour_discrete(
...,
color = NULL,
direction = 1,
inverse = FALSE
)

scale_xaringan_continuous(aes_type = c("color", "colour", "fill"), ...,
color = NULL, begin = 0, end = 1, inverse = FALSE)
scale_xaringan_continuous(
aes_type = c("color", "colour", "fill"),
...,
color = NULL,
begin = 0,
end = 1,
inverse = FALSE
)

scale_xaringan_fill_continuous(..., color = NULL, begin = 0, end = 1,
inverse = FALSE)
scale_xaringan_fill_continuous(
...,
color = NULL,
begin = 0,
end = 1,
inverse = FALSE
)

scale_xaringan_color_continuous(..., color = NULL, begin = 0,
end = 1, inverse = FALSE)
scale_xaringan_color_continuous(
...,
color = NULL,
begin = 0,
end = 1,
inverse = FALSE
)

scale_xaringan_colour_continuous(..., color = NULL, begin = 0,
end = 1, inverse = FALSE)
scale_xaringan_colour_continuous(
...,
color = NULL,
begin = 0,
end = 1,
inverse = FALSE
)
}
\arguments{
\item{aes_type}{The type of aesthetic to which the scale is being applied.

+ 87
- 57
man/style_duo.Rd Просмотреть файл

@@ -4,54 +4,75 @@
\alias{style_duo}
\title{Duotone Theme}
\usage{
style_duo(primary_color = "#1F4257", secondary_color = "#F97B64",
text_color = choose_dark_or_light(primary_color,
darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99)),
header_color = secondary_color, background_color = primary_color,
link_color = secondary_color, text_bold_color = secondary_color,
style_duo(
primary_color = "#1F4257",
secondary_color = "#F97B64",
text_color = choose_dark_or_light(primary_color, darken_color(primary_color, 0.9),
lighten_color(secondary_color, 0.99)),
header_color = secondary_color,
background_color = primary_color,
link_color = secondary_color,
text_bold_color = secondary_color,
text_slide_number_color = text_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = secondary_color,
code_inline_background_color = NULL, code_inline_font_size = "1em",
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = secondary_color,
inverse_text_color = primary_color, inverse_text_shadow = FALSE,
inverse_text_color = primary_color,
inverse_text_shadow = FALSE,
inverse_header_color = primary_color,
title_slide_text_color = secondary_color,
title_slide_background_color = primary_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(secondary_color, 0.6),
left_column_selected_color = secondary_color,
blockquote_left_border_color = apply_alpha(secondary_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = lighten_color(primary_color, 0.3),
text_font_size = "20px", header_h1_font_size = "55px",
header_h2_font_size = "45px", header_h3_font_size = "35px",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{primary_color}{Duotone Primary Color. Defaults to #1F4257. Modifies multiple CSS classes or elements.}
@@ -60,17 +81,17 @@ style_duo(primary_color = "#1F4257", secondary_color = "#F97B64",

\item{text_color}{Text Color. Defaults to \code{choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{secondary_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{secondary_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{secondary_color}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{secondary_color}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{secondary_color}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{text_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -92,7 +113,7 @@ style_duo(primary_color = "#1F4257", secondary_color = "#F97B64",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{primary_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{primary_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{secondary_color}. Modifies the \code{.title-slide} class.}

@@ -110,33 +131,33 @@ style_duo(primary_color = "#1F4257", secondary_color = "#F97B64",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(secondary_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(secondary_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{secondary_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{secondary_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(primary_color, 0.3)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(primary_color, 0.3)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -150,7 +171,7 @@ style_duo(primary_color = "#1F4257", secondary_color = "#F97B64",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -158,21 +179,28 @@ style_duo(primary_color = "#1F4257", secondary_color = "#F97B64",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -189,18 +217,20 @@ A duotone theme designed to work well with two complementary
colors.
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Duotone themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Duotone themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()}
}
\concept{Duotone themes}
\concept{themes}

+ 92
- 65
man/style_duo_accent.Rd Просмотреть файл

@@ -4,60 +4,78 @@
\alias{style_duo_accent}
\title{Duotone Accent Theme}
\usage{
style_duo_accent(primary_color = "#006747",
secondary_color = "#CFC493", white_color = "#FFFFFF",
black_color = "#000000", text_color = black_color,
header_color = primary_color, background_color = white_color,
link_color = choose_dark_or_light(secondary_color, primary_color,
secondary_color),
style_duo_accent(
primary_color = "#006747",
secondary_color = "#CFC493",
white_color = "#FFFFFF",
black_color = "#000000",
text_color = black_color,
header_color = primary_color,
background_color = white_color,
link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color),
text_bold_color = choose_dark_or_light(secondary_color, primary_color,
secondary_color), text_slide_number_color = primary_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
secondary_color),
text_slide_number_color = primary_color,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = choose_dark_or_light(secondary_color,
primary_color, secondary_color), code_inline_background_color = NULL,
code_inline_color = choose_dark_or_light(secondary_color, primary_color,
secondary_color),
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = secondary_color,
inverse_text_color = choose_dark_or_light(secondary_color, black_color,
white_color), inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color,
black_color, white_color),
title_slide_text_color = choose_dark_or_light(primary_color,
black_color, white_color),
inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
title_slide_background_color = primary_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(primary_color, 0.6),
left_column_selected_color = primary_color,
blockquote_left_border_color = apply_alpha(secondary_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = lighten_color(secondary_color, 0.3),
text_font_size = "20px", header_h1_font_size = "55px",
header_h2_font_size = "45px", header_h3_font_size = "35px",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{primary_color}{Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.}
@@ -70,17 +88,17 @@ style_duo_accent(primary_color = "#006747",

\item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -102,7 +120,7 @@ style_duo_accent(primary_color = "#006747",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies the \code{.title-slide} class.}

@@ -120,33 +138,33 @@ style_duo_accent(primary_color = "#006747",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(secondary_color, 0.3)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(secondary_color, 0.3)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -160,7 +178,7 @@ style_duo_accent(primary_color = "#006747",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -168,21 +186,28 @@ style_duo_accent(primary_color = "#006747",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -199,18 +224,20 @@ An default xaringan theme with a two colors used for color
accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Duotone themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Duotone themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo}()}
}
\concept{Duotone themes}
\concept{themes}

+ 94
- 66
man/style_duo_accent_inverse.Rd Просмотреть файл

@@ -4,60 +4,79 @@
\alias{style_duo_accent_inverse}
\title{Duotone Accent Inverse Theme}
\usage{
style_duo_accent_inverse(primary_color = "#006747",
secondary_color = "#CFC493", white_color = "#FFFFFF",
black_color = "#000000", text_color = white_color,
header_color = primary_color, background_color = black_color,
link_color = choose_dark_or_light(secondary_color, secondary_color,
primary_color), text_bold_color = choose_dark_or_light(secondary_color,
secondary_color, primary_color),
style_duo_accent_inverse(
primary_color = "#006747",
secondary_color = "#CFC493",
white_color = "#FFFFFF",
black_color = "#000000",
text_color = white_color,
header_color = primary_color,
background_color = black_color,
link_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
text_bold_color = choose_dark_or_light(secondary_color, secondary_color,
primary_color),
text_slide_number_color = primary_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = choose_dark_or_light(secondary_color,
secondary_color, primary_color), code_inline_background_color = NULL,
code_inline_color = choose_dark_or_light(secondary_color, secondary_color,
primary_color),
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = secondary_color,
inverse_text_color = choose_dark_or_light(secondary_color, black_color,
white_color), inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color,
black_color, white_color),
title_slide_text_color = choose_dark_or_light(primary_color,
black_color, white_color),
inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
title_slide_background_color = primary_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(primary_color, 0.6),
left_column_selected_color = primary_color,
blockquote_left_border_color = apply_alpha(secondary_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = darken_color(choose_dark_or_light(primary_color,
secondary_color, primary_color), 0.3), text_font_size = "20px",
header_h1_font_size = "55px", header_h2_font_size = "45px",
header_h3_font_size = "35px", header_background_auto = FALSE,
secondary_color, primary_color), 0.3),
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{primary_color}{Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.}
@@ -70,17 +89,17 @@ style_duo_accent_inverse(primary_color = "#006747",

\item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -102,7 +121,7 @@ style_duo_accent_inverse(primary_color = "#006747",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies the \code{.title-slide} class.}

@@ -120,33 +139,33 @@ style_duo_accent_inverse(primary_color = "#006747",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -160,7 +179,7 @@ style_duo_accent_inverse(primary_color = "#006747",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -168,21 +187,28 @@ style_duo_accent_inverse(primary_color = "#006747",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -199,18 +225,20 @@ An "inverted" default xaringan theme with a two colors used
for color accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{style_duo_accent}},
\code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Duotone themes: \code{\link{style_duo_accent}},
\code{\link{style_duo}}
Other themes:
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Duotone themes:
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()}
}
\concept{Duotone themes}
\concept{themes}

+ 90
- 57
man/style_mono_accent.Rd Просмотреть файл

@@ -4,52 +4,75 @@
\alias{style_mono_accent}
\title{Monotone Accent Theme}
\usage{
style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF",
black_color = "#272822", text_color = black_color,
header_color = base_color, background_color = white_color,
link_color = base_color, text_bold_color = base_color,
style_mono_accent(
base_color = "#43418A",
white_color = "#FFFFFF",
black_color = "#272822",
text_color = black_color,
header_color = base_color,
background_color = white_color,
link_color = base_color,
text_bold_color = base_color,
text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = base_color, code_inline_background_color = NULL,
code_inline_font_size = "1em", inverse_background_color = base_color,
inverse_text_color = white_color, inverse_text_shadow = FALSE,
code_inline_color = base_color,
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = base_color,
inverse_text_color = white_color,
inverse_text_shadow = FALSE,
inverse_header_color = white_color,
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(base_color, 0.6),
left_column_selected_color = base_color,
blockquote_left_border_color = apply_alpha(base_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = lighten_color(base_color, 0.7),
text_font_size = "20px", header_h1_font_size = "55px",
header_h2_font_size = "45px", header_h3_font_size = "35px",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{base_color}{Monotone Base Color, works best with a strong color. Defaults to #43418A. Modifies multiple CSS classes or elements.}
@@ -60,17 +83,17 @@ style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF",

\item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -92,7 +115,7 @@ style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -110,33 +133,33 @@ style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.7)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.7)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -150,7 +173,7 @@ style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -158,21 +181,28 @@ style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -189,18 +219,21 @@ The default xaringan theme with a single color used for color
accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Monotone themes: \code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Monotone themes:
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()}
}
\concept{Monotone themes}
\concept{themes}

+ 91
- 58
man/style_mono_accent_inverse.Rd Просмотреть файл

@@ -4,52 +4,75 @@
\alias{style_mono_accent_inverse}
\title{Monotone Accent Inverse Theme}
\usage{
style_mono_accent_inverse(base_color = "#3C989E",
white_color = "#FFFFFF", black_color = darken_color(base_color, 0.9),
text_color = white_color, header_color = base_color,
background_color = black_color, link_color = base_color,
text_bold_color = base_color, text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
style_mono_accent_inverse(
base_color = "#3C989E",
white_color = "#FFFFFF",
black_color = darken_color(base_color, 0.9),
text_color = white_color,
header_color = base_color,
background_color = black_color,
link_color = base_color,
text_bold_color = base_color,
text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = base_color, code_inline_background_color = NULL,
code_inline_font_size = "1em", inverse_background_color = base_color,
inverse_text_color = black_color, inverse_text_shadow = FALSE,
code_inline_color = base_color,
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = base_color,
inverse_text_color = black_color,
inverse_text_shadow = FALSE,
inverse_header_color = black_color,
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(base_color, 0.6),
left_column_selected_color = base_color,
blockquote_left_border_color = apply_alpha(base_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = darken_color(base_color, 0.7),
text_font_size = "20px", header_h1_font_size = "55px",
header_h2_font_size = "45px", header_h3_font_size = "35px",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{base_color}{Monotone Base Color, works best with a light color. Defaults to #3C989E. Modifies multiple CSS classes or elements.}
@@ -60,17 +83,17 @@ style_mono_accent_inverse(base_color = "#3C989E",

\item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -92,7 +115,7 @@ style_mono_accent_inverse(base_color = "#3C989E",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -110,33 +133,33 @@ style_mono_accent_inverse(base_color = "#3C989E",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -150,7 +173,7 @@ style_mono_accent_inverse(base_color = "#3C989E",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -158,21 +181,28 @@ style_mono_accent_inverse(base_color = "#3C989E",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -189,18 +219,21 @@ An "inverted" default xaringan theme with a single color used
for color accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Monotone themes: \code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Monotone themes:
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()}
}
\concept{Monotone themes}
\concept{themes}

+ 89
- 57
man/style_mono_dark.Rd Просмотреть файл

@@ -4,53 +4,75 @@
\alias{style_mono_dark}
\title{Monotone Dark Theme}
\usage{
style_mono_dark(base_color = "#cbf7ed",
style_mono_dark(
base_color = "#cbf7ed",
white_color = lighten_color(base_color, 0.8),
black_color = darken_color(base_color, 0.85),
text_color = white_color, header_color = base_color,
background_color = black_color, link_color = base_color,
text_bold_color = base_color, text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
text_color = white_color,
header_color = base_color,
background_color = black_color,
link_color = base_color,
text_bold_color = base_color,
text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = base_color, code_inline_background_color = NULL,
code_inline_font_size = "1em", inverse_background_color = base_color,
inverse_text_color = black_color, inverse_text_shadow = FALSE,
code_inline_color = base_color,
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = base_color,
inverse_text_color = black_color,
inverse_text_shadow = FALSE,
inverse_header_color = black_color,
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(base_color, 0.6),
left_column_selected_color = base_color,
blockquote_left_border_color = apply_alpha(base_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = darken_color(base_color, 0.7),
text_font_size = "20px", header_h1_font_size = "55px",
header_h2_font_size = "45px", header_h3_font_size = "35px",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{base_color}{Monotone Base Color, works best with a light color.. Defaults to #cbf7ed. Modifies multiple CSS classes or elements.}
@@ -61,17 +83,17 @@ style_mono_dark(base_color = "#cbf7ed",

\item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -93,7 +115,7 @@ style_mono_dark(base_color = "#cbf7ed",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -111,33 +133,33 @@ style_mono_dark(base_color = "#cbf7ed",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -151,7 +173,7 @@ style_mono_dark(base_color = "#cbf7ed",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -159,21 +181,28 @@ style_mono_dark(base_color = "#cbf7ed",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -189,18 +218,21 @@ can be either a URL as a character string or a call to
A dark monotone theme based around a single color.
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Monotone themes: \code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_light}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Monotone themes:
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_light}()}
}
\concept{Monotone themes}
\concept{themes}

+ 89
- 57
man/style_mono_light.Rd Просмотреть файл

@@ -4,53 +4,75 @@
\alias{style_mono_light}
\title{Monotone Light Theme}
\usage{
style_mono_light(base_color = "#23395b",
style_mono_light(
base_color = "#23395b",
white_color = lighten_color(base_color, 0.9),
black_color = darken_color(base_color, 0.3),
text_color = black_color, header_color = base_color,
background_color = white_color, link_color = base_color,
text_bold_color = base_color, text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
text_color = black_color,
header_color = base_color,
background_color = white_color,
link_color = base_color,
text_bold_color = base_color,
text_slide_number_color = base_color,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = base_color, code_inline_background_color = NULL,
code_inline_font_size = "1em", inverse_background_color = base_color,
inverse_text_color = white_color, inverse_text_shadow = FALSE,
code_inline_color = base_color,
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = base_color,
inverse_text_color = white_color,
inverse_text_shadow = FALSE,
inverse_header_color = white_color,
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = apply_alpha(base_color, 0.6),
left_column_selected_color = base_color,
blockquote_left_border_color = apply_alpha(base_color, 0.5),
table_border_color = "#666", table_row_border_color = "#ddd",
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = lighten_color(base_color, 0.8),
text_font_size = "20px", header_h1_font_size = "55px",
header_h2_font_size = "45px", header_h3_font_size = "35px",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{base_color}{Monotone base color, works best with a strong color. Defaults to #23395b. Modifies multiple CSS classes or elements.}
@@ -61,17 +83,17 @@ style_mono_light(base_color = "#23395b",

\item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -93,7 +115,7 @@ style_mono_light(base_color = "#23395b",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -111,33 +133,33 @@ style_mono_light(base_color = "#23395b",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.8)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.8)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -151,7 +173,7 @@ style_mono_light(base_color = "#23395b",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -159,21 +181,28 @@ style_mono_light(base_color = "#23395b",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -189,18 +218,21 @@ can be either a URL as a character string or a call to
A light monotone theme based around a single color.
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Monotone themes: \code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Monotone themes:
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()}
}
\concept{Monotone themes}
\concept{themes}

+ 88
- 55
man/style_solarized_dark.Rd Просмотреть файл

@@ -4,64 +4,87 @@
\alias{style_solarized_dark}
\title{Solarized Dark Theme}
\usage{
style_solarized_dark(text_color = "#839496", header_color = "#dc322f",
background_color = "#002b36", link_color = "#b58900",
text_bold_color = "#d33682", text_slide_number_color = "#586e75",
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
code_highlight_color = "#268bd240", code_inline_color = "#6c71c4",
code_inline_background_color = NULL, code_inline_font_size = "1em",
inverse_background_color = "#fdf6e3", inverse_text_color = "#002b36",
style_solarized_dark(
text_color = "#839496",
header_color = "#dc322f",
background_color = "#002b36",
link_color = "#b58900",
text_bold_color = "#d33682",
text_slide_number_color = "#586e75",
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "#268bd240",
code_inline_color = "#6c71c4",
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = "#fdf6e3",
inverse_text_color = "#002b36",
inverse_text_shadow = FALSE,
inverse_header_color = inverse_text_color,
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = "#586e75",
left_column_selected_color = "#93a1a1",
blockquote_left_border_color = "#cb4b16",
table_border_color = "#657b83", table_row_border_color = "#657b83",
table_row_even_background_color = "#073642", text_font_size = "20px",
header_h1_font_size = "55px", header_h2_font_size = "45px",
header_h3_font_size = "35px", header_background_auto = FALSE,
table_border_color = "#657b83",
table_row_border_color = "#657b83",
table_row_even_background_color = "#073642",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{text_color}{Text Color. Defaults to #839496. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to #dc322f. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to #dc322f. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to #002b36. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to #b58900. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to #b58900. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to #d33682. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to #586e75. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -83,7 +106,7 @@ style_solarized_dark(text_color = "#839496", header_color = "#dc322f",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -101,33 +124,33 @@ style_solarized_dark(text_color = "#839496", header_color = "#dc322f",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to #586e75. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to #586e75. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to #93a1a1. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to #93a1a1. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to #cb4b16. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #657b83. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #657b83. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #657b83. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #657b83. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #073642. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #073642. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -141,7 +164,7 @@ style_solarized_dark(text_color = "#839496", header_color = "#dc322f",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -149,21 +172,28 @@ style_solarized_dark(text_color = "#839496", header_color = "#dc322f",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -184,16 +214,19 @@ Works well with "\code{highlightStyle: solarized-dark}" or
\url{http://ethanschoonover.com/solarized}
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_light}},
\code{\link{style_xaringan}}

Other Solarized themes: \code{\link{style_solarized_light}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_light}()},
\code{\link{style_xaringan}()}

Other Solarized themes:
\code{\link{style_solarized_light}()}
}
\concept{Solarized themes}
\concept{themes}

+ 88
- 55
man/style_solarized_light.Rd Просмотреть файл

@@ -4,64 +4,87 @@
\alias{style_solarized_light}
\title{Solarized Light Theme}
\usage{
style_solarized_light(text_color = "#657b83", header_color = "#dc322f",
background_color = "#fdf6e3", link_color = "#b58900",
text_bold_color = "#d33682", text_slide_number_color = "#93a1a1",
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
code_highlight_color = "#268bd240", code_inline_color = "#6c71c4",
code_inline_background_color = NULL, code_inline_font_size = "1em",
inverse_background_color = "#002b36", inverse_text_color = "#fdf6e3",
style_solarized_light(
text_color = "#657b83",
header_color = "#dc322f",
background_color = "#fdf6e3",
link_color = "#b58900",
text_bold_color = "#d33682",
text_slide_number_color = "#93a1a1",
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "#268bd240",
code_inline_color = "#6c71c4",
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = "#002b36",
inverse_text_color = "#fdf6e3",
inverse_text_shadow = FALSE,
inverse_header_color = inverse_text_color,
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = "#93a1a1",
left_column_selected_color = "#586e75",
blockquote_left_border_color = "#cb4b16",
table_border_color = "#839496", table_row_border_color = "#839496",
table_row_even_background_color = "#eee8d5", text_font_size = "20px",
header_h1_font_size = "55px", header_h2_font_size = "45px",
header_h3_font_size = "35px", header_background_auto = FALSE,
table_border_color = "#839496",
table_row_border_color = "#839496",
table_row_even_background_color = "#eee8d5",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{text_color}{Text Color. Defaults to #657b83. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to #dc322f. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to #dc322f. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to #fdf6e3. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to #b58900. Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to #b58900. Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to #d33682. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to #93a1a1. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -83,7 +106,7 @@ style_solarized_light(text_color = "#657b83", header_color = "#dc322f",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -101,33 +124,33 @@ style_solarized_light(text_color = "#657b83", header_color = "#dc322f",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to #93a1a1. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to #93a1a1. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to #586e75. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to #586e75. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to #cb4b16. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #839496. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #839496. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #839496. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #839496. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee8d5. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee8d5. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -141,7 +164,7 @@ style_solarized_light(text_color = "#657b83", header_color = "#dc322f",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -149,21 +172,28 @@ style_solarized_light(text_color = "#657b83", header_color = "#dc322f",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -184,16 +214,19 @@ Works well with "\code{highlightStyle: solarized-dark}" or
\url{http://ethanschoonover.com/solarized}
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_xaringan}}

Other Solarized themes: \code{\link{style_solarized_dark}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_xaringan}()}

Other Solarized themes:
\code{\link{style_solarized_dark}()}
}
\concept{Solarized themes}
\concept{themes}

+ 83
- 52
man/style_xaringan.Rd Просмотреть файл

@@ -4,65 +4,87 @@
\alias{style_xaringan}
\title{Write A Customized Xaringan Theme}
\usage{
style_xaringan(text_color = "#000", header_color = "#000",
background_color = "#FFF", link_color = "rgb(249, 38, 114)",
style_xaringan(
text_color = "#000",
header_color = "#000",
background_color = "#FFF",
link_color = "rgb(249, 38, 114)",
text_bold_color = NULL,
text_slide_number_color = inverse_background_color,
padding = "1rem 4rem 1rem 4rem", background_image = NULL,
background_size = NULL, background_position = NULL,
padding = "1rem 4rem 1rem 4rem",
background_image = NULL,
background_size = NULL,
background_position = NULL,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = "#000", code_inline_background_color = NULL,
code_inline_font_size = "1em", inverse_background_color = "#272822",
inverse_text_color = "#d6d6d6", inverse_text_shadow = FALSE,
code_inline_color = "#000",
code_inline_background_color = NULL,
code_inline_font_size = "1em",
inverse_background_color = "#272822",
inverse_text_color = "#d6d6d6",
inverse_text_shadow = FALSE,
inverse_header_color = "#f3f3f3",
title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
title_slide_background_position = NULL, footnote_color = NULL,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
title_slide_background_position = NULL,
footnote_color = NULL,
footnote_font_size = "0.9em",
footnote_position_bottom = "3em",
left_column_subtle_color = "#777",
left_column_selected_color = "#000",
blockquote_left_border_color = "lightgray",
table_border_color = "#666", table_row_border_color = "#ddd",
table_row_even_background_color = "#eee", text_font_size = "20px",
header_h1_font_size = "55px", header_h2_font_size = "45px",
header_h3_font_size = "35px", header_background_auto = FALSE,
table_border_color = "#666",
table_row_border_color = "#ddd",
table_row_even_background_color = "#eee",
text_font_size = "20px",
header_h1_font_size = "55px",
header_h2_font_size = "45px",
header_h3_font_size = "35px",
header_background_auto = FALSE,
header_background_color = header_color,
header_background_text_color = background_color,
header_background_padding = "2rem 4rem 1.5rem 4rem",
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title",
"middle", "bottom"), text_slide_number_font_size = "0.9em",
text_font_google = NULL, text_font_family = "'Droid Serif'",
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9em",
text_font_google = NULL,
text_font_family = "'Droid Serif'",
text_font_weight = "normal",
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif", header_font_google = NULL,
text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
text_font_base = "serif",
header_font_google = NULL,
header_font_family = "'Yanone Kaffeesatz'",
header_font_weight = "normal",
header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_google = NULL,
code_font_family = "'Source Code Pro'",
code_font_size = "0.9em",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
colors = NULL,
extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css"
)
}
\arguments{
\item{text_color}{Text Color. Defaults to #000. Modifies the \code{body} element.}

\item{header_color}{Header Color. Defaults to #000. Modifies the \code{h1, h2, h3} elements.}
\item{header_color}{Header Color. Defaults to #000. Modifies the \verb{h1, h2, h3} elements.}

\item{background_color}{Slide Background Color. Defaults to #FFF. Modifies the \code{.remark-slide-content} class.}

\item{link_color}{Link Color. Defaults to rgb(249, 38, 114). Modifies the \code{a, a > code} elements.}
\item{link_color}{Link Color. Defaults to rgb(249, 38, 114). Modifies the \verb{a, a > code} elements.}

\item{text_bold_color}{Bold Text Color. Defaults to \code{NULL}. Modifies the \code{strong} element.}

\item{text_slide_number_color}{Slide Number Color. Defaults to \code{inverse_background_color}. Modifies the \code{.remark-slide-number} class.}

\item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}
\item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.}

\item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}

@@ -84,7 +106,7 @@ style_xaringan(text_color = "#000", header_color = "#000",

\item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}

\item{inverse_header_color}{Inverse Header Color. Defaults to #f3f3f3. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.}
\item{inverse_header_color}{Inverse Header Color. Defaults to #f3f3f3. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}

\item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}

@@ -102,33 +124,33 @@ style_xaringan(text_color = "#000", header_color = "#000",

\item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.}

\item{left_column_subtle_color}{Left Column Text (not last). Defaults to #777. Modifies the \code{.left-column h2, .left-column h3} classes.}
\item{left_column_subtle_color}{Left Column Text (not last). Defaults to #777. Modifies the \verb{.left-column h2, .left-column h3} classes.}

\item{left_column_selected_color}{Left Column Current Selection. Defaults to #000. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
\item{left_column_selected_color}{Left Column Current Selection. Defaults to #000. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}

\item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to lightgray. Modifies the \code{blockquote} element.}

\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.}
\item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}

\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.}
\item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}

\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.}
\item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}

\item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.}

\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.}
\item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.}
\item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.}

\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.}
\item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.}

\item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}

\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.}
\item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.}

\item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}

@@ -142,7 +164,7 @@ style_xaringan(text_color = "#000", header_color = "#000",

\item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}

\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.}
\item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.}

\item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}

@@ -150,21 +172,28 @@ style_xaringan(text_color = "#000", header_color = "#000",

\item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.}
\item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}

\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.}
\item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.}

\item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.}

\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.}

\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.}
\item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.}

\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.}
\item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}

\item{colors}{A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
\code{--blue}, a \code{.blue} CSS class that applies the color to the text or
foreground color, and a \code{.bg-blue} CSS class that applies the color
to the background.}

\item{extra_css}{A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
@@ -180,13 +209,15 @@ can be either a URL as a character string or a call to
Creates a customized Xaringan theme CSS file.
}
\seealso{
Other themes: \code{\link{style_duo_accent_inverse}},
\code{\link{style_duo_accent}}, \code{\link{style_duo}},
\code{\link{style_mono_accent_inverse}},
\code{\link{style_mono_accent}},
\code{\link{style_mono_dark}},
\code{\link{style_mono_light}},
\code{\link{style_solarized_dark}},
\code{\link{style_solarized_light}}
Other themes:
\code{\link{style_duo_accent_inverse}()},
\code{\link{style_duo_accent}()},
\code{\link{style_duo}()},
\code{\link{style_mono_accent_inverse}()},
\code{\link{style_mono_accent}()},
\code{\link{style_mono_dark}()},
\code{\link{style_mono_light}()},
\code{\link{style_solarized_dark}()},
\code{\link{style_solarized_light}()}
}
\concept{themes}

+ 22
- 24
man/theme_xaringan.Rd Просмотреть файл

@@ -4,8 +4,13 @@
\alias{theme_xaringan}
\title{A Plot Theme for ggplot2 by xaringanthemer}
\usage{
theme_xaringan(text_color = NULL, background_color = NULL,
accent_color = NULL, accent_secondary_color = NULL, ...)
theme_xaringan(
text_color = NULL,
background_color = NULL,
accent_color = NULL,
accent_secondary_color = NULL,
...
)
}
\arguments{
\item{text_color}{Color for text and foreground, inherits from \code{text_color}}
@@ -19,33 +24,25 @@ theme_xaringan(text_color = NULL, background_color = NULL,
\item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color}}

\item{...}{Arguments passed on to \code{theme_xaringan_base}
\describe{
\item{text_color}{Color for text and foreground}
\item{background_color}{Color for background}
\item{accent_color}{Color for titles and accents, inherits from
\code{header_color} or \code{text_color}. Used for the \code{title} base setting in
\code{\link[ggplot2:theme]{ggplot2::theme()}}, and additionally for setting the \code{color} or \code{fill} of
\pkg{ggplot2} geom defaults.}
\item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color} or \code{accent_color}. Used only when setting \pkg{ggplot2} geom
defaults.}
\item{set_ggplot_defaults}{Should defaults be set for \pkg{ggplot2} \emph{geoms}?
\item{...}{
Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}}
\describe{
\item{\code{set_ggplot_defaults}}{Should defaults be set for \pkg{ggplot2} \emph{geoms}?
Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.}
\item{text_font}{Font to use for text elements, passed to
\item{\code{text_font}}{Font to use for text elements, passed to
\code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is
\code{TRUE}. Inherits from \code{text_font_family}.}
\item{text_font_use_google}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{text_font_size}{Base text font size, inherits from \code{text_font_size}, or
\item{\code{text_font_use_google}}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{\code{text_font_size}}{Base text font size, inherits from \code{text_font_size}, or
defaults to 11.}
\item{title_font}{Font to use for title elements, passed to
\item{\code{title_font}}{Font to use for title elements, passed to
\code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is
\code{TRUE}. Inherits from \code{title_font_family}.}
\item{title_font_use_google}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{title_font_size}{Base text font size, inherits from \code{title_font_size},
\item{\code{title_font_use_google}}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{\code{title_font_size}}{Base text font size, inherits from \code{title_font_size},
or defaults to 14.}
}}
}}
}
\value{
A ggplot2 theme
@@ -70,8 +67,9 @@ if (requireNamespace("ggplot2", quietly = TRUE)) {
}
}
\seealso{
Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}},
\code{\link{theme_xaringan_inverse}},
\code{\link{theme_xaringan_set_defaults}}
Other xaringanthemer ggplot2 themes:
\code{\link{theme_xaringan_base}()},
\code{\link{theme_xaringan_inverse}()},
\code{\link{theme_xaringan_set_defaults}()}
}
\concept{xaringanthemer ggplot2 themes}

+ 18
- 9
man/theme_xaringan_base.Rd Просмотреть файл

@@ -4,12 +4,20 @@
\alias{theme_xaringan_base}
\title{The ggplot2 xaringanthemer base plot theme}
\usage{
theme_xaringan_base(text_color, background_color, ...,
set_ggplot_defaults = TRUE, accent_color = NULL,
accent_secondary_color = NULL, text_font = NULL,
text_font_use_google = NULL, text_font_size = NULL,
title_font = NULL, title_font_use_google = NULL,
title_font_size = NULL)
theme_xaringan_base(
text_color,
background_color,
...,
set_ggplot_defaults = TRUE,
accent_color = NULL,
accent_secondary_color = NULL,
text_font = NULL,
text_font_use_google = NULL,
text_font_size = NULL,
title_font = NULL,
title_font_use_google = NULL,
title_font_size = NULL
)
}
\arguments{
\item{text_color}{Color for text and foreground}
@@ -98,8 +106,9 @@ if (requireNamespace("ggplot2", quietly = TRUE)) {
}
}
\seealso{
Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_inverse}},
\code{\link{theme_xaringan_set_defaults}},
\code{\link{theme_xaringan}}
Other xaringanthemer ggplot2 themes:
\code{\link{theme_xaringan_inverse}()},
\code{\link{theme_xaringan_set_defaults}()},
\code{\link{theme_xaringan}()}
}
\concept{xaringanthemer ggplot2 themes}

+ 22
- 24
man/theme_xaringan_inverse.Rd Просмотреть файл

@@ -4,8 +4,13 @@
\alias{theme_xaringan_inverse}
\title{An Inverse Plot Theme for ggplot2 by xaringanthemer}
\usage{
theme_xaringan_inverse(text_color = NULL, background_color = NULL,
accent_color = NULL, accent_secondary_color = NULL, ...)
theme_xaringan_inverse(
text_color = NULL,
background_color = NULL,
accent_color = NULL,
accent_secondary_color = NULL,
...
)
}
\arguments{
\item{text_color}{Color for text and foreground, inherits from \code{text_color}}
@@ -19,33 +24,25 @@ theme_xaringan_inverse(text_color = NULL, background_color = NULL,
\item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color}}

\item{...}{Arguments passed on to \code{theme_xaringan_base}
\describe{
\item{text_color}{Color for text and foreground}
\item{background_color}{Color for background}
\item{accent_color}{Color for titles and accents, inherits from
\code{header_color} or \code{text_color}. Used for the \code{title} base setting in
\code{\link[ggplot2:theme]{ggplot2::theme()}}, and additionally for setting the \code{color} or \code{fill} of
\pkg{ggplot2} geom defaults.}
\item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color} or \code{accent_color}. Used only when setting \pkg{ggplot2} geom
defaults.}
\item{set_ggplot_defaults}{Should defaults be set for \pkg{ggplot2} \emph{geoms}?
\item{...}{
Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}}
\describe{
\item{\code{set_ggplot_defaults}}{Should defaults be set for \pkg{ggplot2} \emph{geoms}?
Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.}
\item{text_font}{Font to use for text elements, passed to
\item{\code{text_font}}{Font to use for text elements, passed to
\code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is
\code{TRUE}. Inherits from \code{text_font_family}.}
\item{text_font_use_google}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{text_font_size}{Base text font size, inherits from \code{text_font_size}, or
\item{\code{text_font_use_google}}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{\code{text_font_size}}{Base text font size, inherits from \code{text_font_size}, or
defaults to 11.}
\item{title_font}{Font to use for title elements, passed to
\item{\code{title_font}}{Font to use for title elements, passed to
\code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is
\code{TRUE}. Inherits from \code{title_font_family}.}
\item{title_font_use_google}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{title_font_size}{Base text font size, inherits from \code{title_font_size},
\item{\code{title_font_use_google}}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?}
\item{\code{title_font_size}}{Base text font size, inherits from \code{title_font_size},
or defaults to 14.}
}}
}}
}
\value{
A ggplot2 theme
@@ -69,8 +66,9 @@ if (requireNamespace("ggplot2", quietly = TRUE)) {
}
}
\seealso{
Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}},
\code{\link{theme_xaringan_set_defaults}},
\code{\link{theme_xaringan}}
Other xaringanthemer ggplot2 themes:
\code{\link{theme_xaringan_base}()},
\code{\link{theme_xaringan_set_defaults}()},
\code{\link{theme_xaringan}()}
}
\concept{xaringanthemer ggplot2 themes}

+ 11
- 6
man/theme_xaringan_set_defaults.Rd Просмотреть файл

@@ -5,9 +5,13 @@
\alias{theme_xaringan_restore_defaults}
\title{Set and Restore ggplot2 geom Defaults}
\usage{
theme_xaringan_set_defaults(text_color = NULL, background_color = NULL,
accent_color = text_color, accent_secondary_color = accent_color,
text_font = NULL)
theme_xaringan_set_defaults(
text_color = NULL,
background_color = NULL,
accent_color = text_color,
accent_secondary_color = accent_color,
text_font = NULL
)

theme_xaringan_restore_defaults()
}
@@ -48,8 +52,9 @@ defaults with \code{theme_xaringan_restore_defaults()}. By default,
}}

\seealso{
Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}},
\code{\link{theme_xaringan_inverse}},
\code{\link{theme_xaringan}}
Other xaringanthemer ggplot2 themes:
\code{\link{theme_xaringan_base}()},
\code{\link{theme_xaringan_inverse}()},
\code{\link{theme_xaringan}()}
}
\concept{xaringanthemer ggplot2 themes}

+ 1
- 0
tests/testthat/css/duo-header_bg.css Просмотреть файл

@@ -221,3 +221,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/duo.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/duo_accent.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/duo_accent_inverse.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/mono_accent.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/mono_accent_inverse.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/mono_dark.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/mono_light-header_bg.css Просмотреть файл

@@ -221,3 +221,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/mono_light.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/solarized_dark-header_bg.css Просмотреть файл

@@ -221,3 +221,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/solarized_dark.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 1
- 0
tests/testthat/css/solarized_light.css Просмотреть файл

@@ -219,3 +219,4 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
left: 0 !important;
}
}


+ 228
- 0
tests/testthat/css/xaringan.css Просмотреть файл

@@ -0,0 +1,228 @@
/* -------------------------------------------------------
*
* !! This file was generated by xaringanthemer !!
*
* Changes made to this file directly will be overwritten
* if you used xaringanthemer in your xaringan slides Rmd
*
* Issues or likes?
* - https://github.com/gadenbuie/xaringanthemer
* - https://www.garrickadenbuie.com
*
* Need help? Try:
* - vignette(package = "xaringanthemer")
* - ?xaringanthemer::write_xaringan_theme
* - xaringan wiki: https://github.com/yihui/xaringan/wiki
* - remarkjs wiki: https://github.com/gnab/remark/wiki
*
* Version: a.b.c.d.eeee
*
* ------------------------------------------------------- */
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700);


:root {
/* Fonts */
--body-font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
--header-font-family: 'Yanone Kaffeesatz';
--code-font-family: 'Source Code Pro';
--text-font-size: 20px;
--code-font-size: 0.9em;
--code-inline-font-size: 1em;
--header-h1-font-size: 55px;
--header-h2-font-size: 45px;
--header-h3-font-size: 35px;

/* Colors */
--text-color: #000;
--header-color: #000;
--background-color: #FFF;
--link-color: rgb(249, 38, 114);
--code-highlight-color: rgba(255,255,0,0.5);
--inverse-text-color: #d6d6d6;
--inverse-background-color: #272822;
--inverse-header-color: #f3f3f3;
--title-slide-background-color: #272822;
--title-slide-text-color: #d6d6d6;
--light-blue: #bad4ed;

}

html {
font-size: var(--text-font-size);
}

body {
font-family: var(--body-font-family);
font-weight: normal;
color: var(--text-color);
}
h1, h2, h3 {
font-family: var(--header-font-family);
font-weight: normal;
color: var(--header-color);
}
.remark-slide-content {
background-color: var(--background-color);
font-size: var(--text-font-size);
padding: 1rem 4rem 1rem 4rem;
}
.remark-slide-content h1 {
font-size: var(--header-h1-font-size);
}
.remark-slide-content h2 {
font-size: var(--header-h2-font-size);
}
.remark-slide-content h3 {
font-size: var(--header-h3-font-size);
}
.remark-code, .remark-inline-code {
font-family: var(--code-font-family), 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: var(--code-font-size);
}
.remark-inline-code {
font-size: var(--code-inline-font-size);
color: #000;
}
.remark-slide-number {
color: #272822;
opacity: 1;
font-size: 0.9em;
}
a, a > code {
color: var(--link-color);
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: var(--code-highlight-color);
}
.inverse {
background-color: var(--inverse-background-color);
color: var(--inverse-text-color);
}
.inverse h1, .inverse h2, .inverse h3 {
color: var(--inverse-header-color);
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: var(--title-slide-text-color);
}
.title-slide {
background-color: var(--title-slide-background-color);
}
.title-slide .remark-slide-number {
display: none;
}
/* Two-column layout */
.left-column {
width: 20%;
height: 92%;
float: left;
}
.left-column h2, .left-column h3 {
color: #777;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #000;
}
.right-column {
width: 75%;
float: right;
padding-top: 1em;
}
.pull-left {
float: left;
width: 47%;
}
.pull-right {
float: right;
width: 47%;
}
.pull-right ~ * {
clear: both;
}
img, video, iframe {
max-width: 100%;
}
blockquote {
border-left: solid 5px lightgray;
padding-left: 1em;
}
.remark-slide table {
margin: auto;
border-top: 1px solid #666;
border-bottom: 1px solid #666;
}
.remark-slide table thead th {
border-bottom: 1px solid #ddd;
}
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
background: #eee;
}
table.dataTable tbody {
background-color: var(--background-color);
color: var(--text-color);
}
table.dataTable.display tbody tr.odd {
background-color: var(--background-color);
}
table.dataTable.display tbody tr.even {
background-color: #eee;
}
table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
background-color: rgba(255, 255, 255, 0.5);
}
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
color: var(--text-color);
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: var(--text-color) !important;
}

/* Slide Header Background for h1 elements */
.remark-slide-content.header_background > h1 {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
background: var(--background-color);
color: var(--text-color);
padding: 2rem 4rem 1.5rem 4rem;
margin-top: 0;
box-sizing: border-box;
}
.remark-slide-content.header_background {
padding-top: 7rem;
}

@page { margin: 0; }
@media print {
.remark-slide-scaler {
width: 100% !important;
height: 100% !important;
transform: scale(1) !important;
top: 0 !important;
left: 0 !important;
}
}

.light-blue {
color: var(--light-blue);
}
.bg-light-blue {
background-color: var(--light-blue);
}

+ 26
- 0
tests/testthat/test-color.R Просмотреть файл

@@ -0,0 +1,26 @@
# test_that()

describe("prepare_colors()", {
it("returns NULL if NULL or missing", {
expect_null(prepare_colors())
expect_null(prepare_colors(NULL))
expect_null(prepare_colors(list()))
})

it("requires a named vector or list", {
expect_error(prepare_colors("#00FF00"))
})

it("requires valid CSS names", {
expect_error(prepare_colors(c("light blue" = "#88f")))
expect_error(preapre_colors(c("light/blue" = "#88f")))
})

it("returns list with color_name and value for each color", {
colors <- c('test' = "#4ed4ed")
prepared <- prepare_colors(colors)
expect_equal(names(prepared[[1]]), c("color_name", "value"))
expect_equal(prepared[[1]]$color_name, names(colors)[[1]])
expect_equal(prepared[[1]]$value, colors[[1]])
})
})

+ 5
- 0
tests/testthat/test-themes.R Просмотреть файл

@@ -12,6 +12,7 @@ test_theme_file <- function(theme = "duo", theme_file = paste0(theme, ".css"), .
"mono_light" = style_mono_light,
"solarized_dark" = style_solarized_dark,
"solarized_light" = style_solarized_light,
"xaringan" = style_xaringan,
stop("Unknown theme")
)

@@ -40,3 +41,7 @@ test_that("header_background_auto = TRUE", {
test_theme_file("mono_light", "mono_light-header_bg.css", header_background_auto = TRUE)
test_theme_file("solarized_dark", "solarized_dark-header_bg.css", header_background_auto = TRUE)
})

test_that("style colors are added to themes", {
test_theme_file("xaringan", colors = c('light-blue' = "#bad4ed"))
})

Загрузка…
Отмена
Сохранить