😎 Give your xaringan slides some style
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

504 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 = 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 = 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{inverse_text_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3}
  176. classes. The value of this variable is also stored as a CSS variable that
  177. can be referenced with \code{var(--inverse-header-color)} in any argument of a
  178. style function or in custom CSS.}
  179. \item{inverse_link_color}{Inverse Link Color. Defaults to \code{link_color}.
  180. Modifies the \verb{.inverse a, .inverse a > code} classes. The value of this
  181. variable is also stored as a CSS variable that can be referenced with
  182. \code{var(--inverse-link-color)} in any argument of a style function or in
  183. custom CSS.}
  184. \item{title_slide_text_color}{Title Slide Text Color. Defaults to
  185. \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies
  186. the \code{.title-slide} class. The value of this variable is also stored as a
  187. CSS variable that can be referenced with \code{var(--title-slide-text-color)}
  188. in any argument of a style function or in custom CSS.}
  189. \item{title_slide_background_color}{Title Slide Background Color. Defaults
  190. to \code{primary_color}. Modifies the \code{.title-slide} class. The value of this
  191. variable is also stored as a CSS variable that can be referenced with
  192. \code{var(--title-slide-background-color)} in any argument of a style function
  193. or in custom CSS.}
  194. \item{title_slide_background_image}{Title Slide Background Image URL.
  195. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  196. \item{title_slide_background_size}{Title Slide Background Image Size,
  197. defaults to "cover" if background image is set. Defaults to \code{NULL}.
  198. Modifies the \code{.title-slide} class. Accepts CSS
  199. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-size}{background-size}
  200. property values.}
  201. \item{title_slide_background_position}{Title Slide Background Image
  202. Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class. Accepts
  203. CSS
  204. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/background-position}{background-position}
  205. property values.}
  206. \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same
  207. color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote}
  208. class.}
  209. \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies
  210. the \code{.footnote} class. Accepts CSS
  211. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  212. property values.}
  213. \item{footnote_position_bottom}{Footnote location from bottom of screen.
  214. Defaults to 60px. Modifies the \code{.footnote} class. Accepts CSS
  215. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/position_value}{position}
  216. property values.}
  217. \item{left_column_subtle_color}{Left Column Text (not last). Defaults to
  218. \code{apply_alpha(primary_color, 0.6)}. Modifies the
  219. \verb{.left-column h2, .left-column h3} classes.}
  220. \item{left_column_selected_color}{Left Column Current Selection. Defaults to
  221. \code{primary_color}. Modifies the
  222. \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
  223. \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults
  224. to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.}
  225. \item{table_border_color}{Table top/bottom border. Defaults to #666.
  226. Modifies the \verb{table: border-top, border-bottom} elements.}
  227. \item{table_row_border_color}{Table row inner bottom border. Defaults to
  228. #ddd. Modifies the \verb{table thead th: border-bottom} elements.}
  229. \item{table_row_even_background_color}{Table Even Row Background Color.
  230. Defaults to \code{lighten_color(secondary_color, 0.8)}. Modifies the
  231. \verb{thead, tfoot, tr:nth-child(even)} elements.}
  232. \item{base_font_size}{Base Font Size for All Slide Elements (must be \code{px}).
  233. Defaults to 20px. Modifies the \code{html} element. The value of this variable
  234. is also stored as a CSS variable that can be referenced with
  235. \code{var(--base-font-size)} in any argument of a style function or in custom
  236. CSS.}
  237. \item{text_font_size}{Slide Body Text Font Size. Defaults to 1rem. Modifies
  238. the \code{.remark-slide-content} class. Accepts CSS
  239. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  240. property values. The value of this variable is also stored as a CSS
  241. variable that can be referenced with \code{var(--text-font-size)} in any
  242. argument of a style function or in custom CSS.}
  243. \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 2.75rem.
  244. Modifies the \verb{.remark-slide-content h1} class. Accepts CSS
  245. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  246. property values. The value of this variable is also stored as a CSS
  247. variable that can be referenced with \code{var(--header-h1-font-size)} in any
  248. argument of a style function or in custom CSS.}
  249. \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 2.25rem.
  250. Modifies the \verb{.remark-slide-content h2} class. Accepts CSS
  251. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  252. property values. The value of this variable is also stored as a CSS
  253. variable that can be referenced with \code{var(--header-h2-font-size)} in any
  254. argument of a style function or in custom CSS.}
  255. \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 1.75rem.
  256. Modifies the \verb{.remark-slide-content h3} class. Accepts CSS
  257. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  258. property values. The value of this variable is also stored as a CSS
  259. variable that can be referenced with \code{var(--header-h3-font-size)} in any
  260. argument of a style function or in custom CSS.}
  261. \item{header_background_auto}{Add background under slide title automatically
  262. for h1 header elements. If not enabled, use \code{class: header_background} to
  263. enable. Defaults to \code{FALSE}.}
  264. \item{header_background_color}{Background Color for h1 Header with
  265. Background. Defaults to \code{header_color}. Modifies the
  266. \verb{.remark-slide-content h1} class. The value of this variable is also
  267. stored as a CSS variable that can be referenced with
  268. \code{var(--header-background-color)} in any argument of a style function or in
  269. custom CSS.}
  270. \item{header_background_text_color}{Text Color for h1 Header with
  271. Background. Defaults to \code{background_color}. Modifies the
  272. \verb{.remark-slide-content h1} class. The value of this variable is also
  273. stored as a CSS variable that can be referenced with
  274. \code{var(--header-background-text-color)} in any argument of a style function
  275. or in custom CSS.}
  276. \item{header_background_padding}{Padding for h1 Header with Background.
  277. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class. Accepts
  278. CSS \href{https://developer.mozilla.org/en-US/docs/Web/CSS/padding}{padding}
  279. property values.}
  280. \item{header_background_content_padding_top}{Top Padding for Content in
  281. Slide with Header with Background. Defaults to 7rem. Modifies the
  282. \code{.remark-slide-content} class.}
  283. \item{header_background_ignore_classes}{Slide Classes Where Header with
  284. Background will not be Applied. Defaults to
  285. \code{c('normal', 'inverse', 'title', 'middle', 'bottom')}. Modifies the
  286. \code{.remark-slide-content} class.}
  287. \item{text_slide_number_font_size}{Slide Number Text Font Size. Defaults to
  288. 0.9rem. Modifies the \code{.remark-slide-number} class. Accepts CSS
  289. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  290. property values.}
  291. \item{text_font_google}{Use \code{google_font()} to specify body font. Defaults
  292. to \code{NULL}. Modifies the \code{body} element.}
  293. \item{text_font_family}{Body Text Font Family (xaringan default is
  294. \code{'Droid Serif'}). Defaults to
  295. \code{xaringanthemer_font_default("text_font_family")}. Modifies the \code{body}
  296. element. The value of this variable is also stored as a CSS variable that
  297. can be referenced with \code{var(--text-font-family)} in any argument of a
  298. style function or in custom CSS.}
  299. \item{text_font_weight}{Body Text Font Weight. Defaults to
  300. \code{xaringanthemer_font_default("text_font_weight")}. Modifies the \code{body}
  301. element. Accepts CSS
  302. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
  303. property values.}
  304. \item{text_bold_font_weight}{Body Bold Text Font Weight. Defaults to bold.
  305. Modifies the \code{strong} element.}
  306. \item{text_font_url}{Body Text Font URL(s). Defaults to
  307. \code{xaringanthemer_font_default("text_font_url")}. Modifies the
  308. \verb{@import url()} elements.}
  309. \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to
  310. \code{xaringanthemer_font_default("text_font_family_fallback")}. Modifies the
  311. \code{body} element. The value of this variable is also stored as a CSS
  312. variable that can be referenced with \code{var(--text-font-family-fallback)} in
  313. any argument of a style function or in custom CSS.}
  314. \item{text_font_base}{Body Text Base Font (Total Failure Fallback). Defaults
  315. to sans-serif. Modifies the \code{body} element. The value of this variable is
  316. also stored as a CSS variable that can be referenced with
  317. \code{var(--text-font-base)} in any argument of a style function or in custom
  318. CSS.}
  319. \item{header_font_google}{Use \code{google_font()} to specify header font.
  320. Defaults to \code{NULL}. Modifies the \code{body} element.}
  321. \item{header_font_family}{Header Font Family (xaringan default is
  322. \code{'Yanone Kaffeesatz'}). Defaults to
  323. \code{xaringanthemer_font_default("header_font_family")}. Modifies the
  324. \verb{h1, h2, h3} elements. The value of this variable is also stored as a CSS
  325. variable that can be referenced with \code{var(--header-font-family)} in any
  326. argument of a style function or in custom CSS.}
  327. \item{header_font_weight}{Header Font Weight. Defaults to
  328. \code{xaringanthemer_font_default("header_font_weight")}. Modifies the
  329. \verb{h1, h2, h3} elements. Accepts CSS
  330. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight}{font-weight}
  331. property values.}
  332. \item{header_font_family_fallback}{Header Font Family Fallback. Defaults to
  333. Georgia, serif. Modifies the \verb{h1, h2, h3} elements. The value of this
  334. variable is also stored as a CSS variable that can be referenced with
  335. \code{var(--header-font-family-fallback)} in any argument of a style function
  336. or in custom CSS.}
  337. \item{header_font_url}{Header Font URL. Defaults to
  338. \code{xaringanthemer_font_default("header_font_url")}. Modifies the
  339. \verb{@import url} elements.}
  340. \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults
  341. to \code{NULL}. Modifies the \code{body} element.}
  342. \item{code_font_family}{Code Font Family. Defaults to
  343. \code{xaringanthemer_font_default("code_font_family")}. Modifies the
  344. \verb{.remark-code, .remark-inline-code} classes. The value of this variable is
  345. also stored as a CSS variable that can be referenced with
  346. \code{var(--code-font-family)} in any argument of a style function or in custom
  347. CSS.}
  348. \item{code_font_size}{Code Text Font Size. Defaults to 0.9rem. Modifies the
  349. \code{.remark-inline} class. Accepts CSS
  350. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/font-size}{font-size}
  351. property values. The value of this variable is also stored as a CSS
  352. variable that can be referenced with \code{var(--code-font-size)} in any
  353. argument of a style function or in custom CSS.}
  354. \item{code_font_url}{Code Font URL. Defaults to
  355. \code{xaringanthemer_font_default("code_font_url")}. Modifies the \verb{@import url}
  356. elements.}
  357. \item{code_font_family_fallback}{Code Font Fallback. Defaults to
  358. \code{xaringanthemer_font_default("code_font_family_fallback")}. Modifies the
  359. \verb{.remark-code, .remark-inline-code} classes.}
  360. \item{link_decoration}{Text decoration of links. Defaults to none. Modifies
  361. the \verb{a, a > code} elements. Accepts CSS
  362. \href{https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration}{text-decoration}
  363. property values.}
  364. \item{colors}{A named vector of custom colors. The names of the colors
  365. become CSS variables and classes that can be used within your slides.
  366. For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
  367. \code{--blue}, a \code{.blue} CSS class that applies the color to the text or
  368. foreground color, and a \code{.bg-blue} CSS class that applies the color
  369. to the background.}
  370. \item{extra_css}{A named list of CSS definitions each containing a named list
  371. of CSS property-value pairs, i.e.
  372. \code{list(".class-id" = list("css-property" = "value"))}.}
  373. \item{extra_fonts}{A list of additional fonts to import, each list element
  374. can be either a URL as a character string or a call to
  375. \code{\link{google_font}()}. To use a font imported in \code{extra_fonts}, you
  376. will need to write custom CSS rules that apply the font to an element or
  377. class with the \code{font-family} property. See the \strong{Fonts} section of
  378. \code{vignette("xaringanthemer")} for an example.}
  379. \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
  380. }
  381. \value{
  382. The CSS styles are written to the file path provided in \code{outfile}
  383. (by default to \code{xaringan-themer.css}). If \code{outfile} is \code{NULL}, the CSS is
  384. returned directly as a character string.
  385. }
  386. \description{
  387. An default xaringan theme with a two colors used for color
  388. accents on select elements (headers, bold text, etc.).
  389. }
  390. \section{Usage}{
  391. To use the styles created by this theme function, make sure
  392. that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
  393. header. If you change the name of the output file using the \code{outfile}
  394. argument, use that name instead of the default file name.
  395. \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
  396. xaringan::moon_reader:
  397. css: xaringan-themer.css
  398. }\if{html}{\out{</div>}}
  399. }
  400. \examples{
  401. # Create a xaringan style in a temporary file
  402. xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css")
  403. style_duo_accent(
  404. primary_color = "#006747",
  405. secondary_color = "#cfc493",
  406. outfile = xaringan_themer_css # omit in your slides to write the
  407. # styles to xaringan-themer.css
  408. )
  409. # View the CSS:
  410. # file.edit(xaringan_themer_css)
  411. }
  412. \seealso{
  413. Other themes:
  414. \code{\link{style_duo_accent_inverse}()},
  415. \code{\link{style_duo}()},
  416. \code{\link{style_mono_accent_inverse}()},
  417. \code{\link{style_mono_accent}()},
  418. \code{\link{style_mono_dark}()},
  419. \code{\link{style_mono_light}()},
  420. \code{\link{style_solarized_dark}()},
  421. \code{\link{style_solarized_light}()},
  422. \code{\link{xaringanthemer_font_default}()}
  423. Other Duotone themes:
  424. \code{\link{style_duo_accent_inverse}()},
  425. \code{\link{style_duo}()}
  426. }
  427. \concept{Duotone themes}
  428. \concept{themes}