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

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