😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

349 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.9em. 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_font_url Body Text Font URL(s). Defaults to
  216. #' `xaringanthemer_font_default("text_font_url")`. Modifies the
  217. #' `@import url()` elements.
  218. #' @param text_font_family_fallback Body Text Font Fallbacks. Defaults to
  219. #' `xaringanthemer_font_default("text_font_family_fallback")`. Modifies the
  220. #' `body` element. The value of this variable is also stored as a CSS
  221. #' variable that can be referenced with `var(--text-font-family-fallback)` in
  222. #' any argument of a style function or in custom CSS.
  223. #' @param text_font_base Body Text Base Font (Total Failure Fallback). Defaults
  224. #' to sans-serif. Modifies the `body` element. The value of this variable is
  225. #' also stored as a CSS variable that can be referenced with
  226. #' `var(--text-font-base)` in any argument of a style function or in custom
  227. #' CSS.
  228. #' @param header_font_google Use `google_font()` to specify header font.
  229. #' Defaults to `NULL`. Modifies the `body` element.
  230. #' @param header_font_family Header Font Family (xaringan default is
  231. #' `'Yanone Kaffeesatz'`). Defaults to
  232. #' `xaringanthemer_font_default("header_font_family")`. Modifies the
  233. #' `h1, h2, h3` elements. The value of this variable is also stored as a CSS
  234. #' variable that can be referenced with `var(--header-font-family)` in any
  235. #' argument of a style function or in custom CSS.
  236. #' @param header_font_weight Header Font Weight. Defaults to
  237. #' `xaringanthemer_font_default("header_font_weight")`. Modifies the
  238. #' `h1, h2, h3` elements. Accepts CSS
  239. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  240. #' property values.
  241. #' @param header_font_family_fallback Header Font Family Fallback. Defaults to
  242. #' Georgia, serif. Modifies the `h1, h2, h3` elements. The value of this
  243. #' variable is also stored as a CSS variable that can be referenced with
  244. #' `var(--header-font-family-fallback)` in any argument of a style function
  245. #' or in custom CSS.
  246. #' @param header_font_url Header Font URL. Defaults to
  247. #' `xaringanthemer_font_default("header_font_url")`. Modifies the
  248. #' `@import url` elements.
  249. #' @param code_font_google Use `google_font()` to specify code font. Defaults
  250. #' to `NULL`. Modifies the `body` element.
  251. #' @param code_font_family Code Font Family. Defaults to
  252. #' `xaringanthemer_font_default("code_font_family")`. Modifies the
  253. #' `.remark-code, .remark-inline-code` classes. The value of this variable is
  254. #' also stored as a CSS variable that can be referenced with
  255. #' `var(--code-font-family)` in any argument of a style function or in custom
  256. #' CSS.
  257. #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the
  258. #' `.remark-inline` class. Accepts CSS
  259. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  260. #' property values. The value of this variable is also stored as a CSS
  261. #' variable that can be referenced with `var(--code-font-size)` in any
  262. #' argument of a style function or in custom CSS.
  263. #' @param code_font_url Code Font URL. Defaults to
  264. #' `xaringanthemer_font_default("code_font_url")`. Modifies the `@import url`
  265. #' elements.
  266. #' @param code_font_family_fallback Code Font Fallback. Defaults to
  267. #' `xaringanthemer_font_default("code_font_family_fallback")`. Modifies the
  268. #' `.remark-code, .remark-inline-code` classes.
  269. #' @template theme_params
  270. #' @template style-usage
  271. #' @template style_mono_accent
  272. #' @family Monotone themes
  273. #' @export
  274. style_mono_accent <- function(
  275. base_color = "#43418A",
  276. white_color = "#FFFFFF",
  277. black_color = "#272822",
  278. text_color = black_color,
  279. header_color = base_color,
  280. background_color = white_color,
  281. link_color = base_color,
  282. text_bold_color = base_color,
  283. text_slide_number_color = base_color,
  284. padding = "16px 64px 16px 64px",
  285. background_image = NULL,
  286. background_size = NULL,
  287. background_position = NULL,
  288. code_highlight_color = "rgba(255,255,0,0.5)",
  289. code_inline_color = base_color,
  290. code_inline_background_color = NULL,
  291. code_inline_font_size = "1em",
  292. inverse_background_color = base_color,
  293. inverse_text_color = white_color,
  294. inverse_text_shadow = FALSE,
  295. inverse_header_color = white_color,
  296. inverse_link_color = link_color,
  297. title_slide_text_color = inverse_text_color,
  298. title_slide_background_color = inverse_background_color,
  299. title_slide_background_image = NULL,
  300. title_slide_background_size = NULL,
  301. title_slide_background_position = NULL,
  302. footnote_color = NULL,
  303. footnote_font_size = "0.9em",
  304. footnote_position_bottom = "60px",
  305. left_column_subtle_color = apply_alpha(base_color, 0.6),
  306. left_column_selected_color = base_color,
  307. blockquote_left_border_color = apply_alpha(base_color, 0.5),
  308. table_border_color = "#666",
  309. table_row_border_color = "#ddd",
  310. table_row_even_background_color = lighten_color(base_color, 0.8),
  311. base_font_size = "20px",
  312. text_font_size = "1rem",
  313. header_h1_font_size = "2.75rem",
  314. header_h2_font_size = "2.25rem",
  315. header_h3_font_size = "1.75rem",
  316. header_background_auto = FALSE,
  317. header_background_color = header_color,
  318. header_background_text_color = background_color,
  319. header_background_padding = NULL,
  320. header_background_content_padding_top = "7rem",
  321. header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'),
  322. text_slide_number_font_size = "0.9em",
  323. text_font_google = NULL,
  324. text_font_family = xaringanthemer_font_default("text_font_family"),
  325. text_font_weight = xaringanthemer_font_default("text_font_weight"),
  326. text_font_url = xaringanthemer_font_default("text_font_url"),
  327. text_font_family_fallback = xaringanthemer_font_default("text_font_family_fallback"),
  328. text_font_base = "sans-serif",
  329. header_font_google = NULL,
  330. header_font_family = xaringanthemer_font_default("header_font_family"),
  331. header_font_weight = xaringanthemer_font_default("header_font_weight"),
  332. header_font_family_fallback = "Georgia, serif",
  333. header_font_url = xaringanthemer_font_default("header_font_url"),
  334. code_font_google = NULL,
  335. code_font_family = xaringanthemer_font_default("code_font_family"),
  336. code_font_size = "0.9rem",
  337. code_font_url = xaringanthemer_font_default("code_font_url"),
  338. code_font_family_fallback = xaringanthemer_font_default("code_font_family_fallback"),
  339. colors = NULL,
  340. extra_css = NULL,
  341. extra_fonts = NULL,
  342. outfile = "xaringan-themer.css"
  343. ) {
  344. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  345. colors <- c(base = base_color, white = white_color, black = black_color, colors)
  346. eval(parse(text = call_style_xaringan()))
  347. }