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

218 lines
11KB

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