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

358 lines
20KB

  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 #3C989E. Used in multiple CSS rules. The value of this
  4. #' variable is also stored as a CSS variable that can be referenced with
  5. #' `var(--base)` in any argument of a style function or in custom CSS.
  6. #' @param white_color Brightest color used, default is a very light version of
  7. #' `base_color`. Defaults to #FFFFFF. Used in multiple CSS rules. The value
  8. #' of this variable is also stored as a CSS variable that can be referenced
  9. #' with `var(--white)` in any argument of a style function or in custom CSS.
  10. #' @param black_color Darkest color used, default is a very dark, version of
  11. #' `base_color`. Defaults to `darken_color(base_color, 0.9)`. Used in
  12. #' multiple CSS rules. The value of this variable is also stored as a CSS
  13. #' variable that can be referenced with `var(--black)` in any argument of a
  14. #' style function or in custom CSS.
  15. #' @param text_color Text Color. Defaults to `white_color`. Modifies the `body`
  16. #' element. The value of this variable is also stored as a CSS variable that
  17. #' can be referenced with `var(--text_color)` in any argument of a style
  18. #' function or in custom CSS.
  19. #' @param header_color Header Color. Defaults to `base_color`. Modifies the
  20. #' `h1, h2, h3` elements. The value of this variable is also stored as a CSS
  21. #' variable that can be referenced with `var(--header-color)` in any argument
  22. #' of a style function or in custom CSS.
  23. #' @param background_color Slide Background Color. Defaults to `black_color`.
  24. #' Modifies the `.remark-slide-content` class. The value of this variable is
  25. #' also stored as a CSS variable that can be referenced with
  26. #' `var(--background-color)` in any argument of a style function or in custom
  27. #' CSS.
  28. #' @param link_color Link Color. Defaults to `base_color`. Modifies the
  29. #' `a, a > code` elements. The value of this variable is also stored as a CSS
  30. #' variable that can be referenced with `var(--link-color)` in any argument
  31. #' of a style function or in custom CSS.
  32. #' @param text_bold_color Bold Text Color. Defaults to `base_color`. Modifies
  33. #' the `strong` element. The value of this variable is also stored as a CSS
  34. #' variable that can be referenced with `var(--text-bold-color)` in any
  35. #' argument of a style function or in custom CSS.
  36. #' @param text_slide_number_color Slide Number Color. Defaults to `base_color`.
  37. #' Modifies the `.remark-slide-number` class.
  38. #' @param padding Slide Padding in `top right [bottom left]` format. Defaults
  39. #' to 16px 64px 16px 64px. Modifies the `.remark-slide-content` class.
  40. #' Accepts CSS
  41. #' [padding](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
  42. #' property values.
  43. #' @param background_image Background image applied to each *and every* slide.
  44. #' Set `title_slide_background_image = "none"` to remove the background image
  45. #' from the title slide. Defaults to `NULL`. Modifies the
  46. #' `.remark-slide-content` class.
  47. #' @param background_size Background image size, requires `background_image` to
  48. #' be set. If `background_image` is set, `background_size` will default to
  49. #' `cover` so the background fills the screen. If both `background_image` and
  50. #' `background_position` are set, will default to 100 percent. Defaults to
  51. #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
  52. #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
  53. #' property values.
  54. #' @param background_position Background image position, requires
  55. #' `background_image` to be set, and it is recommended to adjust
  56. #' `background_size`. Defaults to `NULL`. Modifies the
  57. #' `.remark-slide-content` class. Accepts CSS
  58. #' [background-position](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
  59. #' property values.
  60. #' @param code_highlight_color Code Line Highlight. Defaults to
  61. #' rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class.
  62. #' The value of this variable is also stored as a CSS variable that can be
  63. #' referenced with `var(--code-highlight-color)` in any argument of a style
  64. #' function or in custom CSS.
  65. #' @param code_inline_color Inline Code Color. Defaults to `base_color`.
  66. #' Modifies the `.remark-inline-code` class.
  67. #' @param code_inline_background_color Inline Code Background Color. Defaults
  68. #' to `NULL`. Modifies the `.remark-inline-code` class.
  69. #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em.
  70. #' Modifies the `.remark-inline-code` class. Accepts CSS
  71. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  72. #' property values. The value of this variable is also stored as a CSS
  73. #' variable that can be referenced with `var(--code-inline-font-size)` in any
  74. #' argument of a style function or in custom CSS.
  75. #' @param inverse_background_color Inverse Background Color. Defaults to
  76. #' `base_color`. Modifies the `.inverse` class. The value of this variable is
  77. #' also stored as a CSS variable that can be referenced with
  78. #' `var(--inverse-background-color)` in any argument of a style function or
  79. #' in custom CSS.
  80. #' @param inverse_text_color Inverse Text Color. Defaults to `black_color`.
  81. #' Modifies the `.inverse` class. The value of this variable is also stored
  82. #' as a CSS variable that can be referenced with `var(--inverse-text-color)`
  83. #' in any argument of a style function or in custom CSS.
  84. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
  85. #' Defaults to `FALSE`. Modifies the `.inverse` class.
  86. #' @param inverse_header_color Inverse Header Color. Defaults to `black_color`.
  87. #' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
  88. #' this variable is also stored as a CSS variable that can be referenced with
  89. #' `var(--inverse-header-color)` in any argument of a style function or in
  90. #' custom CSS.
  91. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
  92. #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
  93. #' variable is also stored as a CSS variable that can be referenced with
  94. #' `var(--inverse-link-color)` in any argument of a style function or in
  95. #' custom CSS.
  96. #' @param title_slide_text_color Title Slide Text Color. Defaults to
  97. #' `inverse_text_color`. Modifies the `.title-slide` class. The value of this
  98. #' variable is also stored as a CSS variable that can be referenced with
  99. #' `var(--title-slide-text-color)` in any argument of a style function or in
  100. #' custom CSS.
  101. #' @param title_slide_background_color Title Slide Background Color. Defaults
  102. #' to `inverse_background_color`. Modifies the `.title-slide` class. The
  103. #' value of this variable is also stored as a CSS variable that can be
  104. #' referenced with `var(--title-slide-background-color)` in any argument of a
  105. #' style function or in custom CSS.
  106. #' @param title_slide_background_image Title Slide Background Image URL.
  107. #' Defaults to `NULL`. Modifies the `.title-slide` class.
  108. #' @param title_slide_background_size Title Slide Background Image Size,
  109. #' defaults to "cover" if background image is set. Defaults to `NULL`.
  110. #' Modifies the `.title-slide` class. Accepts CSS
  111. #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
  112. #' property values.
  113. #' @param title_slide_background_position Title Slide Background Image
  114. #' Position. Defaults to `NULL`. Modifies the `.title-slide` class. Accepts
  115. #' CSS
  116. #' [background-position](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
  117. #' property values.
  118. #' @param footnote_color Footnote text color (if `NA`, then it will be the same
  119. #' color as `text_color`). Defaults to `NULL`. Modifies the `.footnote`
  120. #' class.
  121. #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies
  122. #' the `.footnote` class. Accepts CSS
  123. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  124. #' property values.
  125. #' @param footnote_position_bottom Footnote location from bottom of screen.
  126. #' Defaults to 60px. Modifies the `.footnote` class. Accepts CSS
  127. #' [position](https://developer.mozilla.org/en-US/docs/Web/CSS/position_value)
  128. #' property values.
  129. #' @param left_column_subtle_color Left Column Text (not last). Defaults to
  130. #' `apply_alpha(base_color, 0.6)`. Modifies the
  131. #' `.left-column h2, .left-column h3` classes.
  132. #' @param left_column_selected_color Left Column Current Selection. Defaults to
  133. #' `base_color`. Modifies the
  134. #' `.left-column h2:last-of-type, .left-column h3:last-child` classes.
  135. #' @param blockquote_left_border_color Blockquote Left Border Color. Defaults
  136. #' to `apply_alpha(base_color, 0.5)`. Modifies the `blockquote` element.
  137. #' @param table_border_color Table top/bottom border. Defaults to #666.
  138. #' Modifies the `table: border-top, border-bottom` elements.
  139. #' @param table_row_border_color Table row inner bottom border. Defaults to
  140. #' #ddd. Modifies the `table thead th: border-bottom` elements.
  141. #' @param table_row_even_background_color Table Even Row Background Color.
  142. #' Defaults to `darken_color(base_color, 0.8)`. Modifies the
  143. #' `thead, tfoot, tr:nth-child(even)` elements.
  144. #' @param base_font_size Base Font Size for All Slide Elements (must be `px`).
  145. #' Defaults to 20px. Modifies the `html` element. The value of this variable
  146. #' is also stored as a CSS variable that can be referenced with
  147. #' `var(--base-font-size)` in any argument of a style function or in custom
  148. #' CSS.
  149. #' @param text_font_size Slide Body Text Font Size. Defaults to 1rem. Modifies
  150. #' the `.remark-slide-content` class. Accepts CSS
  151. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  152. #' property values. The value of this variable is also stored as a CSS
  153. #' variable that can be referenced with `var(--text-font-size)` in any
  154. #' argument of a style function or in custom CSS.
  155. #' @param header_h1_font_size h1 Header Text Font Size. Defaults to 2.75rem.
  156. #' Modifies the `.remark-slide-content h1` class. Accepts CSS
  157. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  158. #' property values. The value of this variable is also stored as a CSS
  159. #' variable that can be referenced with `var(--header-h1-font-size)` in any
  160. #' argument of a style function or in custom CSS.
  161. #' @param header_h2_font_size h2 Header Text Font Size. Defaults to 2.25rem.
  162. #' Modifies the `.remark-slide-content h2` class. Accepts CSS
  163. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  164. #' property values. The value of this variable is also stored as a CSS
  165. #' variable that can be referenced with `var(--header-h2-font-size)` in any
  166. #' argument of a style function or in custom CSS.
  167. #' @param header_h3_font_size h3 Header Text Font Size. Defaults to 1.75rem.
  168. #' Modifies the `.remark-slide-content h3` class. Accepts CSS
  169. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  170. #' property values. The value of this variable is also stored as a CSS
  171. #' variable that can be referenced with `var(--header-h3-font-size)` in any
  172. #' argument of a style function or in custom CSS.
  173. #' @param header_background_auto Add background under slide title automatically
  174. #' for h1 header elements. If not enabled, use `class: header_background` to
  175. #' enable. Defaults to `FALSE`.
  176. #' @param header_background_color Background Color for h1 Header with
  177. #' Background. Defaults to `header_color`. Modifies the
  178. #' `.remark-slide-content h1` class. The value of this variable is also
  179. #' stored as a CSS variable that can be referenced with
  180. #' `var(--header-background-color)` in any argument of a style function or in
  181. #' custom CSS.
  182. #' @param header_background_text_color Text Color for h1 Header with
  183. #' Background. Defaults to `background_color`. Modifies the
  184. #' `.remark-slide-content h1` class. The value of this variable is also
  185. #' stored as a CSS variable that can be referenced with
  186. #' `var(--header-background-text-color)` in any argument of a style function
  187. #' or in custom CSS.
  188. #' @param header_background_padding Padding for h1 Header with Background.
  189. #' Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. Accepts
  190. #' CSS [padding](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
  191. #' property values.
  192. #' @param header_background_content_padding_top Top Padding for Content in
  193. #' Slide with Header with Background. Defaults to 7rem. Modifies the
  194. #' `.remark-slide-content` class.
  195. #' @param header_background_ignore_classes Slide Classes Where Header with
  196. #' Background will not be Applied. Defaults to
  197. #' `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the
  198. #' `.remark-slide-content` class.
  199. #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to
  200. #' 0.9rem. Modifies the `.remark-slide-number` class. Accepts CSS
  201. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  202. #' property values.
  203. #' @param text_font_google Use `google_font()` to specify body font. Defaults
  204. #' to `NULL`. Modifies the `body` element.
  205. #' @param text_font_family Body Text Font Family (xaringan default is
  206. #' `'Droid Serif'`). Defaults to
  207. #' `xaringanthemer_font_default("text_font_family")`. Modifies the `body`
  208. #' element. The value of this variable is also stored as a CSS variable that
  209. #' can be referenced with `var(--text-font-family)` in any argument of a
  210. #' style function or in custom CSS.
  211. #' @param text_font_weight Body Text Font Weight. Defaults to
  212. #' `xaringanthemer_font_default("text_font_weight")`. Modifies the `body`
  213. #' element. Accepts CSS
  214. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  215. #' property values.
  216. #' @param text_bold_font_weight Body Bold Text Font Weight. Defaults to bold.
  217. #' Modifies the `strong` element.
  218. #' @param text_font_url Body Text Font URL(s). Defaults to
  219. #' `xaringanthemer_font_default("text_font_url")`. Modifies the
  220. #' `@import url()` elements.
  221. #' @param text_font_family_fallback Body Text Font Fallbacks. Defaults to
  222. #' `xaringanthemer_font_default("text_font_family_fallback")`. Modifies the
  223. #' `body` element. The value of this variable is also stored as a CSS
  224. #' variable that can be referenced with `var(--text-font-family-fallback)` in
  225. #' any argument of a style function or in custom CSS.
  226. #' @param text_font_base Body Text Base Font (Total Failure Fallback). Defaults
  227. #' to sans-serif. Modifies the `body` element. The value of this variable is
  228. #' also stored as a CSS variable that can be referenced with
  229. #' `var(--text-font-base)` in any argument of a style function or in custom
  230. #' CSS.
  231. #' @param header_font_google Use `google_font()` to specify header font.
  232. #' Defaults to `NULL`. Modifies the `body` element.
  233. #' @param header_font_family Header Font Family (xaringan default is
  234. #' `'Yanone Kaffeesatz'`). Defaults to
  235. #' `xaringanthemer_font_default("header_font_family")`. Modifies the
  236. #' `h1, h2, h3` elements. The value of this variable is also stored as a CSS
  237. #' variable that can be referenced with `var(--header-font-family)` in any
  238. #' argument of a style function or in custom CSS.
  239. #' @param header_font_weight Header Font Weight. Defaults to
  240. #' `xaringanthemer_font_default("header_font_weight")`. Modifies the
  241. #' `h1, h2, h3` elements. Accepts CSS
  242. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  243. #' property values.
  244. #' @param header_font_family_fallback Header Font Family Fallback. Defaults to
  245. #' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
  246. #' variable is also stored as a CSS variable that can be referenced with
  247. #' `var(--header-font-family-fallback)` in any argument of a style function
  248. #' or in custom CSS.
  249. #' @param header_font_url Header Font URL. Defaults to
  250. #' `xaringanthemer_font_default("header_font_url")`. Modifies the
  251. #' `@import url` elements.
  252. #' @param code_font_google Use `google_font()` to specify code font. Defaults
  253. #' to `NULL`. Modifies the `body` element.
  254. #' @param code_font_family Code Font Family. Defaults to
  255. #' `xaringanthemer_font_default("code_font_family")`. Modifies the
  256. #' `.remark-code, .remark-inline-code` classes. The value of this variable is
  257. #' also stored as a CSS variable that can be referenced with
  258. #' `var(--code-font-family)` in any argument of a style function or in custom
  259. #' CSS.
  260. #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the
  261. #' `.remark-inline` class. Accepts CSS
  262. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  263. #' property values. The value of this variable is also stored as a CSS
  264. #' variable that can be referenced with `var(--code-font-size)` in any
  265. #' argument of a style function or in custom CSS.
  266. #' @param code_font_url Code Font URL. Defaults to
  267. #' `xaringanthemer_font_default("code_font_url")`. Modifies the `@import url`
  268. #' elements.
  269. #' @param code_font_family_fallback Code Font Fallback. Defaults to
  270. #' `xaringanthemer_font_default("code_font_family_fallback")`. Modifies the
  271. #' `.remark-code, .remark-inline-code` classes.
  272. #' @param link_decoration Text decoration of links. Defaults to none. Modifies
  273. #' the `a, a > code` elements. Accepts CSS
  274. #' [text-decoration](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
  275. #' property values.
  276. #' @template theme_params
  277. #' @template style-usage
  278. #' @template style_mono_accent_inverse
  279. #' @family Monotone themes
  280. #' @export
  281. style_mono_accent_inverse <- function(
  282. base_color = "#3C989E",
  283. white_color = "#FFFFFF",
  284. black_color = darken_color(base_color, 0.9),
  285. text_color = white_color,
  286. header_color = base_color,
  287. background_color = black_color,
  288. link_color = base_color,
  289. text_bold_color = base_color,
  290. text_slide_number_color = base_color,
  291. padding = "16px 64px 16px 64px",
  292. background_image = NULL,
  293. background_size = NULL,
  294. background_position = NULL,
  295. code_highlight_color = "rgba(255,255,0,0.5)",
  296. code_inline_color = base_color,
  297. code_inline_background_color = NULL,
  298. code_inline_font_size = "1em",
  299. inverse_background_color = base_color,
  300. inverse_text_color = black_color,
  301. inverse_text_shadow = FALSE,
  302. inverse_header_color = black_color,
  303. inverse_link_color = link_color,
  304. title_slide_text_color = inverse_text_color,
  305. title_slide_background_color = inverse_background_color,
  306. title_slide_background_image = NULL,
  307. title_slide_background_size = NULL,
  308. title_slide_background_position = NULL,
  309. footnote_color = NULL,
  310. footnote_font_size = "0.9em",
  311. footnote_position_bottom = "60px",
  312. left_column_subtle_color = apply_alpha(base_color, 0.6),
  313. left_column_selected_color = base_color,
  314. blockquote_left_border_color = apply_alpha(base_color, 0.5),
  315. table_border_color = "#666",
  316. table_row_border_color = "#ddd",
  317. table_row_even_background_color = darken_color(base_color, 0.8),
  318. base_font_size = "20px",
  319. text_font_size = "1rem",
  320. header_h1_font_size = "2.75rem",
  321. header_h2_font_size = "2.25rem",
  322. header_h3_font_size = "1.75rem",
  323. header_background_auto = FALSE,
  324. header_background_color = header_color,
  325. header_background_text_color = background_color,
  326. header_background_padding = NULL,
  327. header_background_content_padding_top = "7rem",
  328. header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'),
  329. text_slide_number_font_size = "0.9rem",
  330. text_font_google = NULL,
  331. text_font_family = xaringanthemer_font_default("text_font_family"),
  332. text_font_weight = xaringanthemer_font_default("text_font_weight"),
  333. text_bold_font_weight = "bold",
  334. text_font_url = xaringanthemer_font_default("text_font_url"),
  335. text_font_family_fallback = xaringanthemer_font_default("text_font_family_fallback"),
  336. text_font_base = "sans-serif",
  337. header_font_google = NULL,
  338. header_font_family = xaringanthemer_font_default("header_font_family"),
  339. header_font_weight = xaringanthemer_font_default("header_font_weight"),
  340. header_font_family_fallback = "Georgia, serif",
  341. header_font_url = xaringanthemer_font_default("header_font_url"),
  342. code_font_google = NULL,
  343. code_font_family = xaringanthemer_font_default("code_font_family"),
  344. code_font_size = "0.9rem",
  345. code_font_url = xaringanthemer_font_default("code_font_url"),
  346. code_font_family_fallback = xaringanthemer_font_default("code_font_family_fallback"),
  347. link_decoration = "none",
  348. colors = NULL,
  349. extra_css = NULL,
  350. extra_fonts = NULL,
  351. outfile = "xaringan-themer.css"
  352. ) {
  353. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  354. colors <- c(base = base_color, white = white_color, black = black_color, colors)
  355. eval(parse(text = call_style_xaringan()))
  356. }