Garrick Aden-Buie
85d637bae3
Change default fonts to Cabin (heading) and Noto Sans (body)
Closes #28
před 6 roky
Garrick Aden-Buie
c538ce4d6c
Fix header_background template variables
header_background_padding is now learned from the slide padding so that left and right margins match
před 6 roky
Garrick Aden-Buie
85f512caa9
Add base_font_size and convert font sizes to rem
Now, font size is inherited from `base_font_size` which should be in absolute units.
před 6 roky
Garrick Aden-Buie
86f096b56c
Read and load css variables from xaringan css files
před 6 roky
Garrick Aden-Buie
e65d7b1dcf
Feature: custom color classes
Inspired by tachyons, easily add additional colors to slides using the `colors` argument. The argument takes a named list or vector and adds a CSS variable with the color name. Also added are .<color> and .bg-<name> classes.
před 6 roky
Garrick Aden-Buie
adc43779f9
More rcmd check fixes
* fix style of ggplot2, xaringan pkg refs
* fix name of theme_xaringan_restore_defaults()
před 6 roky
pat-s
ff4c364920
add append arg
před 6 roky
Garrick Aden-Buie
dac3f90311
grkstyle
před 6 roky
Garrick Aden-Buie
699d107292
mark ggplot2 themes and functions as experimental
před 6 roky
Garrick Aden-Buie
7202d2ab5a
Fixup scale_xaringan...()
před 7 roky
Garrick Aden-Buie
2c836ff3c5
WIP adding scale_xaringan...
not working because {colorspace} doesn't force evaluation of
input arguments to scale_color_xxx_xxx() before passing down
to sequential_hcl()
před 7 roky
Garrick Aden-Buie
9f00685e46
Tweak documentation of theme_xaringan_get_value()
...and renamed from get_xaringanthemer_value()
před 7 roky
Garrick Aden-Buie
9a9d4b79c4
Update theme_xaringan*() examples and safer sysfonts font adder
Seems Droid Serif is no longer "in" Google Fonts
Need to remove all the warnings from docs
před 7 roky
Garrick Aden-Buie
f67f42a5c8
Rename style functions to use style_ prefix
* e.g. style_duo() <- duo()
* style_xaringan <- write_xaringan_theme()
* style_extra_css <- write_extra_css()
* added NEWS entry
* updated docs and /docs
před 7 roky
Garrick Aden-Buie
b0bce6e4f2
Add return values to ggplot2 theme docs
před 7 roky
Garrick Aden-Buie
0d92aa75de
Fix duplicated "." in theme settings parameter descriptions
před 7 roky
Garrick Aden-Buie
bfea283b54
Factor light-dark color test out of choose_dark_or_light()
před 7 roky
Garrick Aden-Buie
5db3dce373
Add ggplot2 themes matching slide styles
před 7 roky
Garrick Aden-Buie
e7a1bfb206
Change header_background_enable to header_background_auto for #10
před 7 roky
Garrick Aden-Buie
f3a6e7a9b7
Add header_background_enable and options for #10
před 7 roky
Garrick Aden-Buie
356c6e5184
Include xaringanthemer package version in output header
před 7 roky
Garrick Aden-Buie
bceb3d404e
Rewrite template in mustache and use whisker
Also allow NULL or NA for template arguments but change default to NULL
před 7 roky
Garrick Aden-Buie
08d75c118b
Add tests for theme css output
před 7 roky
Garrick Aden-Buie
9215427281
Fix documentation issues
- google_font() not google_fonts()
- make ranges code to avoide link
před 8 roky
Garrick Aden-Buie
a790290027
Fill in documentation for utils
před 8 roky
Garrick Aden-Buie
7a4370a8bd
Add all theme functions to "themes" family
před 8 roky
Garrick Aden-Buie
503c125301
Add slide background image and padding template variables
před 8 roky
Garrick Aden-Buie
025a94c4a5
BREAKING - blockquote_left_border_color replaces blockquote_left_color
před 8 roky
Garrick Aden-Buie
c6c9aec805
Use markdown instead of \code{} in params
před 8 roky
Garrick Aden-Buie
75390330bd
Add affected CSS element to parameter description
před 8 roky
Garrick Aden-Buie
c8a3b12754
Fix text_size -> text_font_size
Add "Font" to documentation: "Text Font Size"
před 8 roky
Garrick Aden-Buie
db7f5dd977
Revert a25f7f32 - header text sizes in px
Header fonts are generally not the same font as text font, so linking the two requires tweaking other properties (padding, etc.) of the header.
před 8 roky
Garrick Aden-Buie
a25f7f3295
Set base size as text_size in px, rest in em
před 8 roky
Garrick Aden-Buie
d064318976
Add title_slide_background_color and title_slide_background_position
před 8 roky
Garrick Aden-Buie
bd5b5ae00c
Add extra_fonts paramater and template variable
před 8 roky
Garrick Aden-Buie
401b25f969
Rename font size arguments and make code font size relative
před 8 roky
Garrick Aden-Buie
b9c3a495c7
Roxygen templates don't do markdown: `` -> \code{}
před 8 roky
Garrick Aden-Buie
1372aa7a7e
Add write_extra_css and extra_css parameters
Also fixed an issue with `outfile` argument not getting passed back to write_xaringan_theme!
před 8 roky
Garrick Aden-Buie
57ab178af5
Rename CSS output file to xaringan-themer.css
před 8 roky
Garrick Aden-Buie
83da02301c
Move write_xaringan_theme to write_theme.R
před 8 roky
Garrick Aden-Buie
1b3560d203
Make devtools::check() happy with documentation for all the things
před 8 roky
Garrick Aden-Buie
504fcc60f3
Invert choice of slide highlights in duo_accent_inverse
před 8 roky
Garrick Aden-Buie
2bb0fd418a
Separate sizes for code inline and code blocks
před 8 roky
Garrick Aden-Buie
502459ef87
Change mono_accent default color to #43418A
před 8 roky
Garrick Aden-Buie
1d2efb4267
Fix NA values in solarized themes
před 8 roky
Garrick Aden-Buie
07b573ed50
Add text_size* template variables
před 8 roky
Garrick Aden-Buie
42da34c7c5
Add solarized dark and light themes
před 8 roky
Garrick Aden-Buie
0b97b55341
Add duotone themes
před 8 roky
Garrick Aden-Buie
b99959a33b
Add apply_alpha and choose_dark_or_light functions
před 8 roky
Garrick Aden-Buie
92bc56f9b2
Change mono_accent_inverse() default color
před 8 roky