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

Add extra_fonts paramater and template variable

tags/v0.1.1
Garrick Aden-Buie 8 лет назад
Родитель
Сommit
bd5b5ae00c
27 измененных файлов: 101 добавлений и 11 удалений
  1. +1
    -0
      R/duo.R
  2. +1
    -0
      R/duo_accent.R
  3. +1
    -0
      R/duo_accent_inverse.R
  4. +1
    -0
      R/mono_accent.R
  5. +1
    -0
      R/mono_accent_inverse.R
  6. +1
    -0
      R/mono_dark.R
  7. +1
    -0
      R/mono_light.R
  8. +1
    -0
      R/solarized_dark.R
  9. +1
    -0
      R/solarized_light.R
  10. +11
    -0
      R/write_extra_css.R
  11. +3
    -0
      R/write_theme.R
  12. +9
    -0
      README.Rmd
  13. +12
    -1
      README.md
  14. +1
    -0
      inst/resources/template.css
  15. +1
    -0
      inst/scripts/generate_theme_functions.R
  16. +2
    -0
      inst/scripts/write_xaringan_theme_body.R
  17. +3
    -0
      man-roxygen/extra_css.R
  18. +5
    -1
      man/duo.Rd
  19. +5
    -1
      man/duo_accent.Rd
  20. +5
    -1
      man/duo_accent_inverse.Rd
  21. +5
    -1
      man/mono_accent.Rd
  22. +5
    -1
      man/mono_accent_inverse.Rd
  23. +5
    -1
      man/mono_dark.Rd
  24. +5
    -1
      man/mono_light.Rd
  25. +5
    -1
      man/solarized_dark.Rd
  26. +5
    -1
      man/solarized_light.Rd
  27. +5
    -1
      man/write_xaringan_theme.Rd

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R

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

) )
}) })
} }

list2fonts <- function(fonts) {
fonts <- purrr::map_chr(fonts, function(f) {
if (inherits(f, "google_font")) {
f$url
} else if (inherits(f, "character")) {
f
} else NA_character_
})
paste0("@import url(", fonts[!is.na(fonts)], ");")
}

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

code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_css = NULL,
extra_fonts = NULL,
outfile = "xaringan-themer.css" outfile = "xaringan-themer.css"
) { ) {
# Make sure font names are wrapped in quotes if they have spaces # Make sure font names are wrapped in quotes if they have spaces
} }
} }
extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts)
tf <- system.file("resources", "template.css", package = "xaringanthemer") tf <- system.file("resources", "template.css", package = "xaringanthemer")
template <- readLines(tf, warn = FALSE) template <- readLines(tf, warn = FALSE)
template <- paste(template, collapse = "\n") template <- paste(template, collapse = "\n")

+ 9
- 0
README.Rmd Просмотреть файл

) )
``` ```


If you need to import additional fonts for use in [custom CSS definitions](#adding-custom-css), you can use the `extra_fonts` argument to pass a list of URLs or `google_font()`s.

```r
mono_light(
extra_fonts = list(google_font("Sofia")),
extra_css = list(".title-slide h2" = list("font-family" = "Sofia"))
)
```

*** ***


**xaringanthemer** was built by [Garrick Aden-Buie](https://www.garrickadenbuie.com) ([&commat;grrrck](https://twitter.com/grrrck)). **xaringanthemer** was built by [Garrick Aden-Buie](https://www.garrickadenbuie.com) ([&commat;grrrck](https://twitter.com/grrrck)).

+ 12
- 1
README.md Просмотреть файл

- `text_bold_color` - `text_bold_color`
- `text_slide_number_color` - `text_slide_number_color`
- `text_size` - `text_size`
- `text_size_h1`
- `text_slide_number_font_size`
- *and more …* - *and more …*


And here are the title slide theme options: And here are the title slide theme options:
) )
``` ```


If you need to import additional fonts for use in [custom CSS
definitions](#adding-custom-css), you can use the `extra_fonts` argument
to pass a list of URLs or `google_font()`s.

``` r
mono_light(
extra_fonts = list(google_font("Sofia")),
extra_css = list(".title-slide h2" = list("font-family" = "Sofia"))
)
```

----- -----


**xaringanthemer** was built by [Garrick **xaringanthemer** was built by [Garrick

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

@import url({{text_font_url}}); @import url({{text_font_url}});
@import url({{header_font_url}}); @import url({{header_font_url}});
@import url({{code_font_url}}); @import url({{code_font_url}});
{{extra_font_imports}}


body { body {
font-family: {{paste(text_font_family, text_font_family_fallback, text_font_base, sep = ", ")}}; font-family: {{paste(text_font_family, text_font_family_fallback, text_font_base, sep = ", ")}};

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

as.character(glue::glue_data( as.character(glue::glue_data(
tv, " {variable} = {ifelse(!stringr::str_detect(default, '^[{].+[}]$'), paste0('\"', default, '\"'), stringr::str_replace_all(default, '[{}]', ''))},")) %,% tv, " {variable} = {ifelse(!stringr::str_detect(default, '^[{].+[}]$'), paste0('\"', default, '\"'), stringr::str_replace_all(default, '[{}]', ''))},")) %,%
" extra_css = NULL," %,% " extra_css = NULL," %,%
" extra_fonts = NULL," %,%
" outfile = \"xaringan-themer.css\"" %,% " outfile = \"xaringan-themer.css\"" %,%
") {" ") {"
if (!is.null(body)) x <- c(x, body, "}") if (!is.null(body)) x <- c(x, body, "}")

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

} }
} }


extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts)

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

+ 3
- 0
man-roxygen/extra_css.R Просмотреть файл

#' @param extra_css A named list of CSS definitions each containing a named list #' @param extra_css A named list of CSS definitions each containing a named list
#' of CSS property-value pairs, i.e. #' of CSS property-value pairs, i.e.
#' \code{list(".class-id" = list("css-property" = "value"))} #' \code{list(".class-id" = list("css-property" = "value"))}
#' @param extra_fonts A list of additional fonts to import, each list element
#' can be either a URL as a character string or a call to
#' \code{\link{google_fonts}()}

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{primary_color}{Duotone Primary Color, defaults to #1F4257} \item{primary_color}{Duotone Primary Color, defaults to #1F4257}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{primary_color}{Duotone Primary Color, defaults to #006747} \item{primary_color}{Duotone Primary Color, defaults to #006747}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{primary_color}{Duotone Primary Color, defaults to #006747} \item{primary_color}{Duotone Primary Color, defaults to #006747}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{base_color}{Monotone Base Color, works best with a strong color., defaults to #43418A} \item{base_color}{Monotone Base Color, works best with a strong color., defaults to #43418A}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{base_color}{Monotone Base Color, works best with a light color., defaults to #3C989E} \item{base_color}{Monotone Base Color, works best with a light color., defaults to #3C989E}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{base_color}{Monotone Base Color, works best with a light color., defaults to #cbf7ed} \item{base_color}{Monotone Base Color, works best with a light color., defaults to #cbf7ed}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{base_color}{Monotone base color, works best with a strong color, defaults to #23395b} \item{base_color}{Monotone base color, works best with a strong color, defaults to #23395b}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{text_color}{Text Color, defaults to #839496} \item{text_color}{Text Color, defaults to #839496}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{text_color}{Text Color, defaults to #657b83} \item{text_color}{Text Color, defaults to #657b83}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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

code_font_google = NULL, code_font_family = "'Source Code Pro'", code_font_google = NULL, code_font_family = "'Source Code Pro'",
code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL, code_font_family_fallback = "'Lucida Console', Monaco", extra_css = NULL,
outfile = "xaringan-themer.css")
extra_fonts = NULL, outfile = "xaringan-themer.css")
} }
\arguments{ \arguments{
\item{text_color}{Text Color, defaults to #000} \item{text_color}{Text Color, defaults to #000}
of CSS property-value pairs, i.e. of CSS property-value pairs, i.e.
\code{list(".class-id" = list("css-property" = "value"))}} \code{list(".class-id" = list("css-property" = "value"))}}


\item{extra_fonts}{A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
\code{\link{google_fonts}()}}

\item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"} \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
} }
\description{ \description{

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