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

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