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

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