Procházet zdrojové kódy

feat: Add header_font_family_fallback

Fixes #41
tags/v0.3.3
Garrick Aden-Buie před 5 roky
rodič
revize
2c068446e6
38 změnil soubory, kde provedl 163 přidání a 15 odebrání
  1. +2
    -0
      NEWS.md
  2. +6
    -0
      R/style_duo.R
  3. +6
    -0
      R/style_duo_accent.R
  4. +6
    -0
      R/style_duo_accent_inverse.R
  5. +6
    -0
      R/style_mono_accent.R
  6. +6
    -0
      R/style_mono_accent_inverse.R
  7. +6
    -0
      R/style_mono_dark.R
  8. +6
    -0
      R/style_mono_light.R
  9. +6
    -0
      R/style_solarized_dark.R
  10. +6
    -0
      R/style_solarized_light.R
  11. +6
    -0
      R/style_xaringan.R
  12. binární
      R/sysdata.rda
  13. +1
    -0
      data-raw/theme_template_variables.R
  14. +2
    -1
      inst/resources/template.css
  15. +7
    -0
      man/style_duo.Rd
  16. +7
    -0
      man/style_duo_accent.Rd
  17. +7
    -0
      man/style_duo_accent_inverse.Rd
  18. +7
    -0
      man/style_mono_accent.Rd
  19. +7
    -0
      man/style_mono_accent_inverse.Rd
  20. +7
    -0
      man/style_mono_dark.Rd
  21. +7
    -0
      man/style_mono_light.Rd
  22. +7
    -0
      man/style_solarized_dark.Rd
  23. +7
    -0
      man/style_solarized_light.Rd
  24. +7
    -0
      man/style_xaringan.Rd
  25. +2
    -1
      tests/testthat/css/duo-header_bg.css
  26. +2
    -1
      tests/testthat/css/duo.css
  27. +2
    -1
      tests/testthat/css/duo_accent.css
  28. +2
    -1
      tests/testthat/css/duo_accent_inverse.css
  29. +2
    -1
      tests/testthat/css/google_fonts.css
  30. +2
    -1
      tests/testthat/css/mono_accent.css
  31. +2
    -1
      tests/testthat/css/mono_accent_inverse.css
  32. +2
    -1
      tests/testthat/css/mono_dark.css
  33. +2
    -1
      tests/testthat/css/mono_light-header_bg.css
  34. +2
    -1
      tests/testthat/css/mono_light.css
  35. +2
    -1
      tests/testthat/css/solarized_dark-header_bg.css
  36. +2
    -1
      tests/testthat/css/solarized_dark.css
  37. +2
    -1
      tests/testthat/css/solarized_light.css
  38. +2
    -1
      tests/testthat/css/xaringan.css

+ 2
- 0
NEWS.md Zobrazit soubor



- .pull-right[] now clears floats just for its immediate sibling - .pull-right[] now clears floats just for its immediate sibling


- Add `header_font_family_fallback` to control fallback fonts for headings (thanks @mattwarkentin, #41)

# xaringanthemer 0.3.0 # xaringanthemer 0.3.0


* Adds `theme_xaringan()`, a ggplot2 theme that automatically uses the colors * Adds `theme_xaringan()`, a ggplot2 theme that automatically uses the colors

+ 6
- 0
R/style_duo.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_duo_accent.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_duo_accent_inverse.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_mono_accent.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_mono_accent_inverse.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_mono_dark.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_mono_light.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_solarized_dark.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_solarized_light.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

+ 6
- 0
R/style_xaringan.R Zobrazit soubor

#' `h1, h2, h3` elements. Accepts CSS #' `h1, h2, h3` elements. Accepts CSS
#' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
#' property values. #' property values.
#' @param header_font_family_fallback Header Font Family Fallback. Defaults to
#' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
#' variable is also stored as a CSS variable that can be referenced with
#' `var(--header-font-family-fallback)` in any argument of a style function
#' or in custom CSS.
#' @param header_font_url Header Font URL. Defaults to #' @param header_font_url Header Font URL. Defaults to
#' `xaringanthemer_font_default("header_font_url")`. Modifies the #' `xaringanthemer_font_default("header_font_url")`. Modifies the
#' `@import url` elements. #' `@import url` elements.
header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),

binární
R/sysdata.rda Zobrazit soubor


+ 1
- 0
data-raw/theme_template_variables.R Zobrazit soubor

, "header_font_google", "{NULL}", "body", "Use `google_font()` to specify header font", NA_character_ , "header_font_google", "{NULL}", "body", "Use `google_font()` to specify header font", NA_character_
, "header_font_family", '{xaringanthemer_font_default("header_font_family")}', "h1, h2, h3", "Header Font Family (xaringan default is `'Yanone Kaffeesatz'`)", "--header-font-family" , "header_font_family", '{xaringanthemer_font_default("header_font_family")}', "h1, h2, h3", "Header Font Family (xaringan default is `'Yanone Kaffeesatz'`)", "--header-font-family"
, "header_font_weight", '{xaringanthemer_font_default("header_font_weight")}', "h1, h2, h3", "Header Font Weight", NA_character_ , "header_font_weight", '{xaringanthemer_font_default("header_font_weight")}', "h1, h2, h3", "Header Font Weight", NA_character_
, "header_font_family_fallback", 'Georgia, serif', "h1, h2, h3", "Header Font Family Fallback", "--header-font-family-fallback"
, "header_font_url", '{xaringanthemer_font_default("header_font_url")}', "@import url", "Header Font URL", NA_character_ , "header_font_url", '{xaringanthemer_font_default("header_font_url")}', "@import url", "Header Font URL", NA_character_
, "code_font_google", "{NULL}", "body", "Use `google_font()` to specify code font", NA_character_ , "code_font_google", "{NULL}", "body", "Use `google_font()` to specify code font", NA_character_
, "code_font_family", '{xaringanthemer_font_default("code_font_family")}', ".remark-code, .remark-inline-code", "Code Font Family", "--code-font-family" , "code_font_family", '{xaringanthemer_font_default("code_font_family")}', ".remark-code, .remark-inline-code", "Code Font Family", "--code-font-family"

+ 2
- 1
inst/resources/template.css Zobrazit soubor

--text-font-base: {{text_font_base}}; --text-font-base: {{text_font_base}};
--header-font-family: {{header_font_family}}; --header-font-family: {{header_font_family}};
--header-font-is-google: {{header_font_is_google}}; --header-font-is-google: {{header_font_is_google}};
--header-font-family-fallback: {{header_font_family_fallback}};
--code-font-family: {{code_font_family}}; --code-font-family: {{code_font_family}};
--code-font-is-google: {{code_font_is_google}}; --code-font-is-google: {{code_font_is_google}};
--base-font-size: {{base_font_size}}; --base-font-size: {{base_font_size}};
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: {{header_font_weight}}; font-weight: {{header_font_weight}};
color: var(--header-color); color: var(--header-color);
} }

+ 7
- 0
man/style_duo.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_duo_accent.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_duo_accent_inverse.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_mono_accent.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_mono_accent_inverse.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_mono_dark.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_mono_light.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_solarized_dark.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_solarized_light.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 7
- 0
man/style_xaringan.Rd Zobrazit soubor

header_font_google = NULL, header_font_google = NULL,
header_font_family = xaringanthemer_font_default("header_font_family"), header_font_family = xaringanthemer_font_default("header_font_family"),
header_font_weight = xaringanthemer_font_default("header_font_weight"), header_font_weight = xaringanthemer_font_default("header_font_weight"),
header_font_family_fallback = "Georgia, serif",
header_font_url = xaringanthemer_font_default("header_font_url"), header_font_url = xaringanthemer_font_default("header_font_url"),
code_font_google = NULL, code_font_google = NULL,
code_font_family = xaringanthemer_font_default("code_font_family"), code_font_family = xaringanthemer_font_default("code_font_family"),
\href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight} \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
property values.} property values.}


\item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
variable is also stored as a CSS variable that can be referenced with
\code{var(--header-font-family-fallback)} in any argument of a style function
or in custom CSS.}

\item{header_font_url}{Header Font URL. Defaults to \item{header_font_url}{Header Font URL. Defaults to
\code{xaringanthemer_font_default("header_font_url")}. Modifies the \code{xaringanthemer_font_default("header_font_url")}. Modifies the
\verb{@import url} elements.} \verb{@import url} elements.}

+ 2
- 1
tests/testthat/css/duo-header_bg.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/duo.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/duo_accent.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/duo_accent_inverse.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/google_fonts.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: 'IBM Plex Serif'; --header-font-family: 'IBM Plex Serif';
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'IBM Plex Mono'; --code-font-family: 'IBM Plex Mono';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/mono_accent.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/mono_accent_inverse.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/mono_dark.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/mono_light-header_bg.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/mono_light.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/solarized_dark-header_bg.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/solarized_dark.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/solarized_light.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

+ 2
- 1
tests/testthat/css/xaringan.css Zobrazit soubor

--text-font-base: sans-serif; --text-font-base: sans-serif;
--header-font-family: Cabin; --header-font-family: Cabin;
--header-font-is-google: 1; --header-font-is-google: 1;
--header-font-family-fallback: Georgia, serif;
--code-font-family: 'Source Code Pro'; --code-font-family: 'Source Code Pro';
--code-font-is-google: 1; --code-font-is-google: 1;
--base-font-size: 20px; --base-font-size: 20px;
color: var(--text-color); color: var(--text-color);
} }
h1, h2, h3 { h1, h2, h3 {
font-family: var(--header-font-family);
font-family: var(--header-font-family), var(--header-font-family-fallback);
font-weight: 600; font-weight: 600;
color: var(--header-color); color: var(--header-color);
} }

Načítá se…
Zrušit
Uložit