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

507 lines
23KB

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