😎 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.

356 lines
21KB

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