Allows me to generate function signature and documentation automatically, so changes to master template_variables can propagate to wrapper functions. Also makes it easy to have all template parameters as explicit function arguments for awesome tab completion.tags/v0.1.1
| @@ -1,46 +1,44 @@ | |||
| #' Monotone Light Theme | |||
| #' | |||
| #' @param base_color Monotone Base Color, works best with a strong darkish color | |||
| #' @param white_color Color for "white". Monotone Light defaults to a very light | |||
| #' version of the `base_color` | |||
| #' @param black_color Color for "black". Monotone Light defaults to a dark, | |||
| #' nearly black version of the `base_color` | |||
| #' @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 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 | |||
| #' @export | |||
| mono_light <- function( | |||
| @@ -87,50 +85,49 @@ mono_light <- function( | |||
| ) { | |||
| eval(parse(text = call_write_xaringan_theme())) | |||
| } | |||
| # generator: setup_theme_function("mono_light", template_mono_light, TRUE, "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||
| #' Monotone Dark Theme | |||
| #' | |||
| #' @param base_color Monotone Base Color, works best with a light color. | |||
| #' @param white_color Color for "white". Monotone Light defaults to a very light | |||
| #' version of the `base_color` | |||
| #' @param black_color Color for "black". Monotone Light defaults to a dark, | |||
| #' nearly black version of the `base_color` | |||
| #' @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 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 | |||
| #' @export | |||
| mono_dark <- function( | |||
| @@ -177,55 +174,54 @@ mono_dark <- function( | |||
| ) { | |||
| eval(parse(text = call_write_xaringan_theme())) | |||
| } | |||
| # setup_theme_function("mono_dark", template_mono_dark, "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||
| #' Monotone Accent Theme | |||
| #' | |||
| #' @param base_color Monotone Base Color | |||
| #' @param white_color Color for "white". Monotone Light defaults to a very light | |||
| #' version of the `base_color` | |||
| #' @param black_color Color for "black". Monotone Light defaults to a dark, | |||
| #' nearly black version of the `base_color` | |||
| #' @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 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 | |||
| #' @export | |||
| mono_accent <- function( | |||
| base_color = "#23395b", | |||
| white_color = "#FFF", | |||
| white_color = "#FFFFFF", | |||
| black_color = "#272822", | |||
| text_color = black_color, | |||
| header_color = base_color, | |||
| @@ -267,55 +263,54 @@ mono_accent <- function( | |||
| ) { | |||
| eval(parse(text = call_write_xaringan_theme())) | |||
| } | |||
| # setup_theme_function("mono_accent", template_mono_accent, "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||
| #' Monotone Accent Inverse Theme | |||
| #' | |||
| #' @param base_color Monotone Base Color | |||
| #' @param white_color Color for "white". Monotone Light defaults to a very light | |||
| #' version of the `base_color` | |||
| #' @param black_color Color for "black". Monotone Light defaults to a dark, | |||
| #' nearly black version of the `base_color` | |||
| #' @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 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 | |||
| #' @export | |||
| mono_accent_inverse <- function( | |||
| base_color = "#cbf7ed", | |||
| white_color = "#FFF", | |||
| white_color = "#FFFFFF", | |||
| black_color = darken_color(base_color, 0.9), | |||
| text_color = white_color, | |||
| header_color = base_color, | |||
| @@ -357,3 +352,4 @@ mono_accent_inverse <- function( | |||
| ) { | |||
| eval(parse(text = call_write_xaringan_theme())) | |||
| } | |||
| # setup_theme_function("mono_accent_inverse", template_mono_accent_inverse, "#' @export", body = " eval(parse(text = call_write_xaringan_theme()))") | |||
| @@ -0,0 +1,35 @@ | |||
| #' @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 = ", "), | |||
| ")") | |||
| } | |||
| @@ -1,77 +1,3 @@ | |||
| template_variables <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "text_color", "#000", "body", "Text Color" | |||
| , "header_color", "#000", "h1, h2, h3", "Header Color" | |||
| , "background_color", "#FFF", ".remark-slide-content", "Slide Background Color" | |||
| , "link_color", "rgb(249, 38, 114)", "a, a > code", "Link Color" | |||
| , "text_bold_color", NA_character_, "strong", "Bold Text Color" | |||
| , "text_slide_number_color", "{inverse_background_color}", ".remark-slide-number", "Slide Number Color" | |||
| , "code_highlight_color", "#ffff88", ".remark-code-line-highlighted", "Code Line Highlight" | |||
| , "code_inline_color", "#000", ".remark-inline-code", "Inline Code Color" | |||
| , "code_inline_background_color", NA_character_, ".remark-inline-code", "Inline Code Background Color" | |||
| , "inverse_background_color", "#272822", ".inverse", "Inverse Background Color" | |||
| , "inverse_text_color", "#d6d6d6", ".inverse", "Inverse Text Color" | |||
| , "inverse_text_shadow", "{FALSE}", ".inverse", "Enables Shadow on text of inverse slides" | |||
| , "inverse_header_color", "#f3f3f3", ".inverse h1, .inverse h2, .inverse h3", "Inverse Header Color" | |||
| , "title_slide_text_color", "{inverse_text_color}", ".title-slide", "Title Slide Text Color" | |||
| , "title_slide_background_color", "{inverse_background_color}", ".title-slide", "Title Slide Background Color" | |||
| , "title_slide_background_image", NA_character_, ".title-slide", "Title Slide Background Image URL" | |||
| , "left_column_subtle_color", "#777", ".left-column", "Left Column Text (not last)" | |||
| , "left_column_selected_color", "#000", ".left-column h2:last-of-type, .left-column h3:last-child", "Left Column Current Selection" | |||
| , "blockquote_left_color", "lightgray", "blockquote", "Blockquote Left Border Color" | |||
| , "table_border_color", "#666", "table: border-top, border-bottom", "Table top/bottom border" | |||
| , "table_row_border_color", "#ddd", "table thead th: border-bottom", "Table row inner bottom border" | |||
| , "table_row_even_background_color", "#eee", "thead, tfoot, tr:nth-child(even)", "Table Even Row Background Color" | |||
| , "text_font_google", NULL, "body", "Use `google_font()` to specify body font" | |||
| , "text_font_family", "'Droid Serif'", "body", "Body Text Font Family" | |||
| , "text_font_weight", "normal", "body", "Body Text Font Weight" | |||
| , "text_font_url", "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", "@import url()", "Body Text Font URL(s)" | |||
| , "text_font_family_fallback", "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", "body", "Body Text Font Fallbacks" | |||
| , "text_font_base", "serif", "body", "Body Text Base Font (Total Failure Fallback)" | |||
| , "header_font_google", NULL, "body", "Use `google_font()` to specify header font" | |||
| , "header_font_family", "'Yanone Kaffeesatz'", "h1, h2, h3", "Header Font Family" | |||
| , "header_font_weight", "normal", "h1, h2, h3", "Header Font Weight" | |||
| , "header_font_url", "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", "@import url", "Header Font URL" | |||
| , "code_font_google", NULL, "body", "Use `google_font()` to specify code font" | |||
| , "code_font_family", "'Source Code Pro'", ".remark-code, .remark-inline-code", "Code Font Family" | |||
| , "code_font_url", "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", "@import url", "Code Font URL" | |||
| , "code_font_family_fallback", "'Lucida Console', Monaco", ".remark-code, .remark-inline-code", "Code Font Fallback" | |||
| ) | |||
| #' @keywords internal | |||
| setup_theme_function <- function( | |||
| f_name = "write_xaringan_theme", | |||
| to_clipboard = TRUE, | |||
| ... | |||
| ) { | |||
| `%,%` <- function(x, y) c(x, y) | |||
| null_default <- purrr::map_lgl(template_variables$default, is.null) | |||
| tv <- xaringanthemer::template_variables | |||
| tv[null_default, 'default'] <- "{NULL}" | |||
| x <- | |||
| as.character( | |||
| glue::glue_data(tv, | |||
| "#' @param {variable} {description}")) %,% | |||
| "#' @param outfile Customized xaringan CSS output file name" %,% | |||
| c(...) %,% | |||
| 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\"" %,% | |||
| ") {" | |||
| cat(x, sep = "\n", | |||
| file = if(to_clipboard) pipe("pbcopy", "w") else "") | |||
| if (to_clipboard) message("Wrote function signature to clipboard.") | |||
| } | |||
| #' @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 | |||
| @@ -0,0 +1,143 @@ | |||
| template_variables <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "text_color", "#000", "body", "Text Color" | |||
| , "header_color", "#000", "h1, h2, h3", "Header Color" | |||
| , "background_color", "#FFF", ".remark-slide-content", "Slide Background Color" | |||
| , "link_color", "rgb(249, 38, 114)", "a, a > code", "Link Color" | |||
| , "text_bold_color", NA_character_, "strong", "Bold Text Color" | |||
| , "text_slide_number_color", "{inverse_background_color}", ".remark-slide-number", "Slide Number Color" | |||
| , "code_highlight_color", "#ffff88", ".remark-code-line-highlighted", "Code Line Highlight" | |||
| , "code_inline_color", "#000", ".remark-inline-code", "Inline Code Color" | |||
| , "code_inline_background_color", NA_character_, ".remark-inline-code", "Inline Code Background Color" | |||
| , "inverse_background_color", "#272822", ".inverse", "Inverse Background Color" | |||
| , "inverse_text_color", "#d6d6d6", ".inverse", "Inverse Text Color" | |||
| , "inverse_text_shadow", "{FALSE}", ".inverse", "Enables Shadow on text of inverse slides" | |||
| , "inverse_header_color", "#f3f3f3", ".inverse h1, .inverse h2, .inverse h3", "Inverse Header Color" | |||
| , "title_slide_text_color", "{inverse_text_color}", ".title-slide", "Title Slide Text Color" | |||
| , "title_slide_background_color", "{inverse_background_color}", ".title-slide", "Title Slide Background Color" | |||
| , "title_slide_background_image", NA_character_, ".title-slide", "Title Slide Background Image URL" | |||
| , "left_column_subtle_color", "#777", ".left-column", "Left Column Text (not last)" | |||
| , "left_column_selected_color", "#000", ".left-column h2:last-of-type, .left-column h3:last-child", "Left Column Current Selection" | |||
| , "blockquote_left_color", "lightgray", "blockquote", "Blockquote Left Border Color" | |||
| , "table_border_color", "#666", "table: border-top, border-bottom", "Table top/bottom border" | |||
| , "table_row_border_color", "#ddd", "table thead th: border-bottom", "Table row inner bottom border" | |||
| , "table_row_even_background_color", "#eee", "thead, tfoot, tr:nth-child(even)", "Table Even Row Background Color" | |||
| , "text_font_google", NULL, "body", "Use `google_font()` to specify body font" | |||
| , "text_font_family", "'Droid Serif'", "body", "Body Text Font Family" | |||
| , "text_font_weight", "normal", "body", "Body Text Font Weight" | |||
| , "text_font_url", "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", "@import url()", "Body Text Font URL(s)" | |||
| , "text_font_family_fallback", "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", "body", "Body Text Font Fallbacks" | |||
| , "text_font_base", "serif", "body", "Body Text Base Font (Total Failure Fallback)" | |||
| , "header_font_google", NULL, "body", "Use `google_font()` to specify header font" | |||
| , "header_font_family", "'Yanone Kaffeesatz'", "h1, h2, h3", "Header Font Family" | |||
| , "header_font_weight", "normal", "h1, h2, h3", "Header Font Weight" | |||
| , "header_font_url", "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", "@import url", "Header Font URL" | |||
| , "code_font_google", NULL, "body", "Use `google_font()` to specify code font" | |||
| , "code_font_family", "'Source Code Pro'", ".remark-code, .remark-inline-code", "Code Font Family" | |||
| , "code_font_url", "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", "@import url", "Code Font URL" | |||
| , "code_font_family_fallback", "'Lucida Console', Monaco", ".remark-code, .remark-inline-code", "Code Font Fallback" | |||
| ) | |||
| set_default <- function(tv, ...) { | |||
| vars <- c(...) | |||
| for (var in names(vars)) { | |||
| tv[tv$variable == var, 'default'] <- vars[var] | |||
| } | |||
| tv | |||
| } | |||
| template_mono_light <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "base_color", "#23395b", "multiple", "Monotone base color, works best with a strong color" | |||
| , "white_color", "{lighten_color(base_color, 0.9)}", "multiple", "Brightest color used, default is a very light version of `base_color`" | |||
| , "black_color", "{darken_color(base_color, 0.3)}", "multiple", "Darkest color used, default is a very dark, version of `base_color`" | |||
| ) | |||
| template_mono_light <- do.call('rbind', list(template_mono_light, template_variables)) | |||
| template_mono_light <- set_default( | |||
| template_mono_light, | |||
| 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_inline_color = "{base_color}", | |||
| inverse_background_color = "{base_color}", | |||
| inverse_text_color = "{white_color}", | |||
| inverse_header_color = "{white_color}", | |||
| 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_row_even_background_color = "{lighten_color(base_color, 0.8)}") | |||
| template_mono_dark <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "base_color", "#cbf7ed", "multiple", "Monotone Base Color, works best with a light color." | |||
| , "white_color", "{lighten_color(base_color, 0.8)}", "multiple", "Brightest color used, default is a very light version of `base_color`" | |||
| , "black_color", "{darken_color(base_color, 0.85)}", "multiple", "Darkest color used, default is a very dark, version of `base_color`" | |||
| ) | |||
| template_mono_dark <- do.call('rbind', list(template_mono_dark, template_variables)) | |||
| template_mono_dark <- set_default( | |||
| template_mono_dark, | |||
| 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_inline_color = "{base_color}", | |||
| inverse_background_color = "{base_color}", | |||
| inverse_text_color = "{black_color}", | |||
| inverse_header_color = "{black_color}", | |||
| 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_row_even_background_color = "{darken_color(base_color, 0.7)}") | |||
| template_mono_accent <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "base_color", "#23395b", "multiple", "Monotone Base Color, works best with a strong color." | |||
| , "white_color", "#FFFFFF", "multiple", "Brightest color used" | |||
| , "black_color", "#272822", "multiple", "Darkest color used" | |||
| ) | |||
| template_mono_accent <- do.call('rbind', list(template_mono_accent, template_variables)) | |||
| template_mono_accent <- set_default( | |||
| template_mono_accent, | |||
| 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_inline_color = "{base_color}", | |||
| inverse_background_color = "{base_color}", | |||
| inverse_text_color = "{white_color}", | |||
| inverse_header_color = "{white_color}", | |||
| 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_row_even_background_color = "{lighten_color(base_color, 0.7)}") | |||
| template_mono_accent_inverse <- tibble::tribble( | |||
| ~ variable, ~ default, ~ element, ~ description | |||
| , "base_color", "#cbf7ed", "multiple", "Monotone Base Color, works best with a light color." | |||
| , "white_color", "#FFFFFF", "multiple", "Brightest color used, default is a very light version of `base_color`" | |||
| , "black_color", "{darken_color(base_color, 0.9)}", "multiple", "Darkest color used, default is a very dark, version of `base_color`" | |||
| ) | |||
| template_mono_accent_inverse <- do.call('rbind', list(template_mono_accent_inverse, template_variables)) | |||
| template_mono_accent_inverse <- set_default( | |||
| template_mono_accent_inverse, | |||
| 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_inline_color = "{base_color}", | |||
| inverse_background_color = "{base_color}", | |||
| inverse_text_color = "{black_color}", | |||
| inverse_header_color = "{black_color}", | |||
| 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_row_even_background_color = "{darken_color(base_color, 0.7)}") | |||
| @@ -4,7 +4,7 @@ | |||
| \alias{mono_accent} | |||
| \title{Monotone Accent Theme} | |||
| \usage{ | |||
| mono_accent(base_color = "#23395b", white_color = "#FFF", | |||
| mono_accent(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, | |||
| @@ -33,85 +33,83 @@ mono_accent(base_color = "#23395b", white_color = "#FFF", | |||
| outfile = "xaringan-themed.css") | |||
| } | |||
| \arguments{ | |||
| \item{base_color}{Monotone Base Color} | |||
| \item{base_color}{Monotone Base Color, works best with a strong color., defaults to #23395b} | |||
| \item{white_color}{Color for "white". Monotone Light defaults to a very light | |||
| version of the \code{base_color}} | |||
| \item{white_color}{Brightest color used, defaults to #FFFFFF} | |||
| \item{black_color}{Color for "black". Monotone Light defaults to a dark, | |||
| nearly black version of the \code{base_color}} | |||
| \item{black_color}{Darkest color used, defaults to #272822} | |||
| \item{text_color}{Text Color} | |||
| \item{text_color}{Text Color, defaults to \code{black_color}} | |||
| \item{header_color}{Header Color} | |||
| \item{header_color}{Header Color, defaults to \code{base_color}} | |||
| \item{background_color}{Slide Background Color} | |||
| \item{background_color}{Slide Background Color, defaults to \code{white_color}} | |||
| \item{link_color}{Link Color} | |||
| \item{link_color}{Link Color, defaults to \code{base_color}} | |||
| \item{text_bold_color}{Bold Text Color} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{base_color}} | |||
| \item{text_slide_number_color}{Slide Number Color} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | |||
| \item{code_highlight_color}{Code Line Highlight} | |||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||
| \item{code_inline_color}{Inline Code Color} | |||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | |||
| \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 \code{base_color}} | |||
| \item{inverse_text_color}{Inverse Text Color} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{white_color}} | |||
| \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 \code{white_color}} | |||
| \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 \code{lighten_color(base_color, 0.5)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{base_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{lighten_color(base_color, 0.5)}} | |||
| \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 \code{lighten_color(base_color, 0.7)}} | |||
| \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} | |||
| } | |||
| @@ -4,7 +4,7 @@ | |||
| \alias{mono_accent_inverse} | |||
| \title{Monotone Accent Inverse Theme} | |||
| \usage{ | |||
| mono_accent_inverse(base_color = "#cbf7ed", white_color = "#FFF", | |||
| mono_accent_inverse(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, | |||
| @@ -33,85 +33,83 @@ mono_accent_inverse(base_color = "#cbf7ed", white_color = "#FFF", | |||
| outfile = "xaringan-themed.css") | |||
| } | |||
| \arguments{ | |||
| \item{base_color}{Monotone Base Color} | |||
| \item{base_color}{Monotone Base Color, works best with a light color., defaults to #cbf7ed} | |||
| \item{white_color}{Color for "white". Monotone Light defaults to a very light | |||
| version of the \code{base_color}} | |||
| \item{white_color}{Brightest color used, default is a very light version of \code{base_color}, defaults to #FFFFFF} | |||
| \item{black_color}{Color for "black". Monotone Light defaults to a dark, | |||
| nearly black version of the \code{base_color}} | |||
| \item{black_color}{Darkest color used, default is a very dark, version of \code{base_color}, defaults to \code{darken_color(base_color, 0.9)}} | |||
| \item{text_color}{Text Color} | |||
| \item{text_color}{Text Color, defaults to \code{white_color}} | |||
| \item{header_color}{Header Color} | |||
| \item{header_color}{Header Color, defaults to \code{base_color}} | |||
| \item{background_color}{Slide Background Color} | |||
| \item{background_color}{Slide Background Color, defaults to \code{black_color}} | |||
| \item{link_color}{Link Color} | |||
| \item{link_color}{Link Color, defaults to \code{base_color}} | |||
| \item{text_bold_color}{Bold Text Color} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{base_color}} | |||
| \item{text_slide_number_color}{Slide Number Color} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | |||
| \item{code_highlight_color}{Code Line Highlight} | |||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||
| \item{code_inline_color}{Inline Code Color} | |||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | |||
| \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 \code{base_color}} | |||
| \item{inverse_text_color}{Inverse Text Color} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{black_color}} | |||
| \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 \code{black_color}} | |||
| \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 \code{darken_color(base_color, 0.5)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{base_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{darken_color(base_color, 0.5)}} | |||
| \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 \code{darken_color(base_color, 0.7)}} | |||
| \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} | |||
| } | |||
| @@ -34,85 +34,83 @@ mono_dark(base_color = "#cbf7ed", white_color = lighten_color(base_color, | |||
| outfile = "xaringan-themed.css") | |||
| } | |||
| \arguments{ | |||
| \item{base_color}{Monotone Base Color, works best with a light color.} | |||
| \item{base_color}{Monotone Base Color, works best with a light color., defaults to #cbf7ed} | |||
| \item{white_color}{Color for "white". Monotone Light defaults to a very light | |||
| version of the \code{base_color}} | |||
| \item{white_color}{Brightest color used, default is a very light version of \code{base_color}, defaults to \code{lighten_color(base_color, 0.8)}} | |||
| \item{black_color}{Color for "black". Monotone Light defaults to a dark, | |||
| nearly black version of the \code{base_color}} | |||
| \item{black_color}{Darkest color used, default is a very dark, version of \code{base_color}, defaults to \code{darken_color(base_color, 0.85)}} | |||
| \item{text_color}{Text Color} | |||
| \item{text_color}{Text Color, defaults to \code{white_color}} | |||
| \item{header_color}{Header Color} | |||
| \item{header_color}{Header Color, defaults to \code{base_color}} | |||
| \item{background_color}{Slide Background Color} | |||
| \item{background_color}{Slide Background Color, defaults to \code{black_color}} | |||
| \item{link_color}{Link Color} | |||
| \item{link_color}{Link Color, defaults to \code{base_color}} | |||
| \item{text_bold_color}{Bold Text Color} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{base_color}} | |||
| \item{text_slide_number_color}{Slide Number Color} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | |||
| \item{code_highlight_color}{Code Line Highlight} | |||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||
| \item{code_inline_color}{Inline Code Color} | |||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | |||
| \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 \code{base_color}} | |||
| \item{inverse_text_color}{Inverse Text Color} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{black_color}} | |||
| \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 \code{black_color}} | |||
| \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 \code{darken_color(base_color, 0.5)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{base_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{darken_color(base_color, 0.5)}} | |||
| \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 \code{darken_color(base_color, 0.7)}} | |||
| \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} | |||
| } | |||
| @@ -34,85 +34,83 @@ mono_light(base_color = "#23395b", white_color = lighten_color(base_color, | |||
| outfile = "xaringan-themed.css") | |||
| } | |||
| \arguments{ | |||
| \item{base_color}{Monotone Base Color, works best with a strong darkish color} | |||
| \item{base_color}{Monotone base color, works best with a strong color, defaults to #23395b} | |||
| \item{white_color}{Color for "white". Monotone Light defaults to a very light | |||
| version of the \code{base_color}} | |||
| \item{white_color}{Brightest color used, default is a very light version of \code{base_color}, defaults to \code{lighten_color(base_color, 0.9)}} | |||
| \item{black_color}{Color for "black". Monotone Light defaults to a dark, | |||
| nearly black version of the \code{base_color}} | |||
| \item{black_color}{Darkest color used, default is a very dark, version of \code{base_color}, defaults to \code{darken_color(base_color, 0.3)}} | |||
| \item{text_color}{Text Color} | |||
| \item{text_color}{Text Color, defaults to \code{black_color}} | |||
| \item{header_color}{Header Color} | |||
| \item{header_color}{Header Color, defaults to \code{base_color}} | |||
| \item{background_color}{Slide Background Color} | |||
| \item{background_color}{Slide Background Color, defaults to \code{white_color}} | |||
| \item{link_color}{Link Color} | |||
| \item{link_color}{Link Color, defaults to \code{base_color}} | |||
| \item{text_bold_color}{Bold Text Color} | |||
| \item{text_bold_color}{Bold Text Color, defaults to \code{base_color}} | |||
| \item{text_slide_number_color}{Slide Number Color} | |||
| \item{text_slide_number_color}{Slide Number Color, defaults to \code{base_color}} | |||
| \item{code_highlight_color}{Code Line Highlight} | |||
| \item{code_highlight_color}{Code Line Highlight, defaults to #ffff88} | |||
| \item{code_inline_color}{Inline Code Color} | |||
| \item{code_inline_color}{Inline Code Color, defaults to \code{base_color}} | |||
| \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 \code{base_color}} | |||
| \item{inverse_text_color}{Inverse Text Color} | |||
| \item{inverse_text_color}{Inverse Text Color, defaults to \code{white_color}} | |||
| \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 \code{white_color}} | |||
| \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 \code{lighten_color(base_color, 0.5)}} | |||
| \item{left_column_selected_color}{Left Column Current Selection} | |||
| \item{left_column_selected_color}{Left Column Current Selection, defaults to \code{base_color}} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color} | |||
| \item{blockquote_left_color}{Blockquote Left Border Color, defaults to \code{lighten_color(base_color, 0.5)}} | |||
| \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 \code{lighten_color(base_color, 0.8)}} | |||
| \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} | |||
| } | |||