😎 Give your xaringan slides some style
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

237 lines
13KB

  1. # Generated by inst/scripts/generate_theme_functions.R: do not edit by hand
  2. #' @param primary_color Duotone Primary Color. Defaults to #006747. Used in
  3. #' multiple CSS rules.
  4. #' @param secondary_color Duotone Secondary Color. Defaults to #CFC493. Used in
  5. #' multiple CSS rules.
  6. #' @param white_color Brightest color used. Defaults to #FFFFFF. Used in
  7. #' multiple CSS rules.
  8. #' @param black_color Darkest color used. Defaults to #000000. Used in multiple
  9. #' CSS rules.
  10. #' @param text_color Text Color. Defaults to `white_color`. Modifies the `body`
  11. #' element.
  12. #' @param header_color Header Color. Defaults to `primary_color`. Modifies the
  13. #' `h1, h2, h3` elements.
  14. #' @param background_color Slide Background Color. Defaults to `black_color`.
  15. #' Modifies the `.remark-slide-content` class.
  16. #' @param link_color Link Color. Defaults to
  17. #' `choose_dark_or_light(secondary_color, secondary_color, primary_color)`.
  18. #' Modifies the `a, a > code` elements.
  19. #' @param text_bold_color Bold Text Color. Defaults to
  20. #' `choose_dark_or_light(secondary_color, secondary_color, primary_color)`.
  21. #' Modifies the `strong` element.
  22. #' @param text_slide_number_color Slide Number Color. Defaults to
  23. #' `primary_color`. Modifies the `.remark-slide-number` class.
  24. #' @param padding Slide Padding in `top right [bottom left]` format. Defaults
  25. #' to 16px 64px 16px 64px. Modifies the `.remark-slide-content` class.
  26. #' @param background_image Background image applied to each *and every* slide.
  27. #' Set `title_slide_background_image = "none"` to remove the background image
  28. #' from the title slide. Defaults to `NULL`. Modifies the
  29. #' `.remark-slide-content` class.
  30. #' @param background_size Background image size, requires `background_image` to
  31. #' be set. If `background_image` is set, `background_size` will default to
  32. #' `cover` so the backround fills the screen. If both `background_image` and
  33. #' `background_position` are set, will default to 100 percent. Defaults to
  34. #' `NULL`. Modifies the `.remark-slide-content` class.
  35. #' @param background_position Background image position, requires
  36. #' `background_image` to be set, and it is recommended to adjust
  37. #' `background_size`. Defaults to `NULL`. Modifies the
  38. #' `.remark-slide-content` class.
  39. #' @param code_highlight_color Code Line Highlight. Defaults to
  40. #' rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class.
  41. #' @param code_inline_color Inline Code Color. Defaults to
  42. #' `choose_dark_or_light(secondary_color, secondary_color, primary_color)`.
  43. #' Modifies the `.remark-inline-code` class.
  44. #' @param code_inline_background_color Inline Code Background Color. Defaults
  45. #' to `NULL`. Modifies the `.remark-inline-code` class.
  46. #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em.
  47. #' Modifies the `.remark-inline-code` class.
  48. #' @param inverse_background_color Inverse Background Color. Defaults to
  49. #' `secondary_color`. Modifies the `.inverse` class.
  50. #' @param inverse_text_color Inverse Text Color. Defaults to
  51. #' `choose_dark_or_light(secondary_color, black_color, white_color)`.
  52. #' Modifies the `.inverse` class.
  53. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
  54. #' Defaults to `FALSE`. Modifies the `.inverse` class.
  55. #' @param inverse_header_color Inverse Header Color. Defaults to
  56. #' `choose_dark_or_light(secondary_color, black_color, white_color)`.
  57. #' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes.
  58. #' @param title_slide_text_color Title Slide Text Color. Defaults to
  59. #' `choose_dark_or_light(primary_color, black_color, white_color)`. Modifies
  60. #' the `.title-slide` class.
  61. #' @param title_slide_background_color Title Slide Background Color. Defaults
  62. #' to `primary_color`. Modifies the `.title-slide` class.
  63. #' @param title_slide_background_image Title Slide Background Image URL.
  64. #' Defaults to `NULL`. Modifies the `.title-slide` class.
  65. #' @param title_slide_background_size Title Slide Background Image Size,
  66. #' defaults to "cover" if background image is set. Defaults to `NULL`.
  67. #' Modifies the `.title-slide` class.
  68. #' @param title_slide_background_position Title Slide Background Image
  69. #' Position. Defaults to `NULL`. Modifies the `.title-slide` class.
  70. #' @param footnote_color Footnote text color (if `NA`, then it will be the same
  71. #' color as `text_color`). Defaults to `NULL`. Modifies the `.footnote`
  72. #' class.
  73. #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies
  74. #' the `.footnote` class.
  75. #' @param footnote_position_bottom Footnote location from bottom of screen.
  76. #' Defaults to 60px. Modifies the `.footnote` class.
  77. #' @param left_column_subtle_color Left Column Text (not last). Defaults to
  78. #' `apply_alpha(primary_color, 0.6)`. Modifies the
  79. #' `.left-column h2, .left-column h3` classes.
  80. #' @param left_column_selected_color Left Column Current Selection. Defaults to
  81. #' `primary_color`. Modifies the
  82. #' `.left-column h2:last-of-type, .left-column h3:last-child` classes.
  83. #' @param blockquote_left_border_color Blockquote Left Border Color. Defaults
  84. #' to `apply_alpha(secondary_color, 0.5)`. Modifies the `blockquote` element.
  85. #' @param table_border_color Table top/bottom border. Defaults to #666.
  86. #' Modifies the `table: border-top, border-bottom` elements.
  87. #' @param table_row_border_color Table row inner bottom border. Defaults to
  88. #' #ddd. Modifies the `table thead th: border-bottom` elements.
  89. #' @param table_row_even_background_color Table Even Row Background Color.
  90. #' Defaults to
  91. #' `darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.2)`.
  92. #' Modifies the `thead, tfoot, tr:nth-child(even)` elements.
  93. #' @param base_font_size Base Font Size for All Slide Elements (must be `px`).
  94. #' Defaults to 20px. Modifies the `html` element.
  95. #' @param text_font_size Slide Body Text Font Size. Defaults to 1rem. Modifies
  96. #' the `.remark-slide-content` class.
  97. #' @param header_h1_font_size h1 Header Text Font Size. Defaults to 2.75rem.
  98. #' Modifies the `.remark-slide-content h1` class.
  99. #' @param header_h2_font_size h2 Header Text Font Size. Defaults to 2.25rem.
  100. #' Modifies the `.remark-slide-content h2` class.
  101. #' @param header_h3_font_size h3 Header Text Font Size. Defaults to 1.75rem.
  102. #' Modifies the `.remark-slide-content h3` class.
  103. #' @param header_background_auto Add background under slide title automatically
  104. #' for h1 header elements. If not enabled, use `class: header_background` to
  105. #' enable. Defaults to `FALSE`.
  106. #' @param header_background_color Background Color for h1 Header with
  107. #' Background. Defaults to `header_color`. Modifies the
  108. #' `.remark-slide-content h1` class.
  109. #' @param header_background_text_color Text Color for h1 Header with
  110. #' Background. Defaults to `background_color`. Modifies the
  111. #' `.remark-slide-content h1` class.
  112. #' @param header_background_padding Padding for h1 Header with Background.
  113. #' Defaults to `NULL`. Modifies the `.remark-slide-content h1` class.
  114. #' @param header_background_content_padding_top Top Padding for Content in
  115. #' Slide with Header with Background. Defaults to 7rem. Modifies the
  116. #' `.remark-slide-content` class.
  117. #' @param header_background_ignore_classes Slide Classes Where Header with
  118. #' Background will not be Applied. Defaults to
  119. #' `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the
  120. #' `.remark-slide-content` class.
  121. #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to
  122. #' 0.9em. Modifies the `.remark-slide-number` class.
  123. #' @param text_font_google Use `google_font()` to specify body font. Defaults
  124. #' to `NULL`. Modifies the `body` element.
  125. #' @param text_font_family Body Text Font Family (xaringan default is
  126. #' `'Droid Serif'`). Defaults to Noto Sans. Modifies the `body` element.
  127. #' @param text_font_weight Body Text Font Weight. Defaults to normal. Modifies
  128. #' the `body` element.
  129. #' @param text_font_url Body Text Font URL(s). Defaults to
  130. #' https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap.
  131. #' Modifies the `@import url()` elements.
  132. #' @param text_font_family_fallback Body Text Font Fallbacks. Defaults to
  133. #' -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue,
  134. #' helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the `body`
  135. #' element.
  136. #' @param text_font_base Body Text Base Font (Total Failure Fallback). Defaults
  137. #' to sans-serif. Modifies the `body` element.
  138. #' @param header_font_google Use `google_font()` to specify header font.
  139. #' Defaults to `NULL`. Modifies the `body` element.
  140. #' @param header_font_family Header Font Family (xaringan default is
  141. #' `'Yanone Kaffeesatz'`). Defaults to Cabin. Modifies the `h1, h2, h3`
  142. #' elements.
  143. #' @param header_font_weight Header Font Weight. Defaults to 600. Modifies the
  144. #' `h1, h2, h3` elements.
  145. #' @param header_font_url Header Font URL. Defaults to
  146. #' https://fonts.googleapis.com/css?family=Cabin:600,600i&display=swap.
  147. #' Modifies the `@import url` elements.
  148. #' @param code_font_google Use `google_font()` to specify code font. Defaults
  149. #' to `NULL`. Modifies the `body` element.
  150. #' @param code_font_family Code Font Family. Defaults to Source Code Pro.
  151. #' Modifies the `.remark-code, .remark-inline-code` classes.
  152. #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the
  153. #' `.remark-inline` class.
  154. #' @param code_font_url Code Font URL. Defaults to
  155. #' https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap.
  156. #' Modifies the `@import url` elements.
  157. #' @param code_font_family_fallback Code Font Fallback. Defaults to Menlo,
  158. #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the
  159. #' `.remark-code, .remark-inline-code` classes.
  160. #' @template theme_params
  161. #' @template style_duo_accent_inverse
  162. #' @family Duotone themes
  163. #' @export
  164. style_duo_accent_inverse <- function(
  165. primary_color = "#006747",
  166. secondary_color = "#CFC493",
  167. white_color = "#FFFFFF",
  168. black_color = "#000000",
  169. text_color = white_color,
  170. header_color = primary_color,
  171. background_color = black_color,
  172. link_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
  173. text_bold_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
  174. text_slide_number_color = primary_color,
  175. padding = "16px 64px 16px 64px",
  176. background_image = NULL,
  177. background_size = NULL,
  178. background_position = NULL,
  179. code_highlight_color = "rgba(255,255,0,0.5)",
  180. code_inline_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
  181. code_inline_background_color = NULL,
  182. code_inline_font_size = "1em",
  183. inverse_background_color = secondary_color,
  184. inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
  185. inverse_text_shadow = FALSE,
  186. inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
  187. title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
  188. title_slide_background_color = primary_color,
  189. title_slide_background_image = NULL,
  190. title_slide_background_size = NULL,
  191. title_slide_background_position = NULL,
  192. footnote_color = NULL,
  193. footnote_font_size = "0.9em",
  194. footnote_position_bottom = "60px",
  195. left_column_subtle_color = apply_alpha(primary_color, 0.6),
  196. left_column_selected_color = primary_color,
  197. blockquote_left_border_color = apply_alpha(secondary_color, 0.5),
  198. table_border_color = "#666",
  199. table_row_border_color = "#ddd",
  200. table_row_even_background_color = darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.2),
  201. base_font_size = "20px",
  202. text_font_size = "1rem",
  203. header_h1_font_size = "2.75rem",
  204. header_h2_font_size = "2.25rem",
  205. header_h3_font_size = "1.75rem",
  206. header_background_auto = FALSE,
  207. header_background_color = header_color,
  208. header_background_text_color = background_color,
  209. header_background_padding = NULL,
  210. header_background_content_padding_top = "7rem",
  211. header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'),
  212. text_slide_number_font_size = "0.9em",
  213. text_font_google = NULL,
  214. text_font_family = "Noto Sans",
  215. text_font_weight = "normal",
  216. text_font_url = "https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap",
  217. text_font_family_fallback = "-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial",
  218. text_font_base = "sans-serif",
  219. header_font_google = NULL,
  220. header_font_family = "Cabin",
  221. header_font_weight = "600",
  222. header_font_url = "https://fonts.googleapis.com/css?family=Cabin:600,600i&display=swap",
  223. code_font_google = NULL,
  224. code_font_family = "Source Code Pro",
  225. code_font_size = "0.9rem",
  226. code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap",
  227. code_font_family_fallback = "Menlo, Consolas, Monaco, Liberation Mono, Lucida Console",
  228. colors = NULL,
  229. extra_css = NULL,
  230. extra_fonts = NULL,
  231. outfile = "xaringan-themer.css"
  232. ) {
  233. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  234. eval(parse(text = call_style_xaringan()))
  235. }