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

Add tests for theme css output

tags/v0.3.0
Garrick Aden-Buie 7 лет назад
Родитель
Сommit
08d75c118b
23 измененных файлов: 1772 добавлений и 102 удалений
  1. +1
    -1
      DESCRIPTION
  2. +18
    -12
      man/duo.Rd
  3. +20
    -12
      man/duo_accent.Rd
  4. +25
    -17
      man/duo_accent_inverse.Rd
  5. +4
    -3
      man/google_language_codes.Rd
  6. +10
    -5
      man/mono_accent.Rd
  7. +14
    -9
      man/mono_accent_inverse.Rd
  8. +10
    -5
      man/mono_dark.Rd
  9. +10
    -5
      man/mono_light.Rd
  10. +13
    -8
      man/solarized_dark.Rd
  11. +13
    -8
      man/solarized_light.Rd
  12. +22
    -15
      man/write_xaringan_theme.Rd
  13. +2
    -2
      man/xaringanthemer-package.Rd
  14. +175
    -0
      tests/testthat/css/duo.css
  15. +175
    -0
      tests/testthat/css/duo_accent.css
  16. +175
    -0
      tests/testthat/css/duo_accent_inverse.css
  17. +175
    -0
      tests/testthat/css/mono_accent.css
  18. +175
    -0
      tests/testthat/css/mono_accent_inverse.css
  19. +175
    -0
      tests/testthat/css/mono_dark.css
  20. +175
    -0
      tests/testthat/css/mono_light.css
  21. +175
    -0
      tests/testthat/css/solarized_dark.css
  22. +175
    -0
      tests/testthat/css/solarized_light.css
  23. +35
    -0
      tests/testthat/test-themes.R

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

@@ -12,7 +12,7 @@ URL: https://github.com/gadenbuie/xaringanthemer
BugReports: https://github.com/gadenbuie/xaringanthemer/issues
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.0.1
RoxygenNote: 6.1.1
Roxygen: list(markdown = TRUE)
Suggests:
testthat,

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

@@ -5,15 +5,17 @@
\title{Duotone Theme}
\usage{
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 = "1em 4em 1em 4em", background_image = NA,
background_size = NA, background_position = NA,
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 = "1em 4em 1em 4em",
background_image = NA, background_size = NA,
background_position = NA,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = secondary_color, code_inline_background_color = NA,
code_inline_font_size = "1em", inverse_background_color = secondary_color,
code_inline_color = secondary_color,
code_inline_background_color = NA, code_inline_font_size = "1em",
inverse_background_color = secondary_color,
inverse_text_color = primary_color, inverse_text_shadow = FALSE,
inverse_header_color = primary_color,
title_slide_text_color = secondary_color,
@@ -33,13 +35,15 @@ duo(primary_color = "#1F4257", secondary_color = "#F97B64",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -162,7 +166,7 @@ can be either a URL as a character string or a call to
}
\description{
A duotone theme designed to work well with two complementary
colors.
colors.
}
\seealso{
Other themes: \code{\link{duo_accent_inverse}},
@@ -176,3 +180,5 @@ Other themes: \code{\link{duo_accent_inverse}},
Other Duotone themes: \code{\link{duo_accent_inverse}},
\code{\link{duo_accent}}
}
\concept{Duotone themes}
\concept{themes}

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

@@ -9,19 +9,23 @@ duo_accent(primary_color = "#006747", secondary_color = "#CFC493",
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,
secondary_color),
text_bold_color = choose_dark_or_light(secondary_color, primary_color,
secondary_color), text_slide_number_color = primary_color,
padding = "1em 4em 1em 4em", background_image = NA,
background_size = NA, background_position = NA,
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 = NA,
code_inline_font_size = "1em", inverse_background_color = secondary_color,
code_inline_color = choose_dark_or_light(secondary_color,
primary_color, secondary_color), code_inline_background_color = NA,
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), title_slide_background_color = primary_color,
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 = NA, title_slide_background_size = NA,
title_slide_background_position = NA, footnote_color = NA,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
@@ -37,13 +41,15 @@ duo_accent(primary_color = "#006747", secondary_color = "#CFC493",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -170,7 +176,7 @@ can be either a URL as a character string or a call to
}
\description{
An default xaringan theme with a two colors used for color
accents on select elements (headers, bold text, etc.).
accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{duo_accent_inverse}},
@@ -183,3 +189,5 @@ Other themes: \code{\link{duo_accent_inverse}},
Other Duotone themes: \code{\link{duo_accent_inverse}},
\code{\link{duo}}
}
\concept{Duotone themes}
\concept{themes}

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

@@ -4,24 +4,28 @@
\alias{duo_accent_inverse}
\title{Duotone Accent Inverse Theme}
\usage{
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,
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 = "1em 4em 1em 4em", background_image = NA,
background_size = NA, background_position = NA,
secondary_color, primary_color),
text_slide_number_color = primary_color, padding = "1em 4em 1em 4em",
background_image = NA, background_size = NA,
background_position = NA,
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 = NA,
code_inline_font_size = "1em", inverse_background_color = secondary_color,
code_inline_color = choose_dark_or_light(secondary_color,
secondary_color, primary_color), code_inline_background_color = NA,
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), title_slide_background_color = primary_color,
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 = NA, title_slide_background_size = NA,
title_slide_background_position = NA, footnote_color = NA,
footnote_font_size = "0.9em", footnote_position_bottom = "3em",
@@ -38,13 +42,15 @@ duo_accent_inverse(primary_color = "#006747", secondary_color = "#CFC493",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -171,7 +177,7 @@ can be either a URL as a character string or a call to
}
\description{
An "inverted" default xaringan theme with a two colors used
for color accents on select elements (headers, bold text, etc.).
for color accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{duo_accent}}, \code{\link{duo}},
@@ -184,3 +190,5 @@ Other themes: \code{\link{duo_accent}}, \code{\link{duo}},
Other Duotone themes: \code{\link{duo_accent}},
\code{\link{duo}}
}
\concept{Duotone themes}
\concept{themes}

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

@@ -5,9 +5,10 @@
\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"))
"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}

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

@@ -9,7 +9,8 @@ mono_accent(base_color = "#43418A", white_color = "#FFFFFF",
header_color = base_color, background_color = white_color,
link_color = base_color, text_bold_color = base_color,
text_slide_number_color = base_color, padding = "1em 4em 1em 4em",
background_image = NA, background_size = NA, background_position = NA,
background_image = NA, background_size = NA,
background_position = NA,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = base_color, code_inline_background_color = NA,
code_inline_font_size = "1em", inverse_background_color = base_color,
@@ -32,13 +33,15 @@ mono_accent(base_color = "#43418A", white_color = "#FFFFFF",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -163,7 +166,7 @@ can be either a URL as a character string or a call to
}
\description{
The default xaringan theme with a single color used for color
accents on select elements (headers, bold text, etc.).
accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{duo_accent_inverse}},
@@ -177,3 +180,5 @@ Other themes: \code{\link{duo_accent_inverse}},
Other Monotone themes: \code{\link{mono_accent_inverse}},
\code{\link{mono_dark}}, \code{\link{mono_light}}
}
\concept{Monotone themes}
\concept{themes}

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

@@ -5,11 +5,12 @@
\title{Monotone Accent Inverse Theme}
\usage{
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 = "1em 4em 1em 4em",
background_image = NA, background_size = NA, background_position = NA,
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 = "1em 4em 1em 4em", background_image = NA,
background_size = NA, background_position = NA,
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = base_color, code_inline_background_color = NA,
code_inline_font_size = "1em", inverse_background_color = base_color,
@@ -32,13 +33,15 @@ mono_accent_inverse(base_color = "#3C989E", white_color = "#FFFFFF",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -163,7 +166,7 @@ can be either a URL as a character string or a call to
}
\description{
An "inverted" default xaringan theme with a single color used
for color accents on select elements (headers, bold text, etc.).
for color accents on select elements (headers, bold text, etc.).
}
\seealso{
Other themes: \code{\link{duo_accent_inverse}},
@@ -176,3 +179,5 @@ Other themes: \code{\link{duo_accent_inverse}},
Other Monotone themes: \code{\link{mono_accent}},
\code{\link{mono_dark}}, \code{\link{mono_light}}
}
\concept{Monotone themes}
\concept{themes}

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

@@ -4,8 +4,9 @@
\alias{mono_dark}
\title{Monotone Dark Theme}
\usage{
mono_dark(base_color = "#cbf7ed", white_color = lighten_color(base_color,
0.8), black_color = darken_color(base_color, 0.85),
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,
@@ -33,13 +34,15 @@ mono_dark(base_color = "#cbf7ed", white_color = lighten_color(base_color,
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -177,3 +180,5 @@ Other themes: \code{\link{duo_accent_inverse}},
Other Monotone themes: \code{\link{mono_accent_inverse}},
\code{\link{mono_accent}}, \code{\link{mono_light}}
}
\concept{Monotone themes}
\concept{themes}

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

@@ -4,8 +4,9 @@
\alias{mono_light}
\title{Monotone Light Theme}
\usage{
mono_light(base_color = "#23395b", white_color = lighten_color(base_color,
0.9), black_color = darken_color(base_color, 0.3),
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,
@@ -33,13 +34,15 @@ mono_light(base_color = "#23395b", white_color = lighten_color(base_color,
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
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.}
@@ -177,3 +180,5 @@ Other themes: \code{\link{duo_accent_inverse}},
Other Monotone themes: \code{\link{mono_accent_inverse}},
\code{\link{mono_accent}}, \code{\link{mono_dark}}
}
\concept{Monotone themes}
\concept{themes}

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

@@ -12,7 +12,8 @@ solarized_dark(text_color = "#839496", header_color = "#dc322f",
code_highlight_color = "#268bd240", code_inline_color = "#6c71c4",
code_inline_background_color = NA, code_inline_font_size = "1em",
inverse_background_color = "#fdf6e3", inverse_text_color = "#002b36",
inverse_text_shadow = FALSE, inverse_header_color = inverse_text_color,
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 = NA, title_slide_background_size = NA,
@@ -20,8 +21,8 @@ solarized_dark(text_color = "#839496", header_color = "#dc322f",
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",
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", text_slide_number_font_size = "0.9em",
@@ -30,13 +31,15 @@ solarized_dark(text_color = "#839496", header_color = "#dc322f",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
}
\arguments{
\item{text_color}{Text Color. Defaults to #839496. Modifies the \code{body} element.}
@@ -155,8 +158,8 @@ can be either a URL as a character string or a call to
}
\description{
A dark theme based around on the solarized color scheme.
Works well with "\code{highlightStyle: solarized-dark}" or
"\code{highlighStyle: solarized-light}".
Works well with "\code{highlightStyle: solarized-dark}" or
"\code{highlighStyle: solarized-light}".
}
\references{
\url{http://ethanschoonover.com/solarized}
@@ -171,3 +174,5 @@ Other themes: \code{\link{duo_accent_inverse}},

Other Solarized themes: \code{\link{solarized_light}}
}
\concept{Solarized themes}
\concept{themes}

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

@@ -12,7 +12,8 @@ solarized_light(text_color = "#657b83", header_color = "#dc322f",
code_highlight_color = "#268bd240", code_inline_color = "#6c71c4",
code_inline_background_color = NA, code_inline_font_size = "1em",
inverse_background_color = "#002b36", inverse_text_color = "#fdf6e3",
inverse_text_shadow = FALSE, inverse_header_color = inverse_text_color,
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 = NA, title_slide_background_size = NA,
@@ -20,8 +21,8 @@ solarized_light(text_color = "#657b83", header_color = "#dc322f",
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",
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", text_slide_number_font_size = "0.9em",
@@ -30,13 +31,15 @@ solarized_light(text_color = "#657b83", header_color = "#dc322f",
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_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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
}
\arguments{
\item{text_color}{Text Color. Defaults to #657b83. Modifies the \code{body} element.}
@@ -155,8 +158,8 @@ can be either a URL as a character string or a call to
}
\description{
A light theme based around on the solarized color scheme.
Works well with "\code{highlightStyle: solarized-dark}" or
"\code{highlighStyle: solarized-light}".
Works well with "\code{highlightStyle: solarized-dark}" or
"\code{highlighStyle: solarized-light}".
}
\references{
\url{http://ethanschoonover.com/solarized}
@@ -171,3 +174,5 @@ Other themes: \code{\link{duo_accent_inverse}},

Other Solarized themes: \code{\link{solarized_dark}}
}
\concept{Solarized themes}
\concept{themes}

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

@@ -6,35 +6,41 @@
\usage{
write_xaringan_theme(text_color = "#000", header_color = "#000",
background_color = "#FFF", link_color = "rgb(249, 38, 114)",
text_bold_color = NA, text_slide_number_color = inverse_background_color,
text_bold_color = NA,
text_slide_number_color = inverse_background_color,
padding = "1em 4em 1em 4em", background_image = NA,
background_size = NA, background_position = NA,
code_highlight_color = "rgba(255,255,0,0.5)", code_inline_color = "#000",
code_inline_background_color = NA, code_inline_font_size = "1em",
inverse_background_color = "#272822", inverse_text_color = "#d6d6d6",
inverse_text_shadow = FALSE, inverse_header_color = "#f3f3f3",
code_highlight_color = "rgba(255,255,0,0.5)",
code_inline_color = "#000", code_inline_background_color = NA,
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 = NA, title_slide_background_size = NA,
title_slide_background_position = NA, footnote_color = NA,
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",
text_slide_number_font_size = "0.9em", text_font_google = NULL,
text_font_family = "'Droid Serif'", text_font_weight = "normal",
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", 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,
header_font_family = "'Yanone Kaffeesatz'", header_font_weight = "normal",
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_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")
code_font_family_fallback = "'Lucida Console', Monaco",
extra_css = NULL, extra_fonts = NULL,
outfile = "xaringan-themer.css")
}
\arguments{
\item{text_color}{Text Color. Defaults to #000. Modifies the \code{body} element.}
@@ -162,3 +168,4 @@ Other themes: \code{\link{duo_accent_inverse}},
\code{\link{mono_light}}, \code{\link{solarized_dark}},
\code{\link{solarized_light}}
}
\concept{themes}

+ 2
- 2
man/xaringanthemer-package.Rd Просмотреть файл

@@ -7,8 +7,8 @@
\title{xaringanthemer: Xaringan CSS Theme Generator}
\description{
Create and edit your xaringan CSS files from within your R
R Markdown slide source. More technically, this package actually creates
valid remarkjs CSS themes that are easily used by xarangan.
R Markdown slide source. More technically, this package actually creates
valid remarkjs CSS themes that are easily used by xarangan.
}
\seealso{
Useful links:

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #FEFDFD;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #F97B64;
}
.remark-slide-content {
background-color: #1F4257;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #F97B64;
}
.remark-slide-number {
color: #FEFDFD;
opacity: 1;
font-size: 0.9em;
}
strong{color:#F97B64;}
a, a > code {
color: #F97B64;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #F97B64;
color: #1F4257;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #1F4257;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #F97B64;
}
.title-slide {
background-color: #1F4257;
}
.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: #F97B6499;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #F97B64;
}
.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 #F97B6480;
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: #627A89 }
table.dataTable tbody {
background-color: #1F4257;
color: #FEFDFD;
}
table.dataTable.display tbody tr.odd {
background-color: #1F4257;
}
table.dataTable.display tbody tr.even {
background-color: #627A89;
}
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: #FEFDFD;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #FEFDFD !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #000000;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #006747;
}
.remark-slide-content {
background-color: #FFFFFF;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #006747;
}
.remark-slide-number {
color: #006747;
opacity: 1;
font-size: 0.9em;
}
strong{color:#006747;}
a, a > code {
color: #006747;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #CFC493;
color: #000000;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #000000;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #FFFFFF;
}
.title-slide {
background-color: #006747;
}
.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: #00674799;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #006747;
}
.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 #CFC49380;
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: #DDD5B3 }
table.dataTable tbody {
background-color: #FFFFFF;
color: #000000;
}
table.dataTable.display tbody tr.odd {
background-color: #FFFFFF;
}
table.dataTable.display tbody tr.even {
background-color: #DDD5B3;
}
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: #000000;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #000000 !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #FFFFFF;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #006747;
}
.remark-slide-content {
background-color: #000000;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #CFC493;
}
.remark-slide-number {
color: #006747;
opacity: 1;
font-size: 0.9em;
}
strong{color:#CFC493;}
a, a > code {
color: #CFC493;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #CFC493;
color: #000000;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #000000;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #FFFFFF;
}
.title-slide {
background-color: #006747;
}
.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: #00674799;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #006747;
}
.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 #CFC49380;
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: #004831 }
table.dataTable tbody {
background-color: #000000;
color: #FFFFFF;
}
table.dataTable.display tbody tr.odd {
background-color: #000000;
}
table.dataTable.display tbody tr.even {
background-color: #004831;
}
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: #FFFFFF;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #FFFFFF !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #272822;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #43418A;
}
.remark-slide-content {
background-color: #FFFFFF;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #43418A;
}
.remark-slide-number {
color: #43418A;
opacity: 1;
font-size: 0.9em;
}
strong{color:#43418A;}
a, a > code {
color: #43418A;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #43418A;
color: #FFFFFF;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #FFFFFF;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #FFFFFF;
}
.title-slide {
background-color: #43418A;
}
.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: #43418A99;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #43418A;
}
.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 #43418A80;
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: #C6C6DB }
table.dataTable tbody {
background-color: #FFFFFF;
color: #272822;
}
table.dataTable.display tbody tr.odd {
background-color: #FFFFFF;
}
table.dataTable.display tbody tr.even {
background-color: #C6C6DB;
}
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: #272822;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #272822 !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #FFFFFF;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #3C989E;
}
.remark-slide-content {
background-color: #050F0F;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #3C989E;
}
.remark-slide-number {
color: #3C989E;
opacity: 1;
font-size: 0.9em;
}
strong{color:#3C989E;}
a, a > code {
color: #3C989E;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #3C989E;
color: #050F0F;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #050F0F;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #050F0F;
}
.title-slide {
background-color: #3C989E;
}
.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: #3C989E99;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #3C989E;
}
.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 #3C989E80;
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: #122D2F }
table.dataTable tbody {
background-color: #050F0F;
color: #FFFFFF;
}
table.dataTable.display tbody tr.odd {
background-color: #050F0F;
}
table.dataTable.display tbody tr.even {
background-color: #122D2F;
}
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: #FFFFFF;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #FFFFFF !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #F4FDFB;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #cbf7ed;
}
.remark-slide-content {
background-color: #1E2523;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #cbf7ed;
}
.remark-slide-number {
color: #cbf7ed;
opacity: 1;
font-size: 0.9em;
}
strong{color:#cbf7ed;}
a, a > code {
color: #cbf7ed;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #cbf7ed;
color: #1E2523;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #1E2523;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #1E2523;
}
.title-slide {
background-color: #cbf7ed;
}
.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: #cbf7ed99;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #cbf7ed;
}
.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 #cbf7ed80;
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: #3C4A47 }
table.dataTable tbody {
background-color: #1E2523;
color: #F4FDFB;
}
table.dataTable.display tbody tr.odd {
background-color: #1E2523;
}
table.dataTable.display tbody tr.even {
background-color: #3C4A47;
}
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: #F4FDFB;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #F4FDFB !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #18273F;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #23395b;
}
.remark-slide-content {
background-color: #E9EBEE;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #23395b;
}
.remark-slide-number {
color: #23395b;
opacity: 1;
font-size: 0.9em;
}
strong{color:#23395b;}
a, a > code {
color: #23395b;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: rgba(255,255,0,0.5);
}
.inverse {
background-color: #23395b;
color: #E9EBEE;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #E9EBEE;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #E9EBEE;
}
.title-slide {
background-color: #23395b;
}
.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: #23395b99;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #23395b;
}
.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 #23395b80;
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: #D3D7DE }
table.dataTable tbody {
background-color: #E9EBEE;
color: #18273F;
}
table.dataTable.display tbody tr.odd {
background-color: #E9EBEE;
}
table.dataTable.display tbody tr.even {
background-color: #D3D7DE;
}
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: #18273F;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #18273F !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #839496;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #dc322f;
}
.remark-slide-content {
background-color: #002b36;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #6c71c4;
}
.remark-slide-number {
color: #586e75;
opacity: 1;
font-size: 0.9em;
}
strong{color:#d33682;}
a, a > code {
color: #b58900;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: #268bd240;
}
.inverse {
background-color: #fdf6e3;
color: #002b36;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #002b36;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #002b36;
}
.title-slide {
background-color: #fdf6e3;
}
.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: #586e75;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #93a1a1;
}
.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 #cb4b16;
padding-left: 1em;
}
.remark-slide table {
margin: auto;
border-top: 1px solid #657b83;
border-bottom: 1px solid #657b83;
}
.remark-slide table thead th { border-bottom: 1px solid #657b83; }
th, td { padding: 5px; }
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #073642 }
table.dataTable tbody {
background-color: #002b36;
color: #839496;
}
table.dataTable.display tbody tr.odd {
background-color: #002b36;
}
table.dataTable.display tbody tr.even {
background-color: #073642;
}
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: #839496;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #839496 !important;
}

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

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

@@ -0,0 +1,175 @@
/* -------------------------------------------------------
*
* !! 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
*
* ------------------------------------------------------- */
@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);


body {
font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif;
font-weight: normal;
color: #657b83;
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
color: #dc322f;
}
.remark-slide-content {
background-color: #fdf6e3;
font-size: 20px;
padding: 1em 4em 1em 4em;
}
.remark-slide-content h1 {
font-size: 55px;
}
.remark-slide-content h2 {
font-size: 45px;
}
.remark-slide-content h3 {
font-size: 35px;
}
.remark-code, .remark-inline-code {
font-family: 'Source Code Pro', 'Lucida Console', Monaco, monospace;
}
.remark-code {
font-size: 0.9em;
}
.remark-inline-code {
font-size: 1em;
color: #6c71c4;
}
.remark-slide-number {
color: #93a1a1;
opacity: 1;
font-size: 0.9em;
}
strong{color:#d33682;}
a, a > code {
color: #b58900;
text-decoration: none;
}
.footnote {
position: absolute;
bottom: 3em;
padding-right: 4em;
font-size: 0.9em;
}
.remark-code-line-highlighted {
background-color: #268bd240;
}
.inverse {
background-color: #002b36;
color: #fdf6e3;
}
.inverse h1, .inverse h2, .inverse h3 {
color: #fdf6e3;
}
.title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
color: #fdf6e3;
}
.title-slide {
background-color: #002b36;
}
.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: #93a1a1;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #586e75;
}
.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 #cb4b16;
padding-left: 1em;
}
.remark-slide table {
margin: auto;
border-top: 1px solid #839496;
border-bottom: 1px solid #839496;
}
.remark-slide table thead th { border-bottom: 1px solid #839496; }
th, td { padding: 5px; }
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee8d5 }
table.dataTable tbody {
background-color: #fdf6e3;
color: #657b83;
}
table.dataTable.display tbody tr.odd {
background-color: #fdf6e3;
}
table.dataTable.display tbody tr.even {
background-color: #eee8d5;
}
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: #657b83;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #657b83 !important;
}

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

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

@@ -0,0 +1,35 @@
context("test-themes")

test_theme_file <- function(theme = "duo") {
theme_fun <- switch(
theme,
"duo" = duo,
"duo_accent" = duo_accent,
"duo_accent_inverse" = duo_accent_inverse,
"mono_accent" = mono_accent,
"mono_accent_inverse" = mono_accent_inverse,
"mono_dark" = mono_dark,
"mono_light" = mono_light,
"solarized_dark" = solarized_dark,
"solarized_light" = solarized_light,
stop("Unknown theme")
)

tmpfile <- tempfile()
theme_file <- paste0(theme, ".css")

theme_fun(outfile = tmpfile)
theme_css <- paste(readLines(tmpfile), collapse = "\n")
expect_known_output(cat(theme_css), test_path("css", theme_file))
}

test_that("duo()", test_theme_file("duo"))
test_that("duo_accent()", test_theme_file("duo_accent"))
test_that("duo_accent_inverse()", test_theme_file("duo_accent_inverse"))
test_that("mono_accent()", test_theme_file("mono_accent"))
test_that("mono_accent_inverse()", test_theme_file("mono_accent_inverse"))
test_that("mono_dark()", test_theme_file("mono_dark"))
test_that("mono_light()", test_theme_file("mono_light"))
test_that("solarized_dark()", test_theme_file("solarized_dark"))
test_that("solarized_light()", test_theme_file("solarized_light"))


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