😎 Give your xaringan slides some style
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

337 lines
19KB

  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 title_slide_text_color Title Slide Text Color. Defaults to
  91. #' `inverse_text_color`. Modifies the `.title-slide` class. The value of this
  92. #' variable is also stored as a CSS variable that can be referenced with
  93. #' `var(--title-slide-text-color)` in any argument of a style function or in
  94. #' custom CSS.
  95. #' @param title_slide_background_color Title Slide Background Color. Defaults
  96. #' to `inverse_background_color`. Modifies the `.title-slide` class. The
  97. #' value of this variable is also stored as a CSS variable that can be
  98. #' referenced with `var(--title-slide-background-color)` in any argument of a
  99. #' style function or in custom CSS.
  100. #' @param title_slide_background_image Title Slide Background Image URL.
  101. #' Defaults to `NULL`. Modifies the `.title-slide` class.
  102. #' @param title_slide_background_size Title Slide Background Image Size,
  103. #' defaults to "cover" if background image is set. Defaults to `NULL`.
  104. #' Modifies the `.title-slide` class. Accepts CSS
  105. #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
  106. #' property values.
  107. #' @param title_slide_background_position Title Slide Background Image
  108. #' Position. Defaults to `NULL`. Modifies the `.title-slide` class. Accepts
  109. #' CSS
  110. #' [background-position](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
  111. #' property values.
  112. #' @param footnote_color Footnote text color (if `NA`, then it will be the same
  113. #' color as `text_color`). Defaults to `NULL`. Modifies the `.footnote`
  114. #' class.
  115. #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies
  116. #' the `.footnote` class. Accepts CSS
  117. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  118. #' property values.
  119. #' @param footnote_position_bottom Footnote location from bottom of screen.
  120. #' Defaults to 60px. Modifies the `.footnote` class. Accepts CSS
  121. #' [position](https://developer.mozilla.org/en-US/docs/Web/CSS/position_value)
  122. #' property values.
  123. #' @param left_column_subtle_color Left Column Text (not last). Defaults to
  124. #' `apply_alpha(base_color, 0.6)`. Modifies the
  125. #' `.left-column h2, .left-column h3` classes.
  126. #' @param left_column_selected_color Left Column Current Selection. Defaults to
  127. #' `base_color`. Modifies the
  128. #' `.left-column h2:last-of-type, .left-column h3:last-child` classes.
  129. #' @param blockquote_left_border_color Blockquote Left Border Color. Defaults
  130. #' to `apply_alpha(base_color, 0.5)`. Modifies the `blockquote` element.
  131. #' @param table_border_color Table top/bottom border. Defaults to #666.
  132. #' Modifies the `table: border-top, border-bottom` elements.
  133. #' @param table_row_border_color Table row inner bottom border. Defaults to
  134. #' #ddd. Modifies the `table thead th: border-bottom` elements.
  135. #' @param table_row_even_background_color Table Even Row Background Color.
  136. #' Defaults to `lighten_color(base_color, 0.8)`. Modifies the
  137. #' `thead, tfoot, tr:nth-child(even)` elements.
  138. #' @param base_font_size Base Font Size for All Slide Elements (must be `px`).
  139. #' Defaults to 20px. Modifies the `html` element. The value of this variable
  140. #' is also stored as a CSS variable that can be referenced with
  141. #' `var(--base-font-size)` in any argument of a style function or in custom
  142. #' CSS.
  143. #' @param text_font_size Slide Body Text Font Size. Defaults to 1rem. Modifies
  144. #' the `.remark-slide-content` class. Accepts CSS
  145. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  146. #' property values. The value of this variable is also stored as a CSS
  147. #' variable that can be referenced with `var(--text-font-size)` in any
  148. #' argument of a style function or in custom CSS.
  149. #' @param header_h1_font_size h1 Header Text Font Size. Defaults to 2.75rem.
  150. #' Modifies the `.remark-slide-content h1` 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(--header-h1-font-size)` in any
  154. #' argument of a style function or in custom CSS.
  155. #' @param header_h2_font_size h2 Header Text Font Size. Defaults to 2.25rem.
  156. #' Modifies the `.remark-slide-content h2` 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-h2-font-size)` in any
  160. #' argument of a style function or in custom CSS.
  161. #' @param header_h3_font_size h3 Header Text Font Size. Defaults to 1.75rem.
  162. #' Modifies the `.remark-slide-content h3` 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-h3-font-size)` in any
  166. #' argument of a style function or in custom CSS.
  167. #' @param header_background_auto Add background under slide title automatically
  168. #' for h1 header elements. If not enabled, use `class: header_background` to
  169. #' enable. Defaults to `FALSE`.
  170. #' @param header_background_color Background Color for h1 Header with
  171. #' Background. Defaults to `header_color`. Modifies the
  172. #' `.remark-slide-content h1` class. The value of this variable is also
  173. #' stored as a CSS variable that can be referenced with
  174. #' `var(--header-background-color)` in any argument of a style function or in
  175. #' custom CSS.
  176. #' @param header_background_text_color Text Color for h1 Header with
  177. #' Background. Defaults to `background_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-text-color)` in any argument of a style function
  181. #' or in custom CSS.
  182. #' @param header_background_padding Padding for h1 Header with Background.
  183. #' Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. Accepts
  184. #' CSS [padding](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
  185. #' property values.
  186. #' @param header_background_content_padding_top Top Padding for Content in
  187. #' Slide with Header with Background. Defaults to 7rem. Modifies the
  188. #' `.remark-slide-content` class.
  189. #' @param header_background_ignore_classes Slide Classes Where Header with
  190. #' Background will not be Applied. Defaults to
  191. #' `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the
  192. #' `.remark-slide-content` class.
  193. #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to
  194. #' 0.9em. Modifies the `.remark-slide-number` class. Accepts CSS
  195. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  196. #' property values.
  197. #' @param text_font_google Use `google_font()` to specify body font. Defaults
  198. #' to `NULL`. Modifies the `body` element.
  199. #' @param text_font_family Body Text Font Family (xaringan default is
  200. #' `'Droid Serif'`). Defaults to
  201. #' `xaringanthemer_font_default("text_font_family")`. Modifies the `body`
  202. #' element. The value of this variable is also stored as a CSS variable that
  203. #' can be referenced with `var(--text-font-family)` in any argument of a
  204. #' style function or in custom CSS.
  205. #' @param text_font_weight Body Text Font Weight. Defaults to
  206. #' `xaringanthemer_font_default("text_font_weight")`. Modifies the `body`
  207. #' element. Accepts CSS
  208. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  209. #' property values.
  210. #' @param text_font_url Body Text Font URL(s). Defaults to
  211. #' `xaringanthemer_font_default("text_font_url")`. Modifies the
  212. #' `@import url()` elements.
  213. #' @param text_font_family_fallback Body Text Font Fallbacks. Defaults to
  214. #' `xaringanthemer_font_default("text_font_family_fallback")`. Modifies the
  215. #' `body` element. The value of this variable is also stored as a CSS
  216. #' variable that can be referenced with `var(--text-font-family-fallback)` in
  217. #' any argument of a style function or in custom CSS.
  218. #' @param text_font_base Body Text Base Font (Total Failure Fallback). Defaults
  219. #' to sans-serif. Modifies the `body` element. The value of this variable is
  220. #' also stored as a CSS variable that can be referenced with
  221. #' `var(--text-font-base)` in any argument of a style function or in custom
  222. #' CSS.
  223. #' @param header_font_google Use `google_font()` to specify header font.
  224. #' Defaults to `NULL`. Modifies the `body` element.
  225. #' @param header_font_family Header Font Family (xaringan default is
  226. #' `'Yanone Kaffeesatz'`). Defaults to
  227. #' `xaringanthemer_font_default("header_font_family")`. Modifies the
  228. #' `h1, h2, h3` elements. The value of this variable is also stored as a CSS
  229. #' variable that can be referenced with `var(--header-font-family)` in any
  230. #' argument of a style function or in custom CSS.
  231. #' @param header_font_weight Header Font Weight. Defaults to
  232. #' `xaringanthemer_font_default("header_font_weight")`. Modifies the
  233. #' `h1, h2, h3` elements. Accepts CSS
  234. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  235. #' property values.
  236. #' @param header_font_url Header Font URL. Defaults to
  237. #' `xaringanthemer_font_default("header_font_url")`. Modifies the
  238. #' `@import url` elements.
  239. #' @param code_font_google Use `google_font()` to specify code font. Defaults
  240. #' to `NULL`. Modifies the `body` element.
  241. #' @param code_font_family Code Font Family. Defaults to
  242. #' `xaringanthemer_font_default("code_font_family")`. Modifies the
  243. #' `.remark-code, .remark-inline-code` classes. The value of this variable is
  244. #' also stored as a CSS variable that can be referenced with
  245. #' `var(--code-font-family)` in any argument of a style function or in custom
  246. #' CSS.
  247. #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the
  248. #' `.remark-inline` class. Accepts CSS
  249. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  250. #' property values. The value of this variable is also stored as a CSS
  251. #' variable that can be referenced with `var(--code-font-size)` in any
  252. #' argument of a style function or in custom CSS.
  253. #' @param code_font_url Code Font URL. Defaults to
  254. #' `xaringanthemer_font_default("code_font_url")`. Modifies the `@import url`
  255. #' elements.
  256. #' @param code_font_family_fallback Code Font Fallback. Defaults to
  257. #' `xaringanthemer_font_default("code_font_family_fallback")`. Modifies the
  258. #' `.remark-code, .remark-inline-code` classes.
  259. #' @template theme_params
  260. #' @template style-usage
  261. #' @template style_mono_accent
  262. #' @family Monotone themes
  263. #' @export
  264. style_mono_accent <- function(
  265. base_color = "#43418A",
  266. white_color = "#FFFFFF",
  267. black_color = "#272822",
  268. text_color = black_color,
  269. header_color = base_color,
  270. background_color = white_color,
  271. link_color = base_color,
  272. text_bold_color = base_color,
  273. text_slide_number_color = base_color,
  274. padding = "16px 64px 16px 64px",
  275. background_image = NULL,
  276. background_size = NULL,
  277. background_position = NULL,
  278. code_highlight_color = "rgba(255,255,0,0.5)",
  279. code_inline_color = base_color,
  280. code_inline_background_color = NULL,
  281. code_inline_font_size = "1em",
  282. inverse_background_color = base_color,
  283. inverse_text_color = white_color,
  284. inverse_text_shadow = FALSE,
  285. inverse_header_color = white_color,
  286. title_slide_text_color = inverse_text_color,
  287. title_slide_background_color = inverse_background_color,
  288. title_slide_background_image = NULL,
  289. title_slide_background_size = NULL,
  290. title_slide_background_position = NULL,
  291. footnote_color = NULL,
  292. footnote_font_size = "0.9em",
  293. footnote_position_bottom = "60px",
  294. left_column_subtle_color = apply_alpha(base_color, 0.6),
  295. left_column_selected_color = base_color,
  296. blockquote_left_border_color = apply_alpha(base_color, 0.5),
  297. table_border_color = "#666",
  298. table_row_border_color = "#ddd",
  299. table_row_even_background_color = lighten_color(base_color, 0.8),
  300. base_font_size = "20px",
  301. text_font_size = "1rem",
  302. header_h1_font_size = "2.75rem",
  303. header_h2_font_size = "2.25rem",
  304. header_h3_font_size = "1.75rem",
  305. header_background_auto = FALSE,
  306. header_background_color = header_color,
  307. header_background_text_color = background_color,
  308. header_background_padding = NULL,
  309. header_background_content_padding_top = "7rem",
  310. header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'),
  311. text_slide_number_font_size = "0.9em",
  312. text_font_google = NULL,
  313. text_font_family = xaringanthemer_font_default("text_font_family"),
  314. text_font_weight = xaringanthemer_font_default("text_font_weight"),
  315. text_font_url = xaringanthemer_font_default("text_font_url"),
  316. text_font_family_fallback = xaringanthemer_font_default("text_font_family_fallback"),
  317. text_font_base = "sans-serif",
  318. header_font_google = NULL,
  319. header_font_family = xaringanthemer_font_default("header_font_family"),
  320. header_font_weight = xaringanthemer_font_default("header_font_weight"),
  321. header_font_url = xaringanthemer_font_default("header_font_url"),
  322. code_font_google = NULL,
  323. code_font_family = xaringanthemer_font_default("code_font_family"),
  324. code_font_size = "0.9rem",
  325. code_font_url = xaringanthemer_font_default("code_font_url"),
  326. code_font_family_fallback = xaringanthemer_font_default("code_font_family_fallback"),
  327. colors = NULL,
  328. extra_css = NULL,
  329. extra_fonts = NULL,
  330. outfile = "xaringan-themer.css"
  331. ) {
  332. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  333. colors <- c(base = base_color, white = white_color, black = black_color, colors)
  334. eval(parse(text = call_style_xaringan()))
  335. }