😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

229 lines
12KB

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