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

320 lines
18KB

  1. # Generated by inst/scripts/generate_theme_functions.R: do not edit by hand
  2. #' @param text_color Text Color. Defaults to #839496. 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 #002b36.
  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 #586e75.
  24. #' Modifies the `.remark-slide-number` class.
  25. #' @param padding Slide Padding in `top right [bottom left]` format. Defaults
  26. #' to 16px 64px 16px 64px. Modifies the `.remark-slide-content` class.
  27. #' Accepts CSS
  28. #' [padding](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
  29. #' property values.
  30. #' @param background_image Background image applied to each *and every* slide.
  31. #' Set `title_slide_background_image = "none"` to remove the background image
  32. #' from the title slide. Defaults to `NULL`. Modifies the
  33. #' `.remark-slide-content` class.
  34. #' @param background_size Background image size, requires `background_image` to
  35. #' be set. If `background_image` is set, `background_size` will default to
  36. #' `cover` so the backround fills the screen. If both `background_image` and
  37. #' `background_position` are set, will default to 100 percent. Defaults to
  38. #' `NULL`. Modifies the `.remark-slide-content` class. Accepts CSS
  39. #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
  40. #' property values.
  41. #' @param background_position Background image position, requires
  42. #' `background_image` to be set, and it is recommended to adjust
  43. #' `background_size`. Defaults to `NULL`. Modifies the
  44. #' `.remark-slide-content` class. Accepts CSS
  45. #' [background-position](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
  46. #' property values.
  47. #' @param code_highlight_color Code Line Highlight. Defaults to #268bd240.
  48. #' Modifies the `.remark-code-line-highlighted` class. The value of this
  49. #' variable is also stored as a CSS variable that can be referenced with
  50. #' `var(--code-highlight-color)` in any argument of a style function or in
  51. #' custom CSS.
  52. #' @param code_inline_color Inline Code Color. Defaults to #6c71c4. Modifies
  53. #' the `.remark-inline-code` class.
  54. #' @param code_inline_background_color Inline Code Background Color. Defaults
  55. #' to `NULL`. Modifies the `.remark-inline-code` class.
  56. #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em.
  57. #' Modifies the `.remark-inline-code` class. Accepts CSS
  58. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  59. #' property values. The value of this variable is also stored as a CSS
  60. #' variable that can be referenced with `var(--code-inline-font-size)` in any
  61. #' argument of a style function or in custom CSS.
  62. #' @param inverse_background_color Inverse Background Color. Defaults to
  63. #' #fdf6e3. Modifies the `.inverse` class. The value of this variable is also
  64. #' 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 #002b36. Modifies
  68. #' the `.inverse` class. The value of this variable is also stored as a CSS
  69. #' variable that can be referenced with `var(--inverse-text-color)` in any
  70. #' 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
  74. #' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
  75. #' classes. The value of this variable is also stored as a CSS variable that
  76. #' can be referenced with `var(--inverse-header-color)` in any argument of a
  77. #' style function or in 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. Accepts CSS
  93. #' [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
  94. #' property values.
  95. #' @param title_slide_background_position Title Slide Background Image
  96. #' Position. Defaults to `NULL`. Modifies the `.title-slide` class. Accepts
  97. #' CSS
  98. #' [background-position](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
  99. #' property values.
  100. #' @param footnote_color Footnote text color (if `NA`, then it will be the same
  101. #' color as `text_color`). Defaults to `NULL`. Modifies the `.footnote`
  102. #' class.
  103. #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies
  104. #' the `.footnote` class. Accepts CSS
  105. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  106. #' property values.
  107. #' @param footnote_position_bottom Footnote location from bottom of screen.
  108. #' Defaults to 60px. Modifies the `.footnote` class. Accepts CSS
  109. #' [position](https://developer.mozilla.org/en-US/docs/Web/CSS/position_value)
  110. #' property values.
  111. #' @param left_column_subtle_color Left Column Text (not last). Defaults to
  112. #' #586e75. Modifies the `.left-column h2, .left-column h3` classes.
  113. #' @param left_column_selected_color Left Column Current Selection. Defaults to
  114. #' #93a1a1. Modifies the
  115. #' `.left-column h2:last-of-type, .left-column h3:last-child` classes.
  116. #' @param blockquote_left_border_color Blockquote Left Border Color. Defaults
  117. #' to #cb4b16. Modifies the `blockquote` element.
  118. #' @param table_border_color Table top/bottom border. Defaults to #657b83.
  119. #' Modifies the `table: border-top, border-bottom` elements.
  120. #' @param table_row_border_color Table row inner bottom border. Defaults to
  121. #' #657b83. Modifies the `table thead th: border-bottom` elements.
  122. #' @param table_row_even_background_color Table Even Row Background Color.
  123. #' Defaults to #073642. Modifies the `thead, tfoot, tr:nth-child(even)`
  124. #' elements.
  125. #' @param base_font_size Base Font Size for All Slide Elements (must be `px`).
  126. #' Defaults to 20px. Modifies the `html` element. The value of this variable
  127. #' is also stored as a CSS variable that can be referenced with
  128. #' `var(--base-font-size)` in any argument of a style function or in custom
  129. #' CSS.
  130. #' @param text_font_size Slide Body Text Font Size. Defaults to 1rem. Modifies
  131. #' the `.remark-slide-content` class. Accepts CSS
  132. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  133. #' property values. The value of this variable is also stored as a CSS
  134. #' variable that can be referenced with `var(--text-font-size)` in any
  135. #' argument of a style function or in custom CSS.
  136. #' @param header_h1_font_size h1 Header Text Font Size. Defaults to 2.75rem.
  137. #' Modifies the `.remark-slide-content h1` class. Accepts CSS
  138. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  139. #' property values. The value of this variable is also stored as a CSS
  140. #' variable that can be referenced with `var(--header-h1-font-size)` in any
  141. #' argument of a style function or in custom CSS.
  142. #' @param header_h2_font_size h2 Header Text Font Size. Defaults to 2.25rem.
  143. #' Modifies the `.remark-slide-content h2` class. Accepts CSS
  144. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  145. #' property values. The value of this variable is also stored as a CSS
  146. #' variable that can be referenced with `var(--header-h2-font-size)` in any
  147. #' argument of a style function or in custom CSS.
  148. #' @param header_h3_font_size h3 Header Text Font Size. Defaults to 1.75rem.
  149. #' Modifies the `.remark-slide-content h3` class. Accepts CSS
  150. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  151. #' property values. The value of this variable is also stored as a CSS
  152. #' variable that can be referenced with `var(--header-h3-font-size)` in any
  153. #' argument of a style function or in custom CSS.
  154. #' @param header_background_auto Add background under slide title automatically
  155. #' for h1 header elements. If not enabled, use `class: header_background` to
  156. #' enable. Defaults to `FALSE`.
  157. #' @param header_background_color Background Color for h1 Header with
  158. #' Background. Defaults to `header_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-color)` in any argument of a style function or in
  162. #' custom CSS.
  163. #' @param header_background_text_color Text Color for h1 Header with
  164. #' Background. Defaults to `background_color`. Modifies the
  165. #' `.remark-slide-content h1` class. The value of this variable is also
  166. #' stored as a CSS variable that can be referenced with
  167. #' `var(--header-background-text-color)` in any argument of a style function
  168. #' or in custom CSS.
  169. #' @param header_background_padding Padding for h1 Header with Background.
  170. #' Defaults to `NULL`. Modifies the `.remark-slide-content h1` class. Accepts
  171. #' CSS [padding](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
  172. #' property values.
  173. #' @param header_background_content_padding_top Top Padding for Content in
  174. #' Slide with Header with Background. Defaults to 7rem. Modifies the
  175. #' `.remark-slide-content` class.
  176. #' @param header_background_ignore_classes Slide Classes Where Header with
  177. #' Background will not be Applied. Defaults to
  178. #' `c('normal', 'inverse', 'title', 'middle', 'bottom')`. Modifies the
  179. #' `.remark-slide-content` class.
  180. #' @param text_slide_number_font_size Slide Number Text Font Size. Defaults to
  181. #' 0.9em. Modifies the `.remark-slide-number` class. Accepts CSS
  182. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  183. #' property values.
  184. #' @param text_font_google Use `google_font()` to specify body font. Defaults
  185. #' to `NULL`. Modifies the `body` element.
  186. #' @param text_font_family Body Text Font Family (xaringan default is
  187. #' `'Droid Serif'`). Defaults to
  188. #' `xaringanthemer_font_default("text_font_family")`. 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)` in any argument of a
  191. #' style function or in custom CSS.
  192. #' @param text_font_weight Body Text Font Weight. Defaults to
  193. #' `xaringanthemer_font_default("text_font_weight")`. Modifies the `body`
  194. #' element. Accepts CSS
  195. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  196. #' property values.
  197. #' @param text_font_url Body Text Font URL(s). Defaults to
  198. #' `xaringanthemer_font_default("text_font_url")`. Modifies the
  199. #' `@import url()` elements.
  200. #' @param text_font_family_fallback Body Text Font Fallbacks. Defaults to
  201. #' `xaringanthemer_font_default("text_font_family_fallback")`. Modifies the
  202. #' `body` element. The value of this variable is also stored as a CSS
  203. #' variable that can be referenced with `var(--text-font-family-fallback)` in
  204. #' any argument of a style function or in custom CSS.
  205. #' @param text_font_base Body Text Base Font (Total Failure Fallback). Defaults
  206. #' to sans-serif. Modifies the `body` element. The value of this variable is
  207. #' also stored as a CSS variable that can be referenced with
  208. #' `var(--text-font-base)` in any argument of a style function or in custom
  209. #' CSS.
  210. #' @param header_font_google Use `google_font()` to specify header font.
  211. #' Defaults to `NULL`. Modifies the `body` element.
  212. #' @param header_font_family Header Font Family (xaringan default is
  213. #' `'Yanone Kaffeesatz'`). Defaults to
  214. #' `xaringanthemer_font_default("header_font_family")`. Modifies the
  215. #' `h1, h2, h3` elements. The value of this variable is also stored as a CSS
  216. #' variable that can be referenced with `var(--header-font-family)` in any
  217. #' argument of a style function or in custom CSS.
  218. #' @param header_font_weight Header Font Weight. Defaults to
  219. #' `xaringanthemer_font_default("header_font_weight")`. Modifies the
  220. #' `h1, h2, h3` elements. Accepts CSS
  221. #' [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
  222. #' property values.
  223. #' @param header_font_url Header Font URL. Defaults to
  224. #' `xaringanthemer_font_default("header_font_url")`. Modifies the
  225. #' `@import url` elements.
  226. #' @param code_font_google Use `google_font()` to specify code font. Defaults
  227. #' to `NULL`. Modifies the `body` element.
  228. #' @param code_font_family Code Font Family. Defaults to
  229. #' `xaringanthemer_font_default("code_font_family")`. Modifies the
  230. #' `.remark-code, .remark-inline-code` classes. The value of this variable is
  231. #' also stored as a CSS variable that can be referenced with
  232. #' `var(--code-font-family)` in any argument of a style function or in custom
  233. #' CSS.
  234. #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the
  235. #' `.remark-inline` class. Accepts CSS
  236. #' [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
  237. #' property values. The value of this variable is also stored as a CSS
  238. #' variable that can be referenced with `var(--code-font-size)` in any
  239. #' argument of a style function or in custom CSS.
  240. #' @param code_font_url Code Font URL. Defaults to
  241. #' `xaringanthemer_font_default("code_font_url")`. Modifies the `@import url`
  242. #' elements.
  243. #' @param code_font_family_fallback Code Font Fallback. Defaults to
  244. #' `xaringanthemer_font_default("code_font_family_fallback")`. Modifies the
  245. #' `.remark-code, .remark-inline-code` classes.
  246. #' @template theme_params
  247. #' @template style-usage
  248. #' @template style_solarized_dark
  249. #' @family Solarized themes
  250. #' @export
  251. style_solarized_dark <- function(
  252. text_color = "#839496",
  253. header_color = "#dc322f",
  254. background_color = "#002b36",
  255. link_color = "#b58900",
  256. text_bold_color = "#d33682",
  257. text_slide_number_color = "#586e75",
  258. padding = "16px 64px 16px 64px",
  259. background_image = NULL,
  260. background_size = NULL,
  261. background_position = NULL,
  262. code_highlight_color = "#268bd240",
  263. code_inline_color = "#6c71c4",
  264. code_inline_background_color = NULL,
  265. code_inline_font_size = "1em",
  266. inverse_background_color = "#fdf6e3",
  267. inverse_text_color = "#002b36",
  268. inverse_text_shadow = FALSE,
  269. inverse_header_color = inverse_text_color,
  270. title_slide_text_color = inverse_text_color,
  271. title_slide_background_color = inverse_background_color,
  272. title_slide_background_image = NULL,
  273. title_slide_background_size = NULL,
  274. title_slide_background_position = NULL,
  275. footnote_color = NULL,
  276. footnote_font_size = "0.9em",
  277. footnote_position_bottom = "60px",
  278. left_column_subtle_color = "#586e75",
  279. left_column_selected_color = "#93a1a1",
  280. blockquote_left_border_color = "#cb4b16",
  281. table_border_color = "#657b83",
  282. table_row_border_color = "#657b83",
  283. table_row_even_background_color = "#073642",
  284. base_font_size = "20px",
  285. text_font_size = "1rem",
  286. header_h1_font_size = "2.75rem",
  287. header_h2_font_size = "2.25rem",
  288. header_h3_font_size = "1.75rem",
  289. header_background_auto = FALSE,
  290. header_background_color = header_color,
  291. header_background_text_color = background_color,
  292. header_background_padding = NULL,
  293. header_background_content_padding_top = "7rem",
  294. header_background_ignore_classes = c('normal', 'inverse', 'title', 'middle', 'bottom'),
  295. text_slide_number_font_size = "0.9em",
  296. text_font_google = NULL,
  297. text_font_family = xaringanthemer_font_default("text_font_family"),
  298. text_font_weight = xaringanthemer_font_default("text_font_weight"),
  299. text_font_url = xaringanthemer_font_default("text_font_url"),
  300. text_font_family_fallback = xaringanthemer_font_default("text_font_family_fallback"),
  301. text_font_base = "sans-serif",
  302. header_font_google = NULL,
  303. header_font_family = xaringanthemer_font_default("header_font_family"),
  304. header_font_weight = xaringanthemer_font_default("header_font_weight"),
  305. header_font_url = xaringanthemer_font_default("header_font_url"),
  306. code_font_google = NULL,
  307. code_font_family = xaringanthemer_font_default("code_font_family"),
  308. code_font_size = "0.9rem",
  309. code_font_url = xaringanthemer_font_default("code_font_url"),
  310. code_font_family_fallback = xaringanthemer_font_default("code_font_family_fallback"),
  311. colors = NULL,
  312. extra_css = NULL,
  313. extra_fonts = NULL,
  314. outfile = "xaringan-themer.css"
  315. ) {
  316. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  317. eval(parse(text = call_style_xaringan()))
  318. }