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

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