| @@ -3,7 +3,9 @@ | |||
| export(apply_alpha) | |||
| export(choose_dark_or_light) | |||
| export(darken_color) | |||
| export(duo_theme) | |||
| export(duo) | |||
| export(duo_accent) | |||
| export(duo_accent_inverse) | |||
| export(google_font) | |||
| export(google_language_codes) | |||
| export(lighten_color) | |||
| @@ -0,0 +1,86 @@ | |||
| #' @param primary_color Duotone Primary Color, defaults to #1F4257 | |||
| #' @param secondary_color Duotone Secondary Color, defaults to #F97B64 | |||
| #' @param text_color Text Color, defaults to `choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))` | |||
| #' @param header_color Header Color, defaults to `secondary_color` | |||
| #' @param background_color Slide Background Color, defaults to `primary_color` | |||
| #' @param link_color Link Color, defaults to `secondary_color` | |||
| #' @param text_bold_color Bold Text Color, defaults to `secondary_color` | |||
| #' @param text_slide_number_color Slide Number Color, defaults to `text_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 `secondary_color` | |||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||
| #' @param inverse_background_color Inverse Background Color, defaults to `secondary_color` | |||
| #' @param inverse_text_color Inverse Text Color, defaults to `primary_color` | |||
| #' @param inverse_text_shadow Enables Shadow on text of inverse slides, defaults to `FALSE` | |||
| #' @param inverse_header_color Inverse Header Color, defaults to `primary_color` | |||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `secondary_color` | |||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `primary_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 `apply_alpha(secondary_color, 0.6)` | |||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `secondary_color` | |||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `apply_alpha(secondary_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(primary_color, 0.3)` | |||
| #' @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 duo | |||
| #' @family Duotone themes | |||
| #' @export | |||
| duo <- function( | |||
| primary_color = "#1F4257", | |||
| secondary_color = "#F97B64", | |||
| text_color = choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99)), | |||
| header_color = secondary_color, | |||
| background_color = primary_color, | |||
| link_color = secondary_color, | |||
| text_bold_color = secondary_color, | |||
| text_slide_number_color = text_color, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = secondary_color, | |||
| code_inline_background_color = NA, | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = primary_color, | |||
| inverse_text_shadow = FALSE, | |||
| inverse_header_color = primary_color, | |||
| title_slide_text_color = secondary_color, | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| left_column_subtle_color = apply_alpha(secondary_color, 0.6), | |||
| left_column_selected_color = secondary_color, | |||
| blockquote_left_color = apply_alpha(secondary_color, 0.5), | |||
| table_border_color = "#666", | |||
| table_row_border_color = "#ddd", | |||
| table_row_even_background_color = lighten_color(primary_color, 0.3), | |||
| 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())) | |||
| } | |||
| @@ -0,0 +1,90 @@ | |||
| #' @param primary_color Duotone Primary Color, defaults to #006747 | |||
| #' @param secondary_color Duotone Secondary Color, defaults to #CFC493 | |||
| #' @param white_color Brightest color used, defaults to #FFFFFF | |||
| #' @param black_color Darkest color used, defaults to #000000 | |||
| #' @param text_color Text Color, defaults to `black_color` | |||
| #' @param header_color Header Color, defaults to `primary_color` | |||
| #' @param background_color Slide Background Color, defaults to `white_color` | |||
| #' @param link_color Link Color, defaults to `choose_dark_or_light(secondary_color, primary_color, secondary_color)` | |||
| #' @param text_bold_color Bold Text Color, defaults to `choose_dark_or_light(secondary_color, primary_color, secondary_color)` | |||
| #' @param text_slide_number_color Slide Number Color, defaults to `primary_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 `choose_dark_or_light(secondary_color, primary_color, secondary_color)` | |||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||
| #' @param inverse_background_color Inverse Background Color, defaults to `secondary_color` | |||
| #' @param inverse_text_color Inverse Text Color, defaults to `choose_dark_or_light(secondary_color, black_color, 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 `choose_dark_or_light(secondary_color, black_color, white_color)` | |||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `choose_dark_or_light(primary_color, black_color, white_color)` | |||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `primary_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 `apply_alpha(primary_color, 0.6)` | |||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `primary_color` | |||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `apply_alpha(secondary_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(secondary_color, 0.3)` | |||
| #' @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 duo_accent | |||
| #' @family Duotone themes | |||
| #' @export | |||
| duo_accent <- function( | |||
| primary_color = "#006747", | |||
| secondary_color = "#CFC493", | |||
| white_color = "#FFFFFF", | |||
| black_color = "#000000", | |||
| text_color = black_color, | |||
| header_color = primary_color, | |||
| background_color = white_color, | |||
| link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| text_slide_number_color = primary_color, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| code_inline_background_color = NA, | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| inverse_text_shadow = FALSE, | |||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color), | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| left_column_selected_color = primary_color, | |||
| blockquote_left_color = apply_alpha(secondary_color, 0.5), | |||
| table_border_color = "#666", | |||
| table_row_border_color = "#ddd", | |||
| table_row_even_background_color = lighten_color(secondary_color, 0.3), | |||
| 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())) | |||
| } | |||
| @@ -0,0 +1,90 @@ | |||
| #' @param primary_color Duotone Primary Color, defaults to #006747 | |||
| #' @param secondary_color Duotone Secondary Color, defaults to #CFC493 | |||
| #' @param white_color Brightest color used, defaults to #FFFFFF | |||
| #' @param black_color Darkest color used, defaults to #000000 | |||
| #' @param text_color Text Color, defaults to `white_color` | |||
| #' @param header_color Header Color, defaults to `primary_color` | |||
| #' @param background_color Slide Background Color, defaults to `black_color` | |||
| #' @param link_color Link Color, defaults to `choose_dark_or_light(secondary_color, primary_color, secondary_color)` | |||
| #' @param text_bold_color Bold Text Color, defaults to `choose_dark_or_light(secondary_color, primary_color, secondary_color)` | |||
| #' @param text_slide_number_color Slide Number Color, defaults to `primary_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 `choose_dark_or_light(secondary_color, primary_color, secondary_color)` | |||
| #' @param code_inline_background_color Inline Code Background Color, defaults to NA | |||
| #' @param inverse_background_color Inverse Background Color, defaults to `secondary_color` | |||
| #' @param inverse_text_color Inverse Text Color, defaults to `choose_dark_or_light(secondary_color, black_color, 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 `choose_dark_or_light(secondary_color, black_color, white_color)` | |||
| #' @param title_slide_text_color Title Slide Text Color, defaults to `choose_dark_or_light(primary_color, black_color, white_color)` | |||
| #' @param title_slide_background_color Title Slide Background Color, defaults to `primary_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 `apply_alpha(primary_color, 0.6)` | |||
| #' @param left_column_selected_color Left Column Current Selection, defaults to `primary_color` | |||
| #' @param blockquote_left_color Blockquote Left Border Color, defaults to `apply_alpha(secondary_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(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)` | |||
| #' @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 duo_accent_inverse | |||
| #' @family Duotone themes | |||
| #' @export | |||
| duo_accent_inverse <- function( | |||
| primary_color = "#006747", | |||
| secondary_color = "#CFC493", | |||
| white_color = "#FFFFFF", | |||
| black_color = "#000000", | |||
| text_color = white_color, | |||
| header_color = primary_color, | |||
| background_color = black_color, | |||
| link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| text_slide_number_color = primary_color, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| code_inline_background_color = NA, | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| inverse_text_shadow = FALSE, | |||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color), | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| left_column_selected_color = primary_color, | |||
| blockquote_left_color = apply_alpha(secondary_color, 0.5), | |||
| table_border_color = "#666", | |||
| table_row_border_color = "#ddd", | |||
| table_row_even_background_color = darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3), | |||
| 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())) | |||
| } | |||
| @@ -141,3 +141,99 @@ template_mono_accent_inverse <- set_default( | |||
| left_column_selected_color = "{base_color}", | |||
| blockquote_left_color = "{apply_alpha(base_color, 0.5)}", | |||
| table_row_even_background_color = "{darken_color(base_color, 0.7)}") | |||
| template_duo_light <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "primary_color", "#1F4257", "mutliple", "Duotone Secondary Color" | |||
| , "secondary_color", "#F97B64", "multiple", "Duotone Primary Color" | |||
| , "white_color", "{lighten_color(primary_color, 0.99)}", "multiple", "Brightest color used, default is a very light version of `primary_color`" | |||
| , "black_color", "{darken_color(secondary_color, 0.9)}", "multiple", "Darkest color used, default is a very dark version of `secondary_color`" | |||
| ) | |||
| template_duo_light <- do.call('rbind', list(template_duo_light, template_variables)) | |||
| template_duo_light <- set_default( | |||
| template_duo_light, | |||
| text_color = "{black_color}", | |||
| header_color = "{primary_color}", | |||
| background_color = "{white_color}", | |||
| link_color = "{secondary_color}", | |||
| text_bold_color = "{secondary_color}", | |||
| text_slide_number_color = "{primary_color}", | |||
| code_inline_color = "{secondary_color}", | |||
| inverse_background_color = "{primary_color}", | |||
| inverse_text_color = "{secondary_color}", | |||
| inverse_header_color = "{secondary_color}", | |||
| left_column_subtle_color = "{apply_alpha(secondary_color, 0.6)}", | |||
| left_column_selected_color = "{secondary_color}", | |||
| blockquote_left_color = "{apply_alpha(secondary_color, 0.5)}", | |||
| table_row_even_background_color = "{lighten_color(secondary_color, 0.7)}") | |||
| template_duo <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "primary_color", "#1F4257", "mutliple", "Duotone Primary Color" | |||
| , "secondary_color", "#F97B64", "multiple", "Duotone Secondary Color" | |||
| ) | |||
| template_duo <- do.call('rbind', list(template_duo, template_variables)) | |||
| template_duo <- set_default( | |||
| template_duo, | |||
| text_color = "{choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))}", | |||
| header_color = "{secondary_color}", | |||
| background_color = "{primary_color}", | |||
| link_color = "{secondary_color}", | |||
| text_bold_color = "{secondary_color}", | |||
| text_slide_number_color = "{text_color}", | |||
| code_inline_color = "{secondary_color}", | |||
| inverse_background_color = "{secondary_color}", | |||
| inverse_text_color = "{primary_color}", | |||
| inverse_header_color = "{primary_color}", | |||
| title_slide_text_color = "{secondary_color}", | |||
| title_slide_background_color = "{primary_color}", | |||
| left_column_subtle_color = "{apply_alpha(secondary_color, 0.6)}", | |||
| left_column_selected_color = "{secondary_color}", | |||
| blockquote_left_color = "{apply_alpha(secondary_color, 0.5)}", | |||
| table_row_even_background_color = "{lighten_color(primary_color, 0.3)}") | |||
| template_duo_accent <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "primary_color", "#006747", "mutliple", "Duotone Primary Color" | |||
| , "secondary_color", "#CFC493", "multiple", "Duotone Secondary Color" | |||
| , "white_color", "#FFFFFF", "multiple", "Brightest color used" | |||
| , "black_color", "#000000", "multiple", "Darkest color used" | |||
| ) | |||
| template_duo_accent <- do.call('rbind', list(template_duo_accent, template_variables)) | |||
| template_duo_accent <- set_default( | |||
| template_duo_accent, | |||
| text_color = "{black_color}", | |||
| header_color = "{primary_color}", | |||
| background_color = "{white_color}", | |||
| link_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", | |||
| text_bold_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", | |||
| text_slide_number_color = "{primary_color}", | |||
| code_inline_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", | |||
| inverse_background_color = "{secondary_color}", | |||
| inverse_text_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}", | |||
| inverse_header_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}", | |||
| title_slide_background_color = "{primary_color}", | |||
| title_slide_text_color = "{choose_dark_or_light(primary_color, black_color, white_color)}", | |||
| left_column_subtle_color = "{apply_alpha(primary_color, 0.6)}", | |||
| left_column_selected_color = "{primary_color}", | |||
| blockquote_left_color = "{apply_alpha(secondary_color, 0.5)}", | |||
| table_row_even_background_color = "{lighten_color(secondary_color, 0.3)}") | |||
| template_duo_accent_inverse <- set_default( | |||
| template_duo_accent, | |||
| text_color = "{white_color}", | |||
| header_color = "{primary_color}", | |||
| background_color = "{black_color}", | |||
| link_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", | |||
| text_bold_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", | |||
| text_slide_number_color = "{primary_color}", | |||
| code_inline_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", | |||
| inverse_background_color = "{secondary_color}", | |||
| inverse_text_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}", | |||
| inverse_header_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}", | |||
| title_slide_background_color = "{primary_color}", | |||
| title_slide_text_color = "{choose_dark_or_light(primary_color, black_color, white_color)}", | |||
| left_column_subtle_color = "{apply_alpha(primary_color, 0.6)}", | |||
| left_column_selected_color = "{primary_color}", | |||
| blockquote_left_color = "{apply_alpha(secondary_color, 0.5)}", | |||
| table_row_even_background_color = "{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)}") | |||
| @@ -99,3 +99,45 @@ setup_theme_function( | |||
| ), | |||
| file = here::here("R/mono_accent_inverse.R") | |||
| ) | |||
| # ---- Duotone ---- | |||
| setup_theme_function( | |||
| "duo", | |||
| template_duo, | |||
| "#' @template duo", | |||
| "#' @family Duotone 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/duo.R") | |||
| ) | |||
| # ---- Duotone Accent ---- | |||
| setup_theme_function( | |||
| "duo_accent", | |||
| template_duo_accent, | |||
| "#' @template duo_accent", | |||
| "#' @family Duotone 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/duo_accent.R") | |||
| ) | |||
| # ---- Duotone Accent Inverse ---- | |||
| setup_theme_function( | |||
| "duo_accent_inverse", | |||
| template_duo_accent_inverse, | |||
| "#' @template duo_accent_inverse", | |||
| "#' @family Duotone 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/duo_accent_inverse.R") | |||
| ) | |||
| @@ -0,0 +1,3 @@ | |||
| #' @title Duotone Theme | |||
| #' @description A duotone theme designed to work well with two complementary | |||
| #' colors. | |||
| @@ -0,0 +1,3 @@ | |||
| #' @title Duotone Accent Theme | |||
| #' @description An default xaringan theme with a two colors used for color | |||
| #' accents on select elements (headers, bold text, etc.). | |||
| @@ -0,0 +1,3 @@ | |||
| #' @title Duotone Accent Inverse Theme | |||
| #' @description An "inverted" default xaringan theme with a two colors used | |||
| #' for color accents on select elements (headers, bold text, etc.). | |||
| @@ -0,0 +1,123 @@ | |||
| % Generated by roxygen2: do not edit by hand | |||
| % Please edit documentation in R/duo.R | |||
| \name{duo} | |||
| \alias{duo} | |||
| \title{Duotone Theme} | |||
| \usage{ | |||
| duo(primary_color = "#1F4257", secondary_color = "#F97B64", | |||
| text_color = choose_dark_or_light(primary_color, darken_color(primary_color, | |||
| 0.9), lighten_color(secondary_color, 0.99)), header_color = secondary_color, | |||
| background_color = primary_color, link_color = secondary_color, | |||
| text_bold_color = secondary_color, text_slide_number_color = text_color, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = secondary_color, code_inline_background_color = NA, | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = primary_color, inverse_text_shadow = FALSE, | |||
| inverse_header_color = primary_color, | |||
| title_slide_text_color = secondary_color, | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| left_column_subtle_color = apply_alpha(secondary_color, 0.6), | |||
| left_column_selected_color = secondary_color, | |||
| blockquote_left_color = apply_alpha(secondary_color, 0.5), | |||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||
| table_row_even_background_color = lighten_color(primary_color, 0.3), | |||
| 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") | |||
| } | |||
| \arguments{ | |||
| \item{primary_color}{Duotone Primary Color, defaults to #1F4257} | |||
| \item{secondary_color}{Duotone Secondary Color, defaults to #F97B64} | |||
| \item{text_color}{Text Color, defaults to \code{choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))}} | |||
| \item{header_color}{Header Color, defaults to \code{secondary_color}} | |||
| \item{background_color}{Slide Background Color, defaults to \code{primary_color}} | |||
| \item{link_color}{Link Color, defaults to \code{secondary_color}} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{secondary_color}} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{text_color}} | |||
| \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{secondary_color}} | |||
| \item{code_inline_background_color}{Inline Code Background Color, defaults to NA} | |||
| \item{inverse_background_color}{Inverse Background Color, defaults to \code{secondary_color}} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{primary_color}} | |||
| \item{inverse_text_shadow}{Enables Shadow on text of inverse slides, defaults to \code{FALSE}} | |||
| \item{inverse_header_color}{Inverse Header Color, defaults to \code{primary_color}} | |||
| \item{title_slide_text_color}{Title Slide Text Color, defaults to \code{secondary_color}} | |||
| \item{title_slide_background_color}{Title Slide Background Color, defaults to \code{primary_color}} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL, defaults to NA} | |||
| \item{left_column_subtle_color}{Left Column Text (not last), defaults to \code{apply_alpha(secondary_color, 0.6)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{secondary_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{apply_alpha(secondary_color, 0.5)}} | |||
| \item{table_border_color}{Table top/bottom border, defaults to #666} | |||
| \item{table_row_border_color}{Table row inner bottom border, defaults to #ddd} | |||
| \item{table_row_even_background_color}{Table Even Row Background Color, defaults to \code{lighten_color(primary_color, 0.3)}} | |||
| \item{text_font_google}{Use \code{google_font()} to specify body font, defaults to \code{NULL}} | |||
| \item{text_font_family}{Body Text Font Family, defaults to 'Droid Serif'} | |||
| \item{text_font_weight}{Body Text Font Weight, defaults to normal} | |||
| \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, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'} | |||
| \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, defaults to \code{NULL}} | |||
| \item{header_font_family}{Header Font Family, defaults to 'Yanone Kaffeesatz'} | |||
| \item{header_font_weight}{Header Font Weight, defaults to normal} | |||
| \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, defaults to \code{NULL}} | |||
| \item{code_font_family}{Code Font Family, defaults to 'Source Code Pro'} | |||
| \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, defaults to 'Lucida Console', Monaco} | |||
| \item{outfile}{Customized xaringan CSS output file name} | |||
| } | |||
| \description{ | |||
| A duotone theme designed to work well with two complementary | |||
| colors. | |||
| } | |||
| \seealso{ | |||
| Other Duotone themes: \code{\link{duo_accent_inverse}}, | |||
| \code{\link{duo_accent}} | |||
| } | |||
| @@ -0,0 +1,131 @@ | |||
| % Generated by roxygen2: do not edit by hand | |||
| % Please edit documentation in R/duo_accent.R | |||
| \name{duo_accent} | |||
| \alias{duo_accent} | |||
| \title{Duotone Accent Theme} | |||
| \usage{ | |||
| duo_accent(primary_color = "#006747", secondary_color = "#CFC493", | |||
| white_color = "#FFFFFF", black_color = "#000000", | |||
| text_color = black_color, header_color = primary_color, | |||
| background_color = white_color, | |||
| link_color = choose_dark_or_light(secondary_color, primary_color, | |||
| secondary_color), text_bold_color = choose_dark_or_light(secondary_color, | |||
| primary_color, secondary_color), text_slide_number_color = primary_color, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, primary_color, | |||
| secondary_color), code_inline_background_color = NA, | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, | |||
| white_color), inverse_text_shadow = FALSE, | |||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, | |||
| white_color), title_slide_text_color = choose_dark_or_light(primary_color, | |||
| black_color, white_color), title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| left_column_selected_color = primary_color, | |||
| blockquote_left_color = apply_alpha(secondary_color, 0.5), | |||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||
| table_row_even_background_color = lighten_color(secondary_color, 0.3), | |||
| 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") | |||
| } | |||
| \arguments{ | |||
| \item{primary_color}{Duotone Primary Color, defaults to #006747} | |||
| \item{secondary_color}{Duotone Secondary Color, defaults to #CFC493} | |||
| \item{white_color}{Brightest color used, defaults to #FFFFFF} | |||
| \item{black_color}{Darkest color used, defaults to #000000} | |||
| \item{text_color}{Text Color, defaults to \code{black_color}} | |||
| \item{header_color}{Header Color, defaults to \code{primary_color}} | |||
| \item{background_color}{Slide Background Color, defaults to \code{white_color}} | |||
| \item{link_color}{Link Color, defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{primary_color}} | |||
| \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{choose_dark_or_light(secondary_color, primary_color, secondary_color)}} | |||
| \item{code_inline_background_color}{Inline Code Background Color, defaults to NA} | |||
| \item{inverse_background_color}{Inverse Background Color, defaults to \code{secondary_color}} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}} | |||
| \item{inverse_text_shadow}{Enables Shadow on text of inverse slides, defaults to \code{FALSE}} | |||
| \item{inverse_header_color}{Inverse Header Color, defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}} | |||
| \item{title_slide_text_color}{Title Slide Text Color, defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}} | |||
| \item{title_slide_background_color}{Title Slide Background Color, defaults to \code{primary_color}} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL, defaults to NA} | |||
| \item{left_column_subtle_color}{Left Column Text (not last), defaults to \code{apply_alpha(primary_color, 0.6)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{primary_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{apply_alpha(secondary_color, 0.5)}} | |||
| \item{table_border_color}{Table top/bottom border, defaults to #666} | |||
| \item{table_row_border_color}{Table row inner bottom border, defaults to #ddd} | |||
| \item{table_row_even_background_color}{Table Even Row Background Color, defaults to \code{lighten_color(secondary_color, 0.3)}} | |||
| \item{text_font_google}{Use \code{google_font()} to specify body font, defaults to \code{NULL}} | |||
| \item{text_font_family}{Body Text Font Family, defaults to 'Droid Serif'} | |||
| \item{text_font_weight}{Body Text Font Weight, defaults to normal} | |||
| \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, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'} | |||
| \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, defaults to \code{NULL}} | |||
| \item{header_font_family}{Header Font Family, defaults to 'Yanone Kaffeesatz'} | |||
| \item{header_font_weight}{Header Font Weight, defaults to normal} | |||
| \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, defaults to \code{NULL}} | |||
| \item{code_font_family}{Code Font Family, defaults to 'Source Code Pro'} | |||
| \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, defaults to 'Lucida Console', Monaco} | |||
| \item{outfile}{Customized xaringan CSS output file name} | |||
| } | |||
| \description{ | |||
| An default xaringan theme with a two colors used for color | |||
| accents on select elements (headers, bold text, etc.). | |||
| } | |||
| \seealso{ | |||
| Other Duotone themes: \code{\link{duo_accent_inverse}}, | |||
| \code{\link{duo}} | |||
| } | |||
| @@ -0,0 +1,131 @@ | |||
| % Generated by roxygen2: do not edit by hand | |||
| % Please edit documentation in R/duo_accent_inverse.R | |||
| \name{duo_accent_inverse} | |||
| \alias{duo_accent_inverse} | |||
| \title{Duotone Accent Inverse Theme} | |||
| \usage{ | |||
| duo_accent_inverse(primary_color = "#006747", secondary_color = "#CFC493", | |||
| white_color = "#FFFFFF", black_color = "#000000", | |||
| text_color = white_color, header_color = primary_color, | |||
| background_color = black_color, | |||
| link_color = choose_dark_or_light(secondary_color, primary_color, | |||
| secondary_color), text_bold_color = choose_dark_or_light(secondary_color, | |||
| primary_color, secondary_color), text_slide_number_color = primary_color, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, primary_color, | |||
| secondary_color), code_inline_background_color = NA, | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, | |||
| white_color), inverse_text_shadow = FALSE, | |||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, | |||
| white_color), title_slide_text_color = choose_dark_or_light(primary_color, | |||
| black_color, white_color), title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| left_column_selected_color = primary_color, | |||
| blockquote_left_color = apply_alpha(secondary_color, 0.5), | |||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||
| table_row_even_background_color = darken_color(choose_dark_or_light(primary_color, | |||
| secondary_color, primary_color), 0.3), 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") | |||
| } | |||
| \arguments{ | |||
| \item{primary_color}{Duotone Primary Color, defaults to #006747} | |||
| \item{secondary_color}{Duotone Secondary Color, defaults to #CFC493} | |||
| \item{white_color}{Brightest color used, defaults to #FFFFFF} | |||
| \item{black_color}{Darkest color used, defaults to #000000} | |||
| \item{text_color}{Text Color, defaults to \code{white_color}} | |||
| \item{header_color}{Header Color, defaults to \code{primary_color}} | |||
| \item{background_color}{Slide Background Color, defaults to \code{black_color}} | |||
| \item{link_color}{Link Color, defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{primary_color}} | |||
| \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{choose_dark_or_light(secondary_color, primary_color, secondary_color)}} | |||
| \item{code_inline_background_color}{Inline Code Background Color, defaults to NA} | |||
| \item{inverse_background_color}{Inverse Background Color, defaults to \code{secondary_color}} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}} | |||
| \item{inverse_text_shadow}{Enables Shadow on text of inverse slides, defaults to \code{FALSE}} | |||
| \item{inverse_header_color}{Inverse Header Color, defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}} | |||
| \item{title_slide_text_color}{Title Slide Text Color, defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}} | |||
| \item{title_slide_background_color}{Title Slide Background Color, defaults to \code{primary_color}} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL, defaults to NA} | |||
| \item{left_column_subtle_color}{Left Column Text (not last), defaults to \code{apply_alpha(primary_color, 0.6)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{primary_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{apply_alpha(secondary_color, 0.5)}} | |||
| \item{table_border_color}{Table top/bottom border, defaults to #666} | |||
| \item{table_row_border_color}{Table row inner bottom border, defaults to #ddd} | |||
| \item{table_row_even_background_color}{Table Even Row Background Color, defaults to \code{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)}} | |||
| \item{text_font_google}{Use \code{google_font()} to specify body font, defaults to \code{NULL}} | |||
| \item{text_font_family}{Body Text Font Family, defaults to 'Droid Serif'} | |||
| \item{text_font_weight}{Body Text Font Weight, defaults to normal} | |||
| \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, defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'} | |||
| \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, defaults to \code{NULL}} | |||
| \item{header_font_family}{Header Font Family, defaults to 'Yanone Kaffeesatz'} | |||
| \item{header_font_weight}{Header Font Weight, defaults to normal} | |||
| \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, defaults to \code{NULL}} | |||
| \item{code_font_family}{Code Font Family, defaults to 'Source Code Pro'} | |||
| \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, defaults to 'Lucida Console', Monaco} | |||
| \item{outfile}{Customized xaringan CSS output file name} | |||
| } | |||
| \description{ | |||
| An "inverted" default xaringan theme with a two colors used | |||
| for color accents on select elements (headers, bold text, etc.). | |||
| } | |||
| \seealso{ | |||
| Other Duotone themes: \code{\link{duo_accent}}, | |||
| \code{\link{duo}} | |||
| } | |||