😎 Give your xaringan slides some style
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

346 lines
14KB

  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 = "#006747",
  9. secondary_color = "#CFC493",
  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, white_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.9em",
  58. text_font_google = NULL,
  59. text_font_family = "Noto Sans",
  60. text_font_weight = "normal",
  61. text_font_url = "https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap",
  62. text_font_family_fallback = "-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial",
  63. text_font_base = "sans-serif",
  64. header_font_google = NULL,
  65. header_font_family = "Cabin",
  66. header_font_weight = "600",
  67. header_font_url = "https://fonts.googleapis.com/css?family=Cabin:600,600i&display=swap",
  68. code_font_google = NULL,
  69. code_font_family = "Source Code Pro",
  70. code_font_size = "0.9rem",
  71. code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap",
  72. code_font_family_fallback = "Menlo, Consolas, Monaco, Liberation Mono, Lucida Console",
  73. colors = NULL,
  74. extra_css = NULL,
  75. extra_fonts = NULL,
  76. outfile = "xaringan-themer.css"
  77. )
  78. }
  79. \arguments{
  80. \item{primary_color}{Duotone Primary Color. Defaults to #006747. Used in
  81. multiple CSS rules.}
  82. \item{secondary_color}{Duotone Secondary Color. Defaults to #CFC493. Used in
  83. multiple CSS rules.}
  84. \item{white_color}{Brightest color used. Defaults to #FFFFFF. Used in
  85. multiple CSS rules.}
  86. \item{black_color}{Darkest color used. Defaults to #000000. Used in multiple
  87. CSS rules.}
  88. \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body}
  89. element.}
  90. \item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the
  91. \verb{h1, h2, h3} elements.}
  92. \item{background_color}{Slide Background Color. Defaults to \code{white_color}.
  93. Modifies the \code{.remark-slide-content} class.}
  94. \item{link_color}{Link Color. Defaults to
  95. \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}.
  96. Modifies the \verb{a, a > code} elements.}
  97. \item{text_bold_color}{Bold Text Color. Defaults to
  98. \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}.
  99. Modifies the \code{strong} element.}
  100. \item{text_slide_number_color}{Slide Number Color. Defaults to
  101. \code{primary_color}. Modifies the \code{.remark-slide-number} class.}
  102. \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults
  103. to 16px 64px 16px 64px. Modifies the \code{.remark-slide-content} class.}
  104. \item{background_image}{Background image applied to each \emph{and every} slide.
  105. Set \code{title_slide_background_image = "none"} to remove the background image
  106. from the title slide. Defaults to \code{NULL}. Modifies the
  107. \code{.remark-slide-content} class.}
  108. \item{background_size}{Background image size, requires \code{background_image} to
  109. be set. If \code{background_image} is set, \code{background_size} will default to
  110. \code{cover} so the backround fills the screen. If both \code{background_image} and
  111. \code{background_position} are set, will default to 100 percent. Defaults to
  112. \code{NULL}. Modifies the \code{.remark-slide-content} class.}
  113. \item{background_position}{Background image position, requires
  114. \code{background_image} to be set, and it is recommended to adjust
  115. \code{background_size}. Defaults to \code{NULL}. Modifies the
  116. \code{.remark-slide-content} class.}
  117. \item{code_highlight_color}{Code Line Highlight. Defaults to
  118. rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.}
  119. \item{code_inline_color}{Inline Code Color. Defaults to
  120. \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}.
  121. Modifies the \code{.remark-inline-code} class.}
  122. \item{code_inline_background_color}{Inline Code Background Color. Defaults
  123. to \code{NULL}. Modifies the \code{.remark-inline-code} class.}
  124. \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em.
  125. Modifies the \code{.remark-inline-code} class.}
  126. \item{inverse_background_color}{Inverse Background Color. Defaults to
  127. \code{secondary_color}. Modifies the \code{.inverse} class.}
  128. \item{inverse_text_color}{Inverse Text Color. Defaults to
  129. \code{choose_dark_or_light(secondary_color, black_color, white_color)}.
  130. Modifies the \code{.inverse} class.}
  131. \item{inverse_text_shadow}{Enables Shadow on text of inverse slides.
  132. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}
  133. \item{inverse_header_color}{Inverse Header Color. Defaults to
  134. \code{choose_dark_or_light(secondary_color, black_color, white_color)}.
  135. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}
  136. \item{title_slide_text_color}{Title Slide Text Color. Defaults to
  137. \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies
  138. the \code{.title-slide} class.}
  139. \item{title_slide_background_color}{Title Slide Background Color. Defaults
  140. to \code{primary_color}. Modifies the \code{.title-slide} class.}
  141. \item{title_slide_background_image}{Title Slide Background Image URL.
  142. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  143. \item{title_slide_background_size}{Title Slide Background Image Size,
  144. defaults to "cover" if background image is set. Defaults to \code{NULL}.
  145. Modifies the \code{.title-slide} class.}
  146. \item{title_slide_background_position}{Title Slide Background Image
  147. Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  148. \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same
  149. color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote}
  150. class.}
  151. \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies
  152. the \code{.footnote} class.}
  153. \item{footnote_position_bottom}{Footnote location from bottom of screen.
  154. Defaults to 60px. Modifies the \code{.footnote} class.}
  155. \item{left_column_subtle_color}{Left Column Text (not last). Defaults to
  156. \code{apply_alpha(primary_color, 0.6)}. Modifies the
  157. \verb{.left-column h2, .left-column h3} classes.}
  158. \item{left_column_selected_color}{Left Column Current Selection. Defaults to
  159. \code{primary_color}. Modifies the
  160. \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
  161. \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults
  162. to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.}
  163. \item{table_border_color}{Table top/bottom border. Defaults to #666.
  164. Modifies the \verb{table: border-top, border-bottom} elements.}
  165. \item{table_row_border_color}{Table row inner bottom border. Defaults to
  166. #ddd. Modifies the \verb{table thead th: border-bottom} elements.}
  167. \item{table_row_even_background_color}{Table Even Row Background Color.
  168. Defaults to \code{lighten_color(secondary_color, 0.8)}. Modifies the
  169. \verb{thead, tfoot, tr:nth-child(even)} elements.}
  170. \item{base_font_size}{Base Font Size for All Slide Elements (must be \code{px}).
  171. Defaults to 20px. Modifies the \code{html} element.}
  172. \item{text_font_size}{Slide Body Text Font Size. Defaults to 1rem. Modifies
  173. the \code{.remark-slide-content} class.}
  174. \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 2.75rem.
  175. Modifies the \verb{.remark-slide-content h1} class.}
  176. \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 2.25rem.
  177. Modifies the \verb{.remark-slide-content h2} class.}
  178. \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 1.75rem.
  179. Modifies the \verb{.remark-slide-content h3} class.}
  180. \item{header_background_auto}{Add background under slide title automatically
  181. for h1 header elements. If not enabled, use \code{class: header_background} to
  182. enable. Defaults to \code{FALSE}.}
  183. \item{header_background_color}{Background Color for h1 Header with
  184. Background. Defaults to \code{header_color}. Modifies the
  185. \verb{.remark-slide-content h1} class.}
  186. \item{header_background_text_color}{Text Color for h1 Header with
  187. Background. Defaults to \code{background_color}. Modifies the
  188. \verb{.remark-slide-content h1} class.}
  189. \item{header_background_padding}{Padding for h1 Header with Background.
  190. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.}
  191. \item{header_background_content_padding_top}{Top Padding for Content in
  192. Slide with Header with Background. Defaults to 7rem. Modifies the
  193. \code{.remark-slide-content} class.}
  194. \item{header_background_ignore_classes}{Slide Classes Where Header with
  195. Background will not be Applied. Defaults to
  196. \code{c('normal', 'inverse', 'title', 'middle', 'bottom')}. Modifies the
  197. \code{.remark-slide-content} class.}
  198. \item{text_slide_number_font_size}{Slide Number Text Font Size. Defaults to
  199. 0.9em. Modifies the \code{.remark-slide-number} class.}
  200. \item{text_font_google}{Use \code{google_font()} to specify body font. Defaults
  201. to \code{NULL}. Modifies the \code{body} element.}
  202. \item{text_font_family}{Body Text Font Family (xaringan default is
  203. \code{'Droid Serif'}). Defaults to Noto Sans. Modifies the \code{body} element.}
  204. \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies
  205. the \code{body} element.}
  206. \item{text_font_url}{Body Text Font URL(s). Defaults to
  207. https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap.
  208. Modifies the \verb{@import url()} elements.}
  209. \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to
  210. -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue,
  211. helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the \code{body}
  212. element.}
  213. \item{text_font_base}{Body Text Base Font (Total Failure Fallback). Defaults
  214. to sans-serif. Modifies the \code{body} element.}
  215. \item{header_font_google}{Use \code{google_font()} to specify header font.
  216. Defaults to \code{NULL}. Modifies the \code{body} element.}
  217. \item{header_font_family}{Header Font Family (xaringan default is
  218. \code{'Yanone Kaffeesatz'}). Defaults to Cabin. Modifies the \verb{h1, h2, h3}
  219. elements.}
  220. \item{header_font_weight}{Header Font Weight. Defaults to 600. Modifies the
  221. \verb{h1, h2, h3} elements.}
  222. \item{header_font_url}{Header Font URL. Defaults to
  223. https://fonts.googleapis.com/css?family=Cabin:600,600i&display=swap.
  224. Modifies the \verb{@import url} elements.}
  225. \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults
  226. to \code{NULL}. Modifies the \code{body} element.}
  227. \item{code_font_family}{Code Font Family. Defaults to Source Code Pro.
  228. Modifies the \verb{.remark-code, .remark-inline-code} classes.}
  229. \item{code_font_size}{Code Text Font Size. Defaults to 0.9rem. Modifies the
  230. \code{.remark-inline} class.}
  231. \item{code_font_url}{Code Font URL. Defaults to
  232. https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap.
  233. Modifies the \verb{@import url} elements.}
  234. \item{code_font_family_fallback}{Code Font Fallback. Defaults to Menlo,
  235. Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the
  236. \verb{.remark-code, .remark-inline-code} classes.}
  237. \item{colors}{A named vector of custom colors. The names of the colors
  238. become CSS variables and classes that can be used within your slides.
  239. For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
  240. \code{--blue}, a \code{.blue} CSS class that applies the color to the text or
  241. foreground color, and a \code{.bg-blue} CSS class that applies the color
  242. to the background.}
  243. \item{extra_css}{A named list of CSS definitions each containing a named list
  244. of CSS property-value pairs, i.e.
  245. \code{list(".class-id" = list("css-property" = "value"))}.}
  246. \item{extra_fonts}{A list of additional fonts to import, each list element
  247. can be either a URL as a character string or a call to
  248. \code{\link{google_font}()}. To use a font imported in \code{extra_fonts}, you
  249. will need to write custom CSS rules that apply the font to an element or
  250. class with the \code{font-family} property. See the \strong{Fonts} section of
  251. \code{vignette("xaringanthemer")} for an example.}
  252. \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
  253. }
  254. \description{
  255. An default xaringan theme with a two colors used for color
  256. accents on select elements (headers, bold text, etc.).
  257. }
  258. \seealso{
  259. Other themes:
  260. \code{\link{style_duo_accent_inverse}()},
  261. \code{\link{style_duo}()},
  262. \code{\link{style_mono_accent_inverse}()},
  263. \code{\link{style_mono_accent}()},
  264. \code{\link{style_mono_dark}()},
  265. \code{\link{style_mono_light}()},
  266. \code{\link{style_solarized_dark}()},
  267. \code{\link{style_solarized_light}()},
  268. \code{\link{style_xaringan}()}
  269. Other Duotone themes:
  270. \code{\link{style_duo_accent_inverse}()},
  271. \code{\link{style_duo}()}
  272. }
  273. \concept{Duotone themes}
  274. \concept{themes}