😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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