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

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