using inst/scripts/generate_theme_functions.Rtags/v0.1.1
| export(mono_accent_inverse) | export(mono_accent_inverse) | ||||
| export(mono_dark) | export(mono_dark) | ||||
| export(mono_light) | export(mono_light) | ||||
| export(write_xaringan_theme) |
| #' Monotone Light Theme | |||||
| #' | |||||
| #' @param base_color Monotone base color, works best with a strong color, defaults to #23395b | |||||
| #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to `lighten_color(base_color, 0.9)` | |||||
| #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.3)` | |||||
| #' @param text_color Text Color, defaults to `black_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `white_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to #ffff88 | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `white_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `white_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `lighten_color(base_color, 0.8)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_light <- function( | |||||
| base_color = "#23395b", | |||||
| white_color = lighten_color(base_color, 0.9), | |||||
| black_color = darken_color(base_color, 0.3), | |||||
| text_color = black_color, | |||||
| header_color = base_color, | |||||
| background_color = white_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "#ffff88", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = white_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = white_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = lighten_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = lighten_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(base_color, 0.8), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } | |||||
| # generator: setup_theme_function("mono_light", template_mono_light, "#' @family Monotone themes", "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||||
| #' Monotone Dark Theme | |||||
| #' | |||||
| #' @param base_color Monotone Base Color, works best with a light color., defaults to #cbf7ed | |||||
| #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to `lighten_color(base_color, 0.8)` | |||||
| #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.85)` | |||||
| #' @param text_color Text Color, defaults to `white_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `black_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to #ffff88 | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `black_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `black_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `darken_color(base_color, 0.7)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_dark <- function( | |||||
| base_color = "#cbf7ed", | |||||
| white_color = lighten_color(base_color, 0.8), | |||||
| black_color = darken_color(base_color, 0.85), | |||||
| text_color = white_color, | |||||
| header_color = base_color, | |||||
| background_color = black_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "#ffff88", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = black_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = black_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = darken_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = darken_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(base_color, 0.7), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } | |||||
| # setup_theme_function("mono_dark", template_mono_dark, "#' @family Monotone themes", "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||||
| #' Monotone Accent Theme | |||||
| #' | |||||
| #' @param base_color Monotone Base Color, works best with a strong color., defaults to #23395b | |||||
| #' @param white_color Brightest color used, defaults to #FFFFFF | |||||
| #' @param black_color Darkest color used, defaults to #272822 | |||||
| #' @param text_color Text Color, defaults to `black_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `white_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to #ffff88 | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `white_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `white_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `lighten_color(base_color, 0.7)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_accent <- function( | |||||
| base_color = "#23395b", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = "#272822", | |||||
| text_color = black_color, | |||||
| header_color = base_color, | |||||
| background_color = white_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "#ffff88", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = white_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = white_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = lighten_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = lighten_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(base_color, 0.7), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } | |||||
| # setup_theme_function("mono_accent", template_mono_accent, "#' @family Monotone themes", "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||||
| #' Monotone Accent Inverse Theme | |||||
| #' | |||||
| #' @param base_color Monotone Base Color, works best with a light color., defaults to #cbf7ed | |||||
| #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to #FFFFFF | |||||
| #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.9)` | |||||
| #' @param text_color Text Color, defaults to `white_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `black_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to #ffff88 | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `black_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `black_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `darken_color(base_color, 0.7)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_accent_inverse <- function( | |||||
| base_color = "#cbf7ed", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = darken_color(base_color, 0.9), | |||||
| text_color = white_color, | |||||
| header_color = base_color, | |||||
| background_color = black_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "#ffff88", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = black_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = black_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = darken_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = darken_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(base_color, 0.7), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } | |||||
| # setup_theme_function("mono_accent_inverse", template_mono_accent_inverse, "#' @family Monotone themes", "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") |
| #' @param base_color Monotone Base Color, works best with a strong color., defaults to #23395b | |||||
| #' @param white_color Brightest color used, defaults to #FFFFFF | |||||
| #' @param black_color Darkest color used, defaults to #272822 | |||||
| #' @param text_color Text Color, defaults to `black_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `white_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to rgba(255,255,0,0.5) | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `white_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `white_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `lighten_color(base_color, 0.7)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @template mono_accent | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_accent <- function( | |||||
| base_color = "#23395b", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = "#272822", | |||||
| text_color = black_color, | |||||
| header_color = base_color, | |||||
| background_color = white_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = white_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = white_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = lighten_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = lighten_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(base_color, 0.7), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } |
| #' @param base_color Monotone Base Color, works best with a light color., defaults to #cbf7ed | |||||
| #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to #FFFFFF | |||||
| #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.9)` | |||||
| #' @param text_color Text Color, defaults to `white_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `black_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to rgba(255,255,0,0.5) | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `black_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `black_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `darken_color(base_color, 0.7)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @template mono_accent_inverse | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_accent_inverse <- function( | |||||
| base_color = "#cbf7ed", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = darken_color(base_color, 0.9), | |||||
| text_color = white_color, | |||||
| header_color = base_color, | |||||
| background_color = black_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = black_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = black_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = darken_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = darken_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(base_color, 0.7), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } |
| #' @param base_color Monotone Base Color, works best with a light color., defaults to #cbf7ed | |||||
| #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to `lighten_color(base_color, 0.8)` | |||||
| #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.85)` | |||||
| #' @param text_color Text Color, defaults to `white_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `black_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to rgba(255,255,0,0.5) | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `black_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `black_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `darken_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `darken_color(base_color, 0.7)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @template mono_dark | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_dark <- function( | |||||
| base_color = "#cbf7ed", | |||||
| white_color = lighten_color(base_color, 0.8), | |||||
| black_color = darken_color(base_color, 0.85), | |||||
| text_color = white_color, | |||||
| header_color = base_color, | |||||
| background_color = black_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = black_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = black_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = darken_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = darken_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(base_color, 0.7), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } |
| #' @param base_color Monotone base color, works best with a strong color, defaults to #23395b | |||||
| #' @param white_color Brightest color used, default is a very light version of `base_color`, defaults to `lighten_color(base_color, 0.9)` | |||||
| #' @param black_color Darkest color used, default is a very dark, version of `base_color`, defaults to `darken_color(base_color, 0.3)` | |||||
| #' @param text_color Text Color, defaults to `black_color` | |||||
| #' @param header_color Header Color, defaults to `base_color` | |||||
| #' @param background_color Slide Background Color, defaults to `white_color` | |||||
| #' @param link_color Link Color, defaults to `base_color` | |||||
| #' @param text_bold_color Bold Text Color, defaults to `base_color` | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `base_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to rgba(255,255,0,0.5) | |||||
| #' @param code_inline_color Inline Code Color, defaults to `base_color` | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to `base_color` | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to `white_color` | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to `white_color` | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `base_color` | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `lighten_color(base_color, 0.5)` | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to `lighten_color(base_color, 0.8)` | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | |||||
| #' @template mono_light | |||||
| #' @family Monotone themes | |||||
| #' @export | |||||
| mono_light <- function( | |||||
| base_color = "#23395b", | |||||
| white_color = lighten_color(base_color, 0.9), | |||||
| black_color = darken_color(base_color, 0.3), | |||||
| text_color = black_color, | |||||
| header_color = base_color, | |||||
| background_color = white_color, | |||||
| link_color = base_color, | |||||
| text_bold_color = base_color, | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, | |||||
| inverse_text_color = white_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = white_color, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = lighten_color(base_color, 0.5), | |||||
| left_column_selected_color = base_color, | |||||
| blockquote_left_color = lighten_color(base_color, 0.5), | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(base_color, 0.8), | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | |||||
| # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R | |||||
| eval(parse(text = call_write_xaringan_theme())) | |||||
| } |
| #' @keywords internal | |||||
| setup_theme_function <- function( | |||||
| f_name = "write_xaringan_theme", | |||||
| template = template_variables, | |||||
| ..., | |||||
| to_clipboard = TRUE, | |||||
| body = NULL | |||||
| ) { | |||||
| `%,%` <- function(x, y) c(x, y) | |||||
| tv <- template | |||||
| null_default <- purrr::map_lgl(tv$default, is.null) | |||||
| tv[null_default, 'default'] <- "{NULL}" | |||||
| x <- | |||||
| as.character( | |||||
| glue::glue_data( | |||||
| tv, "#' @param {variable} {description}, defaults to {stringr::str_replace_all(default, '[{{}}]', '`')}")) %,% | |||||
| "#' @param outfile Customized xaringan CSS output file name" %,% | |||||
| c(...) %,% | |||||
| glue::glue("{f_name} <- function(") %,% | |||||
| as.character(glue::glue_data(tv, | |||||
| " {variable} = {ifelse(!stringr::str_detect(default, '^[{].+[}]$'), paste0('\"', default, '\"'), stringr::str_replace_all(default, '[{}]', ''))},")) %,% | |||||
| " outfile = \"xaringan-themed.css\"" %,% | |||||
| ") {" | |||||
| if (!is.null(body)) x <- c(x, body, "}") | |||||
| if (to_clipboard) message("Wrote function signature to clipboard.") | |||||
| cat(x, sep = "\n", | |||||
| file = if(to_clipboard) pipe("pbcopy", "w") else "") | |||||
| } | |||||
| #' @keywords internal | |||||
| call_write_xaringan_theme <- function() { | |||||
| paste0("write_xaringan_theme(", | |||||
| paste(template_variables$variable, collapse = ", "), | |||||
| ")") | |||||
| } |
| #' Write Customized Xaringan Theme | |||||
| #' | |||||
| #' @param text_color Text Color | |||||
| #' @param header_color Header Color | |||||
| #' @param background_color Slide Background Color | |||||
| #' @param link_color Link Color | |||||
| #' @param text_bold_color Bold Text Color | |||||
| #' @param text_slide_number_color Slide Number Color | |||||
| #' @param code_highlight_color Code Line Highlight | |||||
| #' @param code_inline_color Inline Code Color | |||||
| #' @param code_inline_background_color Inline Code Background Color | |||||
| #' @param inverse_background_color Inverse Background Color | |||||
| #' @param inverse_text_color Inverse Text Color | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides | |||||
| #' @param inverse_header_color Inverse Header Color | |||||
| #' @param title_slide_text_color Title Slide Text Color | |||||
| #' @param title_slide_background_color Title Slide Background Color | |||||
| #' @param title_slide_background_image Title Slide Background Image URL | |||||
| #' @param left_column_subtle_color Left Column Text (not last) | |||||
| #' @param left_column_selected_color Left Column Current Selection | |||||
| #' @param blockquote_left_color Blockquote Left Border Color | |||||
| #' @param table_border_color Table top/bottom border | |||||
| #' @param table_row_border_color Table row inner bottom border | |||||
| #' @param table_row_even_background_color Table Even Row Background Color | |||||
| #' @param text_font_google Use `google_font()` to specify body font | |||||
| #' @param text_font_family Body Text Font Family | |||||
| #' @param text_font_weight Body Text Font Weight | |||||
| #' @param text_font_url Body Text Font URL(s) | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback) | |||||
| #' @param header_font_google Use `google_font()` to specify header font | |||||
| #' @param header_font_family Header Font Family | |||||
| #' @param header_font_weight Header Font Weight | |||||
| #' @param header_font_url Header Font URL | |||||
| #' @param code_font_google Use `google_font()` to specify code font | |||||
| #' @param code_font_family Code Font Family | |||||
| #' @param code_font_url Code Font URL | |||||
| #' @param code_font_family_fallback Code Font Fallback | |||||
| #' @param text_color Text Color, defaults to #000 | |||||
| #' @param header_color Header Color, defaults to #000 | |||||
| #' @param background_color Slide Background Color, defaults to #FFF | |||||
| #' @param link_color Link Color, defaults to rgb(249, 38, 114) | |||||
| #' @param text_bold_color Bold Text Color, defaults to NA | |||||
| #' @param text_slide_number_color Slide Number Color, defaults to `inverse_background_color` | |||||
| #' @param code_highlight_color Code Line Highlight, defaults to rgba(255,255,0,0.5) | |||||
| #' @param code_inline_color Inline Code Color, defaults to #000 | |||||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||||
| #' @param inverse_background_color Inverse Background Color, defaults to #272822 | |||||
| #' @param inverse_text_color Inverse Text Color, defaults to #d6d6d6 | |||||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||||
| #' @param inverse_header_color Inverse Header Color, defaults to #f3f3f3 | |||||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `inverse_text_color` | |||||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `inverse_background_color` | |||||
| #' @param title_slide_background_image Title Slide Background Image URL, defaults to NA | |||||
| #' @param left_column_subtle_color Left Column Text (not last), defaults to #777 | |||||
| #' @param left_column_selected_color Left Column Current Selection, defaults to #000 | |||||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to lightgray | |||||
| #' @param table_border_color Table top/bottom border, defaults to #666 | |||||
| #' @param table_row_border_color Table row inner bottom border, defaults to #ddd | |||||
| #' @param table_row_even_background_color Table Even Row Background Color, defaults to #eee | |||||
| #' @param text_font_google Use `google_font()` to specify body font, defaults to `NULL` | |||||
| #' @param text_font_family Body Text Font Family, defaults to 'Droid Serif' | |||||
| #' @param text_font_weight Body Text Font Weight, defaults to normal | |||||
| #' @param text_font_url Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic | |||||
| #' @param text_font_family_fallback Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC' | |||||
| #' @param text_font_base Body Text Base Font (Total Failure Fallback), defaults to serif | |||||
| #' @param header_font_google Use `google_font()` to specify header font, defaults to `NULL` | |||||
| #' @param header_font_family Header Font Family, defaults to 'Yanone Kaffeesatz' | |||||
| #' @param header_font_weight Header Font Weight, defaults to normal | |||||
| #' @param header_font_url Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz | |||||
| #' @param code_font_google Use `google_font()` to specify code font, defaults to `NULL` | |||||
| #' @param code_font_family Code Font Family, defaults to 'Source Code Pro' | |||||
| #' @param code_font_url Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700 | |||||
| #' @param code_font_family_fallback Code Font Fallback, defaults to 'Lucida Console', Monaco | |||||
| #' @param outfile Customized xaringan CSS output file name | #' @param outfile Customized xaringan CSS output file name | ||||
| #' @template write_xaringan_theme | |||||
| #' @export | |||||
| write_xaringan_theme <- function( | write_xaringan_theme <- function( | ||||
| text_color = "#000", | |||||
| header_color = "#000", | |||||
| background_color = "#FFF", | |||||
| link_color = "rgb(249, 38, 114)", | |||||
| text_bold_color = NA, | |||||
| text_slide_number_color = color_inverse_bg, | |||||
| code_highlight_color = "#ffff88", | |||||
| code_inline_color = "#000", | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = "#272822", | |||||
| inverse_text_color = "#d6d6d6", | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = "#f3f3f3", | |||||
| title_slide_text_color = color_inverse_text, | |||||
| title_slide_background_color = color_inverse_bg, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = "#777", | |||||
| left_column_selected_color = "#000", | |||||
| blockquote_left_color = "lightgray", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| text_color = "#000", | |||||
| header_color = "#000", | |||||
| background_color = "#FFF", | |||||
| link_color = "rgb(249, 38, 114)", | |||||
| text_bold_color = NA, | |||||
| text_slide_number_color = inverse_background_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = "#000", | |||||
| code_inline_background_color = NA, | |||||
| inverse_background_color = "#272822", | |||||
| inverse_text_color = "#d6d6d6", | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = "#f3f3f3", | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, | |||||
| left_column_subtle_color = "#777", | |||||
| left_column_selected_color = "#000", | |||||
| blockquote_left_color = "lightgray", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = "#eee", | table_row_even_background_color = "#eee", | ||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | |||||
| header_font_weight = "normal", | |||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | |||||
| code_font_family_fallback = "'Lucida Console', Monaco", | |||||
| outfile = "xaringan-themed.css" | |||||
| ) { | ) { | ||||
| # Make sure font names are wrapped in quotes if they have spaces | # Make sure font names are wrapped in quotes if they have spaces | ||||
| f_args <- names(formals(sys.function())) | f_args <- names(formals(sys.function())) | ||||
| var, "<-quote_elements_w_spaces(", var, ")" | var, "<-quote_elements_w_spaces(", var, ")" | ||||
| ))) | ))) | ||||
| } | } | ||||
| # Use font_..._google args to overwrite font args | # Use font_..._google args to overwrite font args | ||||
| for (var in f_args[grepl("font_google$", f_args)]) { | for (var in f_args[grepl("font_google$", f_args)]) { | ||||
| gf <- eval(parse(text = var)) | gf <- eval(parse(text = var)) | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| tf <- system.file("resources", "template.css", package = "xaringanthemer") | tf <- system.file("resources", "template.css", package = "xaringanthemer") | ||||
| template <- readLines(tf, warn = FALSE) | template <- readLines(tf, warn = FALSE) | ||||
| template <- paste(template, collapse = "\n") | template <- paste(template, collapse = "\n") |
| rgb(color_rgb[1], color_rgb[2], color_rgb[3], maxColorValue = 255) | rgb(color_rgb[1], color_rgb[2], color_rgb[3], maxColorValue = 255) | ||||
| } | } | ||||
| adjust_value_color <- function(color_hext, strength = 0.5) { | |||||
| color_hsv <- rgb2hsv(col2rgb(color_hex))[, 1] | |||||
| color_hsv['v'] <- strength | |||||
| hsv(color_hsv[1], color_hsv[2], color_hsv[3]) | |||||
| } | |||||
| #' @keywords internal | |||||
| call_write_xaringan_theme <- function() { | |||||
| paste0("write_xaringan_theme(", | |||||
| paste(template_variables$variable, collapse = ", "), | |||||
| ")") | |||||
| } | |||||
| #' Specify Google Font | #' Specify Google Font | ||||
| #' | #' | ||||
| #' Builds Google Fonts URL from family name. Extra weights are given in the | #' Builds Google Fonts URL from family name. Extra weights are given in the |
| source(here::here("R/theme_settings.R")) | |||||
| setup_theme_function <- function( | |||||
| f_name = "write_xaringan_theme", | |||||
| template = template_variables, | |||||
| ..., | |||||
| file = "", | |||||
| body = NULL | |||||
| ) { | |||||
| `%,%` <- function(x, y) c(x, y) | |||||
| if (file == "clip" && !requireNamespace("clipr", quietly = TRUE)) file <- "" | |||||
| tv <- template | |||||
| null_default <- purrr::map_lgl(tv$default, is.null) | |||||
| tv[null_default, 'default'] <- "{NULL}" | |||||
| x <- | |||||
| as.character( | |||||
| glue::glue_data( | |||||
| tv, "#' @param {variable} {description}, defaults to {stringr::str_replace_all(default, '[{{}}]', '`')}")) %,% | |||||
| "#' @param outfile Customized xaringan CSS output file name" %,% | |||||
| c(...) %,% | |||||
| glue::glue("{f_name} <- function(") %,% | |||||
| as.character(glue::glue_data( | |||||
| tv, " {variable} = {ifelse(!stringr::str_detect(default, '^[{].+[}]$'), paste0('\"', default, '\"'), stringr::str_replace_all(default, '[{}]', ''))},")) %,% | |||||
| " outfile = \"xaringan-themed.css\"" %,% | |||||
| ") {" | |||||
| if (!is.null(body)) x <- c(x, body, "}") | |||||
| if (file == "clip") { | |||||
| clipr::write_clip(x) | |||||
| message("Wrote ", f_name, " function signature to clipboard.") | |||||
| } else { | |||||
| cat(x, sep = "\n", file = file) | |||||
| message("Wrote ", f_name, " to ", file) | |||||
| } | |||||
| invisible() | |||||
| } | |||||
| # ---- Write Xaringan Theme Function ---- | |||||
| setup_theme_function( | |||||
| "write_xaringan_theme", | |||||
| template_variables, | |||||
| "#' @template write_xaringan_theme", | |||||
| "#' @export", | |||||
| body = paste0(" ", readLines(here::here("inst/scripts/write_xaringan_theme_body.R"))), | |||||
| file = here::here("R/theme.R") | |||||
| ) | |||||
| # ---- Monotone Light ---- | |||||
| setup_theme_function( | |||||
| "mono_light", | |||||
| template_mono_light, | |||||
| "#' @template mono_light", | |||||
| "#' @family Monotone themes", | |||||
| "#' @export", | |||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_light.R") | |||||
| ) | |||||
| # ---- Monotone Dark ---- | |||||
| setup_theme_function( | |||||
| "mono_dark", | |||||
| template_mono_dark, | |||||
| "#' @template mono_dark", | |||||
| "#' @family Monotone themes", | |||||
| "#' @export", | |||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_dark.R") | |||||
| ) | |||||
| # ---- Monotone Accent ---- | |||||
| setup_theme_function( | |||||
| "mono_accent", | |||||
| template_mono_accent, | |||||
| "#' @template mono_accent", | |||||
| "#' @family Monotone themes", | |||||
| "#' @export", | |||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_accent.R") | |||||
| ) | |||||
| # ---- Monotone Accent Inverse ---- | |||||
| setup_theme_function( | |||||
| "mono_accent_inverse", | |||||
| template_mono_accent_inverse, | |||||
| "#' @template mono_accent_inverse", | |||||
| "#' @family Monotone themes", | |||||
| "#' @export", | |||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_accent_inverse.R") | |||||
| ) |
| # Make sure font names are wrapped in quotes if they have spaces | |||||
| f_args <- names(formals(sys.function())) | |||||
| for (var in f_args[grepl("font_family$", f_args)]) { | |||||
| eval(parse(text = paste0( | |||||
| var, "<-quote_elements_w_spaces(", var, ")" | |||||
| ))) | |||||
| } | |||||
| # Use font_..._google args to overwrite font args | |||||
| for (var in f_args[grepl("font_google$", f_args)]) { | |||||
| gf <- eval(parse(text = var)) | |||||
| if (is.null(gf)) next | |||||
| if (!inherits(gf, "google_font")) stop( | |||||
| "`", var, "` must be set using `google_font()`." | |||||
| ) | |||||
| group <- stringr::str_split(var, "_")[[1]][1] | |||||
| if (group == "text") { | |||||
| text_font_family <- gf$family | |||||
| text_font_weight <- gf$weights %||% "normal" | |||||
| text_font_weight <- substr(text_font_weight, 1, regexpr(",", text_font_weight)[1]-1) | |||||
| text_font_url <- gf$url | |||||
| } else { | |||||
| for (thing in c("family", "url")) { | |||||
| eval(parse(text = paste0( | |||||
| group, "_font_", thing, " <- gf$", thing | |||||
| ))) | |||||
| } | |||||
| } | |||||
| } | |||||
| tf <- system.file("resources", "template.css", package = "xaringanthemer") | |||||
| template <- readLines(tf, warn = FALSE) | |||||
| template <- paste(template, collapse = "\n") | |||||
| x <- glue::glue(template, .open = "{{", .close = "}}") | |||||
| cat(x, file = outfile) | |||||
| outfile |
| #' @title Monotone Accent Theme | |||||
| #' @description The default xaringan theme with a single color used for color | |||||
| #' accents on select elements (headers, bold text, etc.). |
| #' @title Monotone Accent Inverse Theme | |||||
| #' @description An "inverted" default xaringan theme with a single color used | |||||
| #' for color accents on select elements (headers, bold text, etc.). |
| #' @title Monotone Dark Theme | |||||
| #' @description A dark monotone theme based around a single color. |
| #' @title Monotone Light Theme | |||||
| #' @description A light monotone theme based around a single color. |
| #' @title Write A Customized Xaringan Theme | |||||
| #' @description Creates a customized Xaringan theme CSS file. |
| % Generated by roxygen2: do not edit by hand | % Generated by roxygen2: do not edit by hand | ||||
| % Please edit documentation in R/mono.R | |||||
| % Please edit documentation in R/mono_accent.R | |||||
| \name{mono_accent} | \name{mono_accent} | ||||
| \alias{mono_accent} | \alias{mono_accent} | ||||
| \title{Monotone Accent Theme} | \title{Monotone Accent Theme} | ||||
| black_color = "#272822", text_color = black_color, | black_color = "#272822", text_color = black_color, | ||||
| header_color = base_color, background_color = white_color, | header_color = base_color, background_color = white_color, | ||||
| link_color = base_color, text_bold_color = base_color, | link_color = base_color, text_bold_color = base_color, | ||||
| text_slide_number_color = base_color, code_highlight_color = "#ffff88", | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, code_inline_background_color = NA, | code_inline_color = base_color, code_inline_background_color = NA, | ||||
| inverse_background_color = base_color, inverse_text_color = white_color, | inverse_background_color = base_color, inverse_text_color = white_color, | ||||
| inverse_text_shadow = FALSE, inverse_header_color = white_color, | inverse_text_shadow = FALSE, inverse_header_color = white_color, | ||||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | ||||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||||
| \item{code_highlight_color}{Code Line Highlight, defaults to rgba(255,255,0,0.5)} | |||||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | ||||
| \item{outfile}{Customized xaringan CSS output file name} | \item{outfile}{Customized xaringan CSS output file name} | ||||
| } | } | ||||
| \description{ | \description{ | ||||
| Monotone Accent Theme | |||||
| The default xaringan theme with a single color used for color | |||||
| accents on select elements (headers, bold text, etc.). | |||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other Monotone themes: \code{\link{mono_accent_inverse}}, | Other Monotone themes: \code{\link{mono_accent_inverse}}, |
| % Generated by roxygen2: do not edit by hand | % Generated by roxygen2: do not edit by hand | ||||
| % Please edit documentation in R/mono.R | |||||
| % Please edit documentation in R/mono_accent_inverse.R | |||||
| \name{mono_accent_inverse} | \name{mono_accent_inverse} | ||||
| \alias{mono_accent_inverse} | \alias{mono_accent_inverse} | ||||
| \title{Monotone Accent Inverse Theme} | \title{Monotone Accent Inverse Theme} | ||||
| black_color = darken_color(base_color, 0.9), text_color = white_color, | black_color = darken_color(base_color, 0.9), text_color = white_color, | ||||
| header_color = base_color, background_color = black_color, | header_color = base_color, background_color = black_color, | ||||
| link_color = base_color, text_bold_color = base_color, | link_color = base_color, text_bold_color = base_color, | ||||
| text_slide_number_color = base_color, code_highlight_color = "#ffff88", | |||||
| text_slide_number_color = base_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, code_inline_background_color = NA, | code_inline_color = base_color, code_inline_background_color = NA, | ||||
| inverse_background_color = base_color, inverse_text_color = black_color, | inverse_background_color = base_color, inverse_text_color = black_color, | ||||
| inverse_text_shadow = FALSE, inverse_header_color = black_color, | inverse_text_shadow = FALSE, inverse_header_color = black_color, | ||||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | ||||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||||
| \item{code_highlight_color}{Code Line Highlight, defaults to rgba(255,255,0,0.5)} | |||||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | ||||
| \item{outfile}{Customized xaringan CSS output file name} | \item{outfile}{Customized xaringan CSS output file name} | ||||
| } | } | ||||
| \description{ | \description{ | ||||
| Monotone Accent Inverse Theme | |||||
| An "inverted" default xaringan theme with a single color used | |||||
| for color accents on select elements (headers, bold text, etc.). | |||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other Monotone themes: \code{\link{mono_accent}}, | Other Monotone themes: \code{\link{mono_accent}}, |
| % Generated by roxygen2: do not edit by hand | % Generated by roxygen2: do not edit by hand | ||||
| % Please edit documentation in R/mono.R | |||||
| % Please edit documentation in R/mono_dark.R | |||||
| \name{mono_dark} | \name{mono_dark} | ||||
| \alias{mono_dark} | \alias{mono_dark} | ||||
| \title{Monotone Dark Theme} | \title{Monotone Dark Theme} | ||||
| text_color = white_color, header_color = base_color, | text_color = white_color, header_color = base_color, | ||||
| background_color = black_color, link_color = base_color, | background_color = black_color, link_color = base_color, | ||||
| text_bold_color = base_color, text_slide_number_color = base_color, | text_bold_color = base_color, text_slide_number_color = base_color, | ||||
| code_highlight_color = "#ffff88", code_inline_color = base_color, | |||||
| code_inline_background_color = NA, inverse_background_color = base_color, | |||||
| inverse_text_color = black_color, inverse_text_shadow = FALSE, | |||||
| inverse_header_color = black_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, inverse_text_color = black_color, | |||||
| inverse_text_shadow = FALSE, inverse_header_color = black_color, | |||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NA, | title_slide_background_image = NA, | ||||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | ||||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||||
| \item{code_highlight_color}{Code Line Highlight, defaults to rgba(255,255,0,0.5)} | |||||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | ||||
| \item{outfile}{Customized xaringan CSS output file name} | \item{outfile}{Customized xaringan CSS output file name} | ||||
| } | } | ||||
| \description{ | \description{ | ||||
| Monotone Dark Theme | |||||
| A dark monotone theme based around a single color. | |||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other Monotone themes: \code{\link{mono_accent_inverse}}, | Other Monotone themes: \code{\link{mono_accent_inverse}}, |
| % Generated by roxygen2: do not edit by hand | % Generated by roxygen2: do not edit by hand | ||||
| % Please edit documentation in R/mono.R | |||||
| % Please edit documentation in R/mono_light.R | |||||
| \name{mono_light} | \name{mono_light} | ||||
| \alias{mono_light} | \alias{mono_light} | ||||
| \title{Monotone Light Theme} | \title{Monotone Light Theme} | ||||
| text_color = black_color, header_color = base_color, | text_color = black_color, header_color = base_color, | ||||
| background_color = white_color, link_color = base_color, | background_color = white_color, link_color = base_color, | ||||
| text_bold_color = base_color, text_slide_number_color = base_color, | text_bold_color = base_color, text_slide_number_color = base_color, | ||||
| code_highlight_color = "#ffff88", code_inline_color = base_color, | |||||
| code_inline_background_color = NA, inverse_background_color = base_color, | |||||
| inverse_text_color = white_color, inverse_text_shadow = FALSE, | |||||
| inverse_header_color = white_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||||
| code_inline_color = base_color, code_inline_background_color = NA, | |||||
| inverse_background_color = base_color, inverse_text_color = white_color, | |||||
| inverse_text_shadow = FALSE, inverse_header_color = white_color, | |||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NA, | title_slide_background_image = NA, | ||||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | ||||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||||
| \item{code_highlight_color}{Code Line Highlight, defaults to rgba(255,255,0,0.5)} | |||||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | ||||
| \item{outfile}{Customized xaringan CSS output file name} | \item{outfile}{Customized xaringan CSS output file name} | ||||
| } | } | ||||
| \description{ | \description{ | ||||
| Monotone Light Theme | |||||
| A light monotone theme based around a single color. | |||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other Monotone themes: \code{\link{mono_accent_inverse}}, | Other Monotone themes: \code{\link{mono_accent_inverse}}, |
| % Please edit documentation in R/theme.R | % Please edit documentation in R/theme.R | ||||
| \name{write_xaringan_theme} | \name{write_xaringan_theme} | ||||
| \alias{write_xaringan_theme} | \alias{write_xaringan_theme} | ||||
| \title{Write Customized Xaringan Theme} | |||||
| \title{Write A Customized Xaringan Theme} | |||||
| \usage{ | \usage{ | ||||
| write_xaringan_theme(text_color = "#000", header_color = "#000", | write_xaringan_theme(text_color = "#000", header_color = "#000", | ||||
| background_color = "#FFF", link_color = "rgb(249, 38, 114)", | background_color = "#FFF", link_color = "rgb(249, 38, 114)", | ||||
| text_bold_color = NA, text_slide_number_color = color_inverse_bg, | |||||
| code_highlight_color = "#ffff88", code_inline_color = "#000", | |||||
| text_bold_color = NA, text_slide_number_color = inverse_background_color, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", code_inline_color = "#000", | |||||
| code_inline_background_color = NA, inverse_background_color = "#272822", | code_inline_background_color = NA, inverse_background_color = "#272822", | ||||
| inverse_text_color = "#d6d6d6", inverse_text_shadow = FALSE, | inverse_text_color = "#d6d6d6", inverse_text_shadow = FALSE, | ||||
| inverse_header_color = "#f3f3f3", | inverse_header_color = "#f3f3f3", | ||||
| title_slide_text_color = color_inverse_text, | |||||
| title_slide_background_color = color_inverse_bg, | |||||
| title_slide_text_color = inverse_text_color, | |||||
| title_slide_background_color = inverse_background_color, | |||||
| title_slide_background_image = NA, left_column_subtle_color = "#777", | title_slide_background_image = NA, left_column_subtle_color = "#777", | ||||
| left_column_selected_color = "#000", blockquote_left_color = "lightgray", | left_column_selected_color = "#000", blockquote_left_color = "lightgray", | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | table_border_color = "#666", table_row_border_color = "#ddd", | ||||
| outfile = "xaringan-themed.css") | outfile = "xaringan-themed.css") | ||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Text Color} | |||||
| \item{text_color}{Text Color, defaults to #000} | |||||
| \item{header_color}{Header Color} | |||||
| \item{header_color}{Header Color, defaults to #000} | |||||
| \item{background_color}{Slide Background Color} | |||||
| \item{background_color}{Slide Background Color, defaults to #FFF} | |||||
| \item{link_color}{Link Color} | |||||
| \item{link_color}{Link Color, defaults to rgb(249, 38, 114)} | |||||
| \item{text_bold_color}{Bold Text Color} | |||||
| \item{text_bold_color}{Bold Text Color, defaults to NA} | |||||
| \item{text_slide_number_color}{Slide Number Color} | |||||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{inverse_background_color}} | |||||
| \item{code_highlight_color}{Code Line Highlight} | |||||
| \item{code_highlight_color}{Code Line Highlight, defaults to rgba(255,255,0,0.5)} | |||||
| \item{code_inline_color}{Inline Code Color} | |||||
| \item{code_inline_color}{Inline Code Color, defaults to #000} | |||||
| \item{code_inline_background_color}{Inline Code Background Color} | |||||
| \item{code_inline_background_color}{Inline Code Background Color, defaults to NA} | |||||
| \item{inverse_background_color}{Inverse Background Color} | |||||
| \item{inverse_background_color}{Inverse Background Color, defaults to #272822} | |||||
| \item{inverse_text_color}{Inverse Text Color} | |||||
| \item{inverse_text_color}{Inverse Text Color, defaults to #d6d6d6} | |||||
| \item{inverse_text_shadow}{Enables Shadow on text of inverse slides} | |||||
| \item{inverse_text_shadow}{Enables Shadow on text of inverse slides, defaults to \code{FALSE}} | |||||
| \item{inverse_header_color}{Inverse Header Color} | |||||
| \item{inverse_header_color}{Inverse Header Color, defaults to #f3f3f3} | |||||
| \item{title_slide_text_color}{Title Slide Text Color} | |||||
| \item{title_slide_text_color}{Title Slide Text Color, defaults to \code{inverse_text_color}} | |||||
| \item{title_slide_background_color}{Title Slide Background Color} | |||||
| \item{title_slide_background_color}{Title Slide Background Color, defaults to \code{inverse_background_color}} | |||||
| \item{title_slide_background_image}{Title Slide Background Image URL} | |||||
| \item{title_slide_background_image}{Title Slide Background Image URL, defaults to NA} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last)} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last), defaults to #777} | |||||
| \item{left_column_selected_color}{Left Column Current Selection} | |||||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to #000} | |||||
| \item{blockquote_left_color}{Blockquote Left Border Color} | |||||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to lightgray} | |||||
| \item{table_border_color}{Table top/bottom border} | |||||
| \item{table_border_color}{Table top/bottom border, defaults to #666} | |||||
| \item{table_row_border_color}{Table row inner bottom border} | |||||
| \item{table_row_border_color}{Table row inner bottom border, defaults to #ddd} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color, defaults to #eee} | |||||
| \item{text_font_google}{Use \code{google_font()} to specify body font} | |||||
| \item{text_font_google}{Use \code{google_font()} to specify body font, defaults to \code{NULL}} | |||||
| \item{text_font_family}{Body Text Font Family} | |||||
| \item{text_font_family}{Body Text Font Family, defaults to 'Droid Serif'} | |||||
| \item{text_font_weight}{Body Text Font Weight} | |||||
| \item{text_font_weight}{Body Text Font Weight, defaults to normal} | |||||
| \item{text_font_url}{Body Text Font URL(s)} | |||||
| \item{text_font_url}{Body Text Font URL(s), defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'} | |||||
| \item{text_font_base}{Body Text Base Font (Total Failure Fallback)} | |||||
| \item{text_font_base}{Body Text Base Font (Total Failure Fallback), defaults to serif} | |||||
| \item{header_font_google}{Use \code{google_font()} to specify header font} | |||||
| \item{header_font_google}{Use \code{google_font()} to specify header font, defaults to \code{NULL}} | |||||
| \item{header_font_family}{Header Font Family} | |||||
| \item{header_font_family}{Header Font Family, defaults to 'Yanone Kaffeesatz'} | |||||
| \item{header_font_weight}{Header Font Weight} | |||||
| \item{header_font_weight}{Header Font Weight, defaults to normal} | |||||
| \item{header_font_url}{Header Font URL} | |||||
| \item{header_font_url}{Header Font URL, defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font, defaults to \code{NULL}} | |||||
| \item{code_font_family}{Code Font Family} | |||||
| \item{code_font_family}{Code Font Family, defaults to 'Source Code Pro'} | |||||
| \item{code_font_url}{Code Font URL} | |||||
| \item{code_font_url}{Code Font URL, defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700} | |||||
| \item{code_font_family_fallback}{Code Font Fallback} | |||||
| \item{code_font_family_fallback}{Code Font Fallback, defaults to 'Lucida Console', Monaco} | |||||
| \item{outfile}{Customized xaringan CSS output file name} | \item{outfile}{Customized xaringan CSS output file name} | ||||
| } | } | ||||
| \description{ | \description{ | ||||
| Write Customized Xaringan Theme | |||||
| Creates a customized Xaringan theme CSS file. | |||||
| } | } |