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

506 lines
23KB

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