😎 Give your xaringan slides some style
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

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