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

104 lines
5.9KB

  1. #' @param text_color Text Color, defaults to #657b83
  2. #' @param header_color Header Color, defaults to #dc322f
  3. #' @param background_color Slide Background Color, defaults to #fdf6e3
  4. #' @param link_color Link Color, defaults to #b58900
  5. #' @param text_bold_color Bold Text Color, defaults to #d33682
  6. #' @param text_slide_number_color Slide Number Color, defaults to #93a1a1
  7. #' @param code_highlight_color Code Line Highlight, defaults to #268bd240
  8. #' @param code_inline_color Inline Code Color, defaults to #6c71c4
  9. #' @param code_inline_background_color Inline Code Background Color, defaults to NA
  10. #' @param inverse_background_color Inverse Background Color, defaults to #002b36
  11. #' @param inverse_text_color Inverse Text Color, defaults to #fdf6e3
  12. #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE`
  13. #' @param inverse_header_color Inverse Header Color, defaults to `inverse_text_color`
  14. #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color`
  15. #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color`
  16. #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA
  17. #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set, defaults to NA
  18. #' @param title_slide_background_position Title Slide Background Image Position, defaults to NA
  19. #' @param left_column_subtle_color Left Column Text (not last), defaults to #93a1a1
  20. #' @param left_column_selected_color Left Column Current Selection, defaults to #586e75
  21. #' @param blockquote_left_color Blockquote Left Border Color, defaults to #cb4b16
  22. #' @param table_border_color Table top/bottom border, defaults to #839496
  23. #' @param table_row_border_color Table row inner bottom border, defaults to #839496
  24. #' @param table_row_even_background_color Table Even Row Background Color, defaults to #eee8d5
  25. #' @param text_font_size Slide Body Text Font Size, defaults to 20px
  26. #' @param header_h1_font_size h1 Header Text Font Size, defaults to 55px
  27. #' @param header_h2_font_size h2 Header Text Font Size, defaults to 45px
  28. #' @param header_h3_font_size h3 Header Text Font Size, defaults to 35px
  29. #' @param text_slide_number_font_size Slide Number Text Font Size, defaults to 0.9em
  30. #' @param code_inline_font_size Inline Code Text Font Size, defaults to 1em
  31. #' @param code_font_size Code Text Font Size, defaults to 0.9em
  32. #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL`
  33. #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif'
  34. #' @param text_font_weight Body Text Font Weight, defaults to normal
  35. #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic
  36. #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'
  37. #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif
  38. #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL`
  39. #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz'
  40. #' @param header_font_weight Header Font Weight, defaults to normal
  41. #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz
  42. #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL`
  43. #' @param code_font_family Code Font Family, defaults to 'Source Code Pro'
  44. #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700
  45. #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco
  46. #' @template extra_css
  47. #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css"
  48. #' @template solarized_light
  49. #' @family Solarized themes
  50. #' @export
  51. solarized_light <- function(
  52. text_color = "#657b83",
  53. header_color = "#dc322f",
  54. background_color = "#fdf6e3",
  55. link_color = "#b58900",
  56. text_bold_color = "#d33682",
  57. text_slide_number_color = "#93a1a1",
  58. code_highlight_color = "#268bd240",
  59. code_inline_color = "#6c71c4",
  60. code_inline_background_color = NA,
  61. inverse_background_color = "#002b36",
  62. inverse_text_color = "#fdf6e3",
  63. inverse_text_shadow = FALSE,
  64. inverse_header_color = inverse_text_color,
  65. title_slide_text_color = inverse_text_color,
  66. title_slide_background_color = inverse_background_color,
  67. title_slide_background_image = NA,
  68. title_slide_background_size = NA,
  69. title_slide_background_position = NA,
  70. left_column_subtle_color = "#93a1a1",
  71. left_column_selected_color = "#586e75",
  72. blockquote_left_color = "#cb4b16",
  73. table_border_color = "#839496",
  74. table_row_border_color = "#839496",
  75. table_row_even_background_color = "#eee8d5",
  76. text_font_size = "20px",
  77. header_h1_font_size = "55px",
  78. header_h2_font_size = "45px",
  79. header_h3_font_size = "35px",
  80. text_slide_number_font_size = "0.9em",
  81. code_inline_font_size = "1em",
  82. code_font_size = "0.9em",
  83. text_font_google = NULL,
  84. text_font_family = "'Droid Serif'",
  85. text_font_weight = "normal",
  86. text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic",
  87. text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'",
  88. text_font_base = "serif",
  89. header_font_google = NULL,
  90. header_font_family = "'Yanone Kaffeesatz'",
  91. header_font_weight = "normal",
  92. header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz",
  93. code_font_google = NULL,
  94. code_font_family = "'Source Code Pro'",
  95. code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700",
  96. code_font_family_fallback = "'Lucida Console', Monaco",
  97. extra_css = NULL,
  98. extra_fonts = NULL,
  99. outfile = "xaringan-themer.css"
  100. ) {
  101. # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R
  102. eval(parse(text = call_write_xaringan_theme()))
  103. }