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

241 line
13KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/style_mono_light.R
  3. \name{style_mono_light}
  4. \alias{style_mono_light}
  5. \title{Monotone Light Theme}
  6. \usage{
  7. style_mono_light(
  8. base_color = "#23395b",
  9. white_color = lighten_color(base_color, 0.9),
  10. black_color = darken_color(base_color, 0.3),
  11. text_color = black_color,
  12. header_color = base_color,
  13. background_color = white_color,
  14. link_color = base_color,
  15. text_bold_color = base_color,
  16. text_slide_number_color = base_color,
  17. padding = "16px 64px 16px 64px",
  18. background_image = NULL,
  19. background_size = NULL,
  20. background_position = NULL,
  21. code_highlight_color = "rgba(255,255,0,0.5)",
  22. code_inline_color = base_color,
  23. code_inline_background_color = NULL,
  24. code_inline_font_size = "1rem",
  25. inverse_background_color = base_color,
  26. inverse_text_color = white_color,
  27. inverse_text_shadow = FALSE,
  28. inverse_header_color = white_color,
  29. title_slide_text_color = inverse_text_color,
  30. title_slide_background_color = inverse_background_color,
  31. title_slide_background_image = NULL,
  32. title_slide_background_size = NULL,
  33. title_slide_background_position = NULL,
  34. footnote_color = NULL,
  35. footnote_font_size = "0.9rem",
  36. footnote_position_bottom = "60px",
  37. left_column_subtle_color = apply_alpha(base_color, 0.6),
  38. left_column_selected_color = base_color,
  39. blockquote_left_border_color = apply_alpha(base_color, 0.5),
  40. table_border_color = "#666",
  41. table_row_border_color = "#ddd",
  42. table_row_even_background_color = lighten_color(base_color, 0.8),
  43. base_font_size = "20px",
  44. text_font_size = "1rem",
  45. header_h1_font_size = "2.75rem",
  46. header_h2_font_size = "2.25rem",
  47. header_h3_font_size = "1.75rem",
  48. header_background_auto = FALSE,
  49. header_background_color = header_color,
  50. header_background_text_color = background_color,
  51. header_background_padding = NULL,
  52. header_background_content_padding_top = "7rem",
  53. header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
  54. text_slide_number_font_size = "0.9rem",
  55. text_font_google = google_font("Noto Sans", "400", "400i", "700", "700i"),
  56. text_font_family = NULL,
  57. text_font_weight = "normal",
  58. text_font_url = NULL,
  59. text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
  60. text_font_base = "serif",
  61. header_font_google = google_font("Cabin", "600", "600i"),
  62. header_font_family = NULL,
  63. header_font_weight = "normal",
  64. header_font_url = NULL,
  65. code_font_google = google_font("Source Code Pro", "400", "700"),
  66. code_font_family = NULL,
  67. code_font_size = "0.9rem",
  68. code_font_url = NULL,
  69. code_font_family_fallback = "'Lucida Console', Monaco",
  70. colors = NULL,
  71. extra_css = NULL,
  72. extra_fonts = NULL,
  73. outfile = "xaringan-themer.css"
  74. )
  75. }
  76. \arguments{
  77. \item{base_color}{Monotone base color, works best with a strong color. Defaults to #23395b. Modifies multiple CSS classes or elements.}
  78. \item{white_color}{Brightest color used, default is a very light version of \code{base_color}. Defaults to \code{lighten_color(base_color, 0.9)}. Modifies multiple CSS classes or elements.}
  79. \item{black_color}{Darkest color used, default is a very dark, version of \code{base_color}. Defaults to \code{darken_color(base_color, 0.3)}. Modifies multiple CSS classes or elements.}
  80. \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.}
  81. \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.}
  82. \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.}
  83. \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.}
  84. \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.}
  85. \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.}
  86. \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 16px 64px 16px 64px. Modifies the \code{.remark-slide-content} class.}
  87. \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}
  88. \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}
  89. \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.}
  90. \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.}
  91. \item{code_inline_color}{Inline Code Color. Defaults to \code{base_color}. Modifies the \code{.remark-inline-code} class.}
  92. \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.}
  93. \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1rem. Modifies the \code{.remark-inline-code} class.}
  94. \item{inverse_background_color}{Inverse Background Color. Defaults to \code{base_color}. Modifies the \code{.inverse} class.}
  95. \item{inverse_text_color}{Inverse Text Color. Defaults to \code{white_color}. Modifies the \code{.inverse} class.}
  96. \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.}
  97. \item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.}
  98. \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.}
  99. \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.}
  100. \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  101. \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  102. \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.}
  103. \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.}
  104. \item{footnote_font_size}{Footnote font size. Defaults to 0.9rem. Modifies the \code{.footnote} class.}
  105. \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 60px. Modifies the \code{.footnote} class.}
  106. \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.}
  107. \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.}
  108. \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.}
  109. \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.}
  110. \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.}
  111. \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.8)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.}
  112. \item{base_font_size}{Base Font Size for All Slide Elements (must be \code{px}). Defaults to 20px. Modifies the \code{html} element.}
  113. \item{text_font_size}{Slide Body Text Font Size. Defaults to 1rem. Modifies the \code{.remark-slide-content} class.}
  114. \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 2.75rem. Modifies the \verb{.remark-slide-content h1} class.}
  115. \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 2.25rem. Modifies the \verb{.remark-slide-content h2} class.}
  116. \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 1.75rem. Modifies the \verb{.remark-slide-content h3} class.}
  117. \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.}
  118. \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.}
  119. \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.}
  120. \item{header_background_padding}{Padding for h1 Header with Background. Defaults to \code{NULL}. Modifies the \verb{.remark-slide-content h1} class.}
  121. \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.}
  122. \item{header_background_ignore_classes}{Slide Classes Where Header with Background will not be Applied. Defaults to \code{c('normal', 'inverse', 'title', 'middle', 'bottom')}. Modifies the \code{.remark-slide-content} class.}
  123. \item{text_slide_number_font_size}{Slide Number Text Font Size. Defaults to 0.9rem. Modifies the \code{.remark-slide-number} class.}
  124. \item{text_font_google}{Use \code{google_font()} to specify body font. Defaults to \code{google_font("Noto Sans", "400", "400i", "700", "700i")}. Modifies the \code{body} element.}
  125. \item{text_font_family}{Body Text Font Family (xaringan default is \code{'Droid Serif'}). Defaults to \code{NULL}. Modifies the \code{body} element.}
  126. \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.}
  127. \item{text_font_url}{Body Text Font URL(s). Defaults to \code{NULL}. Modifies the \verb{@import url()} elements.}
  128. \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.}
  129. \item{text_font_base}{Body Text Base Font (Total Failure Fallback). Defaults to serif. Modifies the \code{body} element.}
  130. \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{google_font("Cabin", "600", "600i")}. Modifies the \code{body} element.}
  131. \item{header_font_family}{Header Font Family (xaringan default is \code{'Yanone Kaffeesatz'}). Defaults to \code{NULL}. Modifies the \verb{h1, h2, h3} elements.}
  132. \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.}
  133. \item{header_font_url}{Header Font URL. Defaults to \code{NULL}. Modifies the \verb{@import url} elements.}
  134. \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{google_font("Source Code Pro", "400", "700")}. Modifies the \code{body} element.}
  135. \item{code_font_family}{Code Font Family. Defaults to \code{NULL}. Modifies the \verb{.remark-code, .remark-inline-code} classes.}
  136. \item{code_font_size}{Code Text Font Size. Defaults to 0.9rem. Modifies the \code{.remark-inline} class.}
  137. \item{code_font_url}{Code Font URL. Defaults to \code{NULL}. Modifies the \verb{@import url} elements.}
  138. \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.}
  139. \item{colors}{A named vector of custom colors. The names of the colors
  140. become CSS variables and classes that can be used within your slides.
  141. For example, \code{colors = c(blue = "#bad4ed")} adds a CSS variable
  142. \code{--blue}, a \code{.blue} CSS class that applies the color to the text or
  143. foreground color, and a \code{.bg-blue} CSS class that applies the color
  144. to the background.}
  145. \item{extra_css}{A named list of CSS definitions each containing a named list
  146. of CSS property-value pairs, i.e.
  147. \code{list(".class-id" = list("css-property" = "value"))}}
  148. \item{extra_fonts}{A list of additional fonts to import, each list element
  149. can be either a URL as a character string or a call to
  150. \code{\link{google_font}()}}
  151. \item{outfile}{Customized xaringan CSS output file name, default is "xaringan-themer.css"}
  152. }
  153. \description{
  154. A light monotone theme based around a single color.
  155. }
  156. \seealso{
  157. Other themes:
  158. \code{\link{style_duo_accent_inverse}()},
  159. \code{\link{style_duo_accent}()},
  160. \code{\link{style_duo}()},
  161. \code{\link{style_mono_accent_inverse}()},
  162. \code{\link{style_mono_accent}()},
  163. \code{\link{style_mono_dark}()},
  164. \code{\link{style_solarized_dark}()},
  165. \code{\link{style_solarized_light}()},
  166. \code{\link{style_xaringan}()}
  167. Other Monotone themes:
  168. \code{\link{style_mono_accent_inverse}()},
  169. \code{\link{style_mono_accent}()},
  170. \code{\link{style_mono_dark}()}
  171. }
  172. \concept{Monotone themes}
  173. \concept{themes}