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

509 lines
24KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/style_duo_accent_inverse.R
  3. \name{style_duo_accent_inverse}
  4. \alias{style_duo_accent_inverse}
  5. \title{Duotone Accent Inverse Theme}
  6. \usage{
  7. style_duo_accent_inverse(
  8. primary_color = "#035AA6",
  9. secondary_color = "#03A696",
  10. white_color = "#FFFFFF",
  11. black_color = "#000000",
  12. text_color = white_color,
  13. header_color = primary_color,
  14. background_color = black_color,
  15. link_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
  16. text_bold_color = choose_dark_or_light(secondary_color, secondary_color,
  17. primary_color),
  18. text_slide_number_color = primary_color,
  19. padding = "16px 64px 16px 64px",
  20. background_image = NULL,
  21. background_size = NULL,
  22. background_position = NULL,
  23. code_highlight_color = "rgba(255,255,0,0.5)",
  24. code_inline_color = choose_dark_or_light(secondary_color, secondary_color,
  25. primary_color),
  26. code_inline_background_color = NULL,
  27. code_inline_font_size = "1em",
  28. inverse_background_color = secondary_color,
  29. inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
  30. inverse_text_shadow = FALSE,
  31. inverse_header_color = choose_dark_or_light(secondary_color, black_color,
  32. white_color),
  33. inverse_link_color = link_color,
  34. title_slide_text_color = choose_dark_or_light(primary_color, black_color,
  35. white_color),
  36. title_slide_background_color = primary_color,
  37. title_slide_background_image = NULL,
  38. title_slide_background_size = NULL,
  39. title_slide_background_position = NULL,
  40. footnote_color = NULL,
  41. footnote_font_size = "0.9em",
  42. footnote_position_bottom = "60px",
  43. left_column_subtle_color = apply_alpha(primary_color, 0.6),
  44. left_column_selected_color = primary_color,
  45. blockquote_left_border_color = apply_alpha(secondary_color, 0.5),
  46. table_border_color = "#666",
  47. table_row_border_color = "#ddd",
  48. table_row_even_background_color = darken_color(choose_dark_or_light(primary_color,
  49. secondary_color, primary_color), 0.2),
  50. base_font_size = "20px",
  51. text_font_size = "1rem",
  52. header_h1_font_size = "2.75rem",
  53. header_h2_font_size = "2.25rem",
  54. header_h3_font_size = "1.75rem",
  55. header_background_auto = FALSE,
  56. header_background_color = header_color,
  57. header_background_text_color = background_color,
  58. header_background_padding = NULL,
  59. header_background_content_padding_top = "7rem",
  60. header_background_ignore_classes = c("normal", "inverse", "title", "middle",
  61. "bottom"),
  62. text_slide_number_font_size = "0.9rem",
  63. text_font_google = NULL,
  64. text_font_family = xaringanthemer_font_default("text_font_family"),
  65. text_font_weight = xaringanthemer_font_default("text_font_weight"),
  66. text_bold_font_weight = "bold",
  67. text_font_url = xaringanthemer_font_default("text_font_url"),
  68. text_font_family_fallback = xaringanthemer_font_default("text_font_family_fallback"),
  69. text_font_base = "sans-serif",
  70. header_font_google = NULL,
  71. header_font_family = xaringanthemer_font_default("header_font_family"),
  72. header_font_weight = xaringanthemer_font_default("header_font_weight"),
  73. header_font_family_fallback = "Georgia, serif",
  74. header_font_url = xaringanthemer_font_default("header_font_url"),
  75. code_font_google = NULL,
  76. code_font_family = xaringanthemer_font_default("code_font_family"),
  77. code_font_size = "0.9rem",
  78. code_font_url = xaringanthemer_font_default("code_font_url"),
  79. code_font_family_fallback = xaringanthemer_font_default("code_font_family_fallback"),
  80. link_decoration = "none",
  81. colors = NULL,
  82. extra_css = NULL,
  83. extra_fonts = NULL,
  84. outfile = "xaringan-themer.css"
  85. )
  86. }
  87. \arguments{
  88. \item{primary_color}{Duotone Primary Color. Defaults to #035AA6. Used in
  89. multiple CSS rules. The value of this variable is also stored as a CSS
  90. variable that can be referenced with \code{var(--primary)} in any argument of a
  91. style function or in custom CSS.}
  92. \item{secondary_color}{Duotone Secondary Color. Defaults to #03A696. Used in
  93. multiple CSS rules. The value of this variable is also stored as a CSS
  94. variable that can be referenced with \code{var(--secondary)} in any argument of
  95. a style function or in custom CSS.}
  96. \item{white_color}{Brightest color used. Defaults to #FFFFFF. Used in
  97. multiple CSS rules. The value of this variable is also stored as a CSS
  98. variable that can be referenced with \code{var(--white)} in any argument of a
  99. style function or in custom CSS.}
  100. \item{black_color}{Darkest color used. Defaults to #000000. Used in multiple
  101. CSS rules. The value of this variable is also stored as a CSS variable
  102. that can be referenced with \code{var(--black)} in any argument of a style
  103. function or in custom CSS.}
  104. \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body}
  105. element. The value of this variable is also stored as a CSS variable that
  106. can be referenced with \code{var(--text_color)} in any argument of a style
  107. function or in custom CSS.}
  108. \item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the
  109. \verb{h1, h2, h3} elements. The value of this variable is also stored as a CSS
  110. variable that can be referenced with \code{var(--header-color)} in any argument
  111. of a style function or in custom CSS.}
  112. \item{background_color}{Slide Background Color. Defaults to \code{black_color}.
  113. Modifies the \code{.remark-slide-content} class. The value of this variable is
  114. also stored as a CSS variable that can be referenced with
  115. \code{var(--background-color)} in any argument of a style function or in custom
  116. CSS.}
  117. \item{link_color}{Link Color. Defaults to
  118. \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}.
  119. Modifies the \verb{a, a > code} elements. The value of this variable is also
  120. stored as a CSS variable that can be referenced with \code{var(--link-color)}
  121. in any argument of a style function or in custom CSS.}
  122. \item{text_bold_color}{Bold Text Color. Defaults to
  123. \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}.
  124. Modifies the \code{strong} element. The value of this variable is also stored
  125. as a CSS variable that can be referenced with \code{var(--text-bold-color)} in
  126. any argument of a style function or in custom CSS.}
  127. \item{text_slide_number_color}{Slide Number Color. Defaults to
  128. \code{primary_color}. Modifies the \code{.remark-slide-number} class.}
  129. \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults
  130. to 16px 64px 16px 64px. Modifies the \code{.remark-slide-content} class.
  131. Accepts CSS
  132. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/padding}{padding}
  133. property values.}
  134. \item{background_image}{Background image applied to each \emph{and every} slide.
  135. Set \code{title_slide_background_image = "none"} to remove the background image
  136. from the title slide. Defaults to \code{NULL}. Modifies the
  137. \code{.remark-slide-content} class.}
  138. \item{background_size}{Background image size, requires \code{background_image} to
  139. be set. If \code{background_image} is set, \code{background_size} will default to
  140. \code{cover} so the background fills the screen. If both \code{background_image} and
  141. \code{background_position} are set, will default to 100 percent. Defaults to
  142. \code{NULL}. Modifies the \code{.remark-slide-content} class. Accepts CSS
  143. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}
  144. property values.}
  145. \item{background_position}{Background image position, requires
  146. \code{background_image} to be set, and it is recommended to adjust
  147. \code{background_size}. Defaults to \code{NULL}. Modifies the
  148. \code{.remark-slide-content} class. Accepts CSS
  149. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-position}{background-position}
  150. property values.}
  151. \item{code_highlight_color}{Code Line Highlight. Defaults to
  152. rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.
  153. The value of this variable is also stored as a CSS variable that can be
  154. referenced with \code{var(--code-highlight-color)} in any argument of a style
  155. function or in custom CSS.}
  156. \item{code_inline_color}{Inline Code Color. Defaults to
  157. \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}.
  158. Modifies the \code{.remark-inline-code} class.}
  159. \item{code_inline_background_color}{Inline Code Background Color. Defaults
  160. to \code{NULL}. Modifies the \code{.remark-inline-code} class.}
  161. \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em.
  162. Modifies the \code{.remark-inline-code} class. Accepts CSS
  163. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  164. property values. The value of this variable is also stored as a CSS
  165. variable that can be referenced with \code{var(--code-inline-font-size)} in any
  166. argument of a style function or in custom CSS.}
  167. \item{inverse_background_color}{Inverse Background Color. Defaults to
  168. \code{secondary_color}. Modifies the \code{.inverse} class. The value of this
  169. variable is also stored as a CSS variable that can be referenced with
  170. \code{var(--inverse-background-color)} in any argument of a style function or
  171. in custom CSS.}
  172. \item{inverse_text_color}{Inverse Text Color. Defaults to
  173. \code{choose_dark_or_light(secondary_color, black_color, white_color)}.
  174. Modifies the \code{.inverse} class. The value of this variable is also stored
  175. as a CSS variable that can be referenced with \code{var(--inverse-text-color)}
  176. in any argument of a style function or in custom CSS.}
  177. \item{inverse_text_shadow}{Enables Shadow on text of inverse slides.
  178. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}
  179. \item{inverse_header_color}{Inverse Header Color. Defaults to
  180. \code{choose_dark_or_light(secondary_color, black_color, white_color)}.
  181. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes. The value of
  182. this variable is also stored as a CSS variable that can be referenced with
  183. \code{var(--inverse-header-color)} in any argument of a style function or in
  184. custom CSS.}
  185. \item{inverse_link_color}{Inverse Link Color. Defaults to \code{link_color}.
  186. Modifies the \verb{.inverse a, .inverse a > code} classes. The value of this
  187. variable is also stored as a CSS variable that can be referenced with
  188. \code{var(--inverse-link-color)} in any argument of a style function or in
  189. custom CSS.}
  190. \item{title_slide_text_color}{Title Slide Text Color. Defaults to
  191. \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies
  192. the \code{.title-slide} class. The value of this variable is also stored as a
  193. CSS variable that can be referenced with \code{var(--title-slide-text-color)}
  194. in any argument of a style function or in custom CSS.}
  195. \item{title_slide_background_color}{Title Slide Background Color. Defaults
  196. to \code{primary_color}. Modifies the \code{.title-slide} class. The value of this
  197. variable is also stored as a CSS variable that can be referenced with
  198. \code{var(--title-slide-background-color)} in any argument of a style function
  199. or in custom CSS.}
  200. \item{title_slide_background_image}{Title Slide Background Image URL.
  201. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  202. \item{title_slide_background_size}{Title Slide Background Image Size,
  203. defaults to "cover" if background image is set. Defaults to \code{NULL}.
  204. Modifies the \code{.title-slide} class. Accepts CSS
  205. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}
  206. property values.}
  207. \item{title_slide_background_position}{Title Slide Background Image
  208. Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class. Accepts
  209. CSS
  210. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-position}{background-position}
  211. property values.}
  212. \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same
  213. color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote}
  214. class.}
  215. \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies
  216. the \code{.footnote} class. Accepts CSS
  217. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  218. property values.}
  219. \item{footnote_position_bottom}{Footnote location from bottom of screen.
  220. Defaults to 60px. Modifies the \code{.footnote} class. Accepts CSS
  221. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/position_value}{position}
  222. property values.}
  223. \item{left_column_subtle_color}{Left Column Text (not last). Defaults to
  224. \code{apply_alpha(primary_color, 0.6)}. Modifies the
  225. \verb{.left-column h2, .left-column h3} classes.}
  226. \item{left_column_selected_color}{Left Column Current Selection. Defaults to
  227. \code{primary_color}. Modifies the
  228. \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
  229. \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults
  230. to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.}
  231. \item{table_border_color}{Table top/bottom border. Defaults to #666.
  232. Modifies the \verb{table: border-top, border-bottom} elements.}
  233. \item{table_row_border_color}{Table row inner bottom border. Defaults to
  234. #ddd. Modifies the \verb{table thead th: border-bottom} elements.}
  235. \item{table_row_even_background_color}{Table Even Row Background Color.
  236. Defaults to
  237. \code{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.2)}.
  238. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}
  239. \item{base_font_size}{Base Font Size for All Slide Elements (must be \code{px}).
  240. Defaults to 20px. Modifies the \code{html} element. The value of this variable
  241. is also stored as a CSS variable that can be referenced with
  242. \code{var(--base-font-size)} in any argument of a style function or in custom
  243. CSS.}
  244. \item{text_font_size}{Slide Body Text Font Size. Defaults to 1rem. Modifies
  245. the \code{.remark-slide-content} class. Accepts CSS
  246. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  247. property values. The value of this variable is also stored as a CSS
  248. variable that can be referenced with \code{var(--text-font-size)} in any
  249. argument of a style function or in custom CSS.}
  250. \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 2.75rem.
  251. Modifies the \verb{.remark-slide-content h1} class. Accepts CSS
  252. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  253. property values. The value of this variable is also stored as a CSS
  254. variable that can be referenced with \code{var(--header-h1-font-size)} in any
  255. argument of a style function or in custom CSS.}
  256. \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 2.25rem.
  257. Modifies the \verb{.remark-slide-content h2} class. Accepts CSS
  258. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  259. property values. The value of this variable is also stored as a CSS
  260. variable that can be referenced with \code{var(--header-h2-font-size)} in any
  261. argument of a style function or in custom CSS.}
  262. \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 1.75rem.
  263. Modifies the \verb{.remark-slide-content h3} class. Accepts CSS
  264. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  265. property values. The value of this variable is also stored as a CSS
  266. variable that can be referenced with \code{var(--header-h3-font-size)} in any
  267. argument of a style function or in custom CSS.}
  268. \item{header_background_auto}{Add background under slide title automatically
  269. for h1 header elements. If not enabled, use \code{class: header_background} to
  270. enable. Defaults to \code{FALSE}.}
  271. \item{header_background_color}{Background Color for h1 Header with
  272. Background. Defaults to \code{header_color}. Modifies the
  273. \verb{.remark-slide-content h1} class. The value of this variable is also
  274. stored as a CSS variable that can be referenced with
  275. \code{var(--header-background-color)} in any argument of a style function or in
  276. custom CSS.}
  277. \item{header_background_text_color}{Text Color for h1 Header with
  278. Background. Defaults to \code{background_color}. Modifies the
  279. \verb{.remark-slide-content h1} class. The value of this variable is also
  280. stored as a CSS variable that can be referenced with
  281. \code{var(--header-background-text-color)} in any argument of a style function
  282. or in custom CSS.}
  283. \item{header_background_padding}{Padding for h1 Header with Background.
  284. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class. Accepts
  285. CSS \href{https://developer.mozilla.org/en-US/docs/Web/CSS/padding}{padding}
  286. property values.}
  287. \item{header_background_content_padding_top}{Top Padding for Content in
  288. Slide with Header with Background. Defaults to 7rem. Modifies the
  289. \code{.remark-slide-content} class.}
  290. \item{header_background_ignore_classes}{Slide Classes Where Header with
  291. Background will not be Applied. Defaults to
  292. \code{c('normal', 'inverse', 'title', 'middle', 'bottom')}. Modifies the
  293. \code{.remark-slide-content} class.}
  294. \item{text_slide_number_font_size}{Slide Number Text Font Size. Defaults to
  295. 0.9rem. Modifies the \code{.remark-slide-number} class. Accepts CSS
  296. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  297. property values.}
  298. \item{text_font_google}{Use \code{google_font()} to specify body font. Defaults
  299. to \code{NULL}. Modifies the \code{body} element.}
  300. \item{text_font_family}{Body Text Font Family (xaringan default is
  301. \code{'Droid Serif'}). Defaults to
  302. \code{xaringanthemer_font_default("text_font_family")}. Modifies the \code{body}
  303. element. The value of this variable is also stored as a CSS variable that
  304. can be referenced with \code{var(--text-font-family)} in any argument of a
  305. style function or in custom CSS.}
  306. \item{text_font_weight}{Body Text Font Weight. Defaults to
  307. \code{xaringanthemer_font_default("text_font_weight")}. Modifies the \code{body}
  308. element. Accepts CSS
  309. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
  310. property values.}
  311. \item{text_bold_font_weight}{Body Bold Text Font Weight. Defaults to bold.
  312. Modifies the \code{strong} element.}
  313. \item{text_font_url}{Body Text Font URL(s). Defaults to
  314. \code{xaringanthemer_font_default("text_font_url")}. Modifies the
  315. \verb{@import url()} elements.}
  316. \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to
  317. \code{xaringanthemer_font_default("text_font_family_fallback")}. Modifies the
  318. \code{body} element. The value of this variable is also stored as a CSS
  319. variable that can be referenced with \code{var(--text-font-family-fallback)} in
  320. any argument of a style function or in custom CSS.}
  321. \item{text_font_base}{Body Text Base Font (Total Failure Fallback). Defaults
  322. to sans-serif. Modifies the \code{body} element. The value of this variable is
  323. also stored as a CSS variable that can be referenced with
  324. \code{var(--text-font-base)} in any argument of a style function or in custom
  325. CSS.}
  326. \item{header_font_google}{Use \code{google_font()} to specify header font.
  327. Defaults to \code{NULL}. Modifies the \code{body} element.}
  328. \item{header_font_family}{Header Font Family (xaringan default is
  329. \code{'Yanone Kaffeesatz'}). Defaults to
  330. \code{xaringanthemer_font_default("header_font_family")}. Modifies the
  331. \verb{h1, h2, h3} elements. The value of this variable is also stored as a CSS
  332. variable that can be referenced with \code{var(--header-font-family)} in any
  333. argument of a style function or in custom CSS.}
  334. \item{header_font_weight}{Header Font Weight. Defaults to
  335. \code{xaringanthemer_font_default("header_font_weight")}. Modifies the
  336. \verb{h1, h2, h3} elements. Accepts CSS
  337. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
  338. property values.}
  339. \item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
  340. Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
  341. variable is also stored as a CSS variable that can be referenced with
  342. \code{var(--header-font-family-fallback)} in any argument of a style function
  343. or in custom CSS.}
  344. \item{header_font_url}{Header Font URL. Defaults to
  345. \code{xaringanthemer_font_default("header_font_url")}. Modifies the
  346. \verb{@import url} elements.}
  347. \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults
  348. to \code{NULL}. Modifies the \code{body} element.}
  349. \item{code_font_family}{Code Font Family. Defaults to
  350. \code{xaringanthemer_font_default("code_font_family")}. Modifies the
  351. \verb{.remark-code, .remark-inline-code} classes. The value of this variable is
  352. also stored as a CSS variable that can be referenced with
  353. \code{var(--code-font-family)} in any argument of a style function or in custom
  354. CSS.}
  355. \item{code_font_size}{Code Text Font Size. Defaults to 0.9rem. Modifies the
  356. \code{.remark-inline} class. Accepts CSS
  357. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  358. property values. The value of this variable is also stored as a CSS
  359. variable that can be referenced with \code{var(--code-font-size)} in any
  360. argument of a style function or in custom CSS.}
  361. \item{code_font_url}{Code Font URL. Defaults to
  362. \code{xaringanthemer_font_default("code_font_url")}. Modifies the \verb{@import url}
  363. elements.}
  364. \item{code_font_family_fallback}{Code Font Fallback. Defaults to
  365. \code{xaringanthemer_font_default("code_font_family_fallback")}. Modifies the
  366. \verb{.remark-code, .remark-inline-code} classes.}
  367. \item{link_decoration}{Text decoration of links. Defaults to none. Modifies
  368. the \verb{a, a > code} elements. Accepts CSS
  369. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}{text-decoration}
  370. property values.}
  371. \item{colors}{A named vector of custom colors. The names of the colors
  372. become CSS variables and classes that can be used within your slides.
  373. For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
  374. \code{--blue}, a \code{.blue} CSS class that applies the color to the text or
  375. foreground color, and a \code{.bg-blue} CSS class that applies the color
  376. to the background.}
  377. \item{extra_css}{A named list of CSS definitions each containing a named list
  378. of CSS property-value pairs, i.e.
  379. \code{list(".class-id" = list("css-property" = "value"))}.}
  380. \item{extra_fonts}{A list of additional fonts to import, each list element
  381. can be either a URL as a character string or a call to
  382. \code{\link{google_font}()}. To use a font imported in \code{extra_fonts}, you
  383. will need to write custom CSS rules that apply the font to an element or
  384. class with the \code{font-family} property. See the \strong{Fonts} section of
  385. \code{vignette("xaringanthemer")} for an example.}
  386. \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
  387. }
  388. \value{
  389. The CSS styles are written to the file path provided in \code{outfile}
  390. (by default to \code{xaringan-themer.css}). If \code{outfile} is \code{NULL}, the CSS is
  391. returned directly as a character string.
  392. }
  393. \description{
  394. An "inverted" default xaringan theme with a two colors used
  395. for color accents on select elements (headers, bold text, etc.).
  396. }
  397. \section{Usage}{
  398. To use the styles created by this theme function, make sure
  399. that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
  400. header. If you change the name of the output file using the \code{outfile}
  401. argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
  402. xaringan::moon_reader:
  403. css: xaringan-themer.css
  404. }\if{html}{\out{</div>}}
  405. }
  406. \examples{
  407. # Create a xaringan style in a temporary file
  408. xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
  409. style_duo_accent_inverse(
  410. primary_color = "#006747",
  411. secondary_color = "#cfc493",
  412. outfile = xaringan_themer_css # omit in your slides to write the
  413. # styles to xaringan-themer.css
  414. )
  415. # View the CSS:
  416. # file.edit(xaringan_themer_css)
  417. }
  418. \seealso{
  419. Other themes:
  420. \code{\link{style_duo_accent}()},
  421. \code{\link{style_duo}()},
  422. \code{\link{style_mono_accent_inverse}()},
  423. \code{\link{style_mono_accent}()},
  424. \code{\link{style_mono_dark}()},
  425. \code{\link{style_mono_light}()},
  426. \code{\link{style_solarized_dark}()},
  427. \code{\link{style_solarized_light}()},
  428. \code{\link{xaringanthemer_font_default}()}
  429. Other Duotone themes:
  430. \code{\link{style_duo_accent}()},
  431. \code{\link{style_duo}()}
  432. }
  433. \concept{Duotone themes}
  434. \concept{themes}