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

296 lines
17KB

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