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

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