😎 Give your xaringan slides some style
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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