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

116 lines
6.9KB

  1. #' @param base_color Monotone base color, works best with a strong color, defaults to #23395b
  2. #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to `lighten_color(base_color, 0.9)`
  3. #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.3)`
  4. #' @param text_color Text Color, defaults to `black_color`
  5. #' @param header_color Header Color, defaults to `base_color`
  6. #' @param background_color Slide Background Color, defaults to `white_color`
  7. #' @param link_color Link Color, defaults to `base_color`
  8. #' @param text_bold_color Bold Text Color, defaults to `base_color`
  9. #' @param text_slide_number_color Slide Number Color, defaults to `base_color`
  10. #' @param code_highlight_color Code Line Highlight, defaults to rgba(255,255,0,0.5)
  11. #' @param code_inline_color Inline Code Color, defaults to `base_color`
  12. #' @param code_inline_background_color Inline Code Background Color, defaults to NA
  13. #' @param code_inline_font_size Inline Code Text Font Size, defaults to 1em
  14. #' @param inverse_background_color Inverse Background Color, defaults to `base_color`
  15. #' @param inverse_text_color Inverse Text Color, defaults to `white_color`
  16. #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE`
  17. #' @param inverse_header_color Inverse Header Color, defaults to `white_color`
  18. #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color`
  19. #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color`
  20. #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA
  21. #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set, defaults to NA
  22. #' @param title_slide_background_position Title Slide Background Image Position, defaults to NA
  23. #' @param footnote_color Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}`), defaults to NA
  24. #' @param footnote_font_size Footnote font size, defaults to 90%
  25. #' @param footnote_position_bottom Footnote location from bottom of screen, defaults to 3em
  26. #' @param left_column_subtle_color Left Column Text (not last), defaults to `apply_alpha(base_color, 0.6)`
  27. #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color`
  28. #' @param blockquote_left_color Blockquote Left Border Color, defaults to `apply_alpha(base_color, 0.5)`
  29. #' @param table_border_color Table top/bottom border, defaults to #666
  30. #' @param table_row_border_color Table row inner bottom border, defaults to #ddd
  31. #' @param table_row_even_background_color Table Even Row Background Color, defaults to `lighten_color(base_color, 0.8)`
  32. #' @param text_font_size Slide Body Text Font Size, defaults to 20px
  33. #' @param header_h1_font_size h1 Header Text Font Size, defaults to 55px
  34. #' @param header_h2_font_size h2 Header Text Font Size, defaults to 45px
  35. #' @param header_h3_font_size h3 Header Text Font Size, defaults to 35px
  36. #' @param text_slide_number_font_size Slide Number Text Font Size, defaults to 0.9em
  37. #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL`
  38. #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif'
  39. #' @param text_font_weight Body Text Font Weight, defaults to normal
  40. #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic
  41. #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'
  42. #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif
  43. #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL`
  44. #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz'
  45. #' @param header_font_weight Header Font Weight, defaults to normal
  46. #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz
  47. #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL`
  48. #' @param code_font_family Code Font Family, defaults to 'Source Code Pro'
  49. #' @param code_font_size Code Text Font Size, defaults to 0.9em
  50. #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700
  51. #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco
  52. #' @template extra_css
  53. #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
  54. #' @template mono_light
  55. #' @family Monotone themes
  56. #' @export
  57. mono_light <- function(
  58. base_color = "#23395b",
  59. white_color = lighten_color(base_color, 0.9),
  60. black_color = darken_color(base_color, 0.3),
  61. text_color = black_color,
  62. header_color = base_color,
  63. background_color = white_color,
  64. link_color = base_color,
  65. text_bold_color = base_color,
  66. text_slide_number_color = base_color,
  67. code_highlight_color = "rgba(255,255,0,0.5)",
  68. code_inline_color = base_color,
  69. code_inline_background_color = NA,
  70. code_inline_font_size = "1em",
  71. inverse_background_color = base_color,
  72. inverse_text_color = white_color,
  73. inverse_text_shadow = FALSE,
  74. inverse_header_color = white_color,
  75. title_slide_text_color = inverse_text_color,
  76. title_slide_background_color = inverse_background_color,
  77. title_slide_background_image = NA,
  78. title_slide_background_size = NA,
  79. title_slide_background_position = NA,
  80. footnote_color = NA,
  81. footnote_font_size = "90%",
  82. footnote_position_bottom = "3em",
  83. left_column_subtle_color = apply_alpha(base_color, 0.6),
  84. left_column_selected_color = base_color,
  85. blockquote_left_color = apply_alpha(base_color, 0.5),
  86. table_border_color = "#666",
  87. table_row_border_color = "#ddd",
  88. table_row_even_background_color = lighten_color(base_color, 0.8),
  89. text_font_size = "20px",
  90. header_h1_font_size = "55px",
  91. header_h2_font_size = "45px",
  92. header_h3_font_size = "35px",
  93. text_slide_number_font_size = "0.9em",
  94. text_font_google = NULL,
  95. text_font_family = "'Droid Serif'",
  96. text_font_weight = "normal",
  97. text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
  98. text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
  99. text_font_base = "serif",
  100. header_font_google = NULL,
  101. header_font_family = "'Yanone Kaffeesatz'",
  102. header_font_weight = "normal",
  103. header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
  104. code_font_google = NULL,
  105. code_font_family = "'Source Code Pro'",
  106. code_font_size = "0.9em",
  107. code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
  108. code_font_family_fallback = "'Lucida Console', Monaco",
  109. extra_css = NULL,
  110. extra_fonts = NULL,
  111. outfile = "xaringan-themer.css"
  112. ) {
  113. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  114. eval(parse(text = call_write_xaringan_theme()))
  115. }