😎 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.

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