Garrick Aden-Buie
27827fb149
Add &display=swap to google font urls
6 years ago
Garrick Aden-Buie
85d637bae3
Change default fonts to Cabin (heading) and Noto Sans (body)
Closes #28
6 years ago
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
6 years ago
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.
6 years ago
Garrick Aden-Buie
13821a7004
work around droid serif being de-listed from google fonts
See google/fonts issue number 1223
6 years ago
Garrick Aden-Buie
8085e7d078
exclude theme_settings.R from code coverage
6 years ago
Garrick Aden-Buie
59f585dcd0
Add tests for css-reading functions
6 years ago
Garrick Aden-Buie
357ed09734
remove pipe from find_xaringan_themer_css()
6 years ago
Garrick Aden-Buie
86f096b56c
Read and load css variables from xaringan css files
6 years ago
Garrick Aden-Buie
46643574e3
Store whether font is from google fonts in css vars
6 years ago
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.
6 years ago
Garrick Aden-Buie
a324320f80
revert styling mishaps in theme_settings.R
6 years ago
Garrick Aden-Buie
adc43779f9
More rcmd check fixes
* fix style of ggplot2, xaringan pkg refs
* fix name of theme_xaringan_restore_defaults()
6 years ago
Garrick Aden-Buie
6ddb81e9c1
Fix a few rcmd check issues
6 years ago
Garrick Aden-Buie
4d421ae106
Throw an error if c(font_string, google_font())
Closes #19
6 years ago
pat-s
ff4c364920
add append arg
6 years ago
Garrick Aden-Buie
dac3f90311
grkstyle
6 years ago
Garrick Aden-Buie
699d107292
mark ggplot2 themes and functions as experimental
6 years ago
Garrick Aden-Buie
d3d61afe3a
remove unused coolors-related functions
6 years ago
Garrick Aden-Buie
c4a10d6af5
Fix duplicated extra fonts in output from template
6 years ago
Garrick Aden-Buie
2f4b61bbb2
Fix issue with bare google_font() passed to extra_fonts
6 years ago
Garrick Aden-Buie
240178f53a
Fix issue with bare google_font() passed to extra_fonts
6 years ago
Garrick Aden-Buie
7202d2ab5a
Fixup scale_xaringan...()
7 years ago
Garrick Aden-Buie
f642e56e7a
Fix scale_xaringan_discrete()
7 years ago
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()
7 years ago
Garrick Aden-Buie
a1f275a638
Remove stringr dependency
7 years ago
Garrick Aden-Buie
9c9bdba7fe
note to self
7 years ago
Garrick Aden-Buie
9f00685e46
Tweak documentation of theme_xaringan_get_value()
...and renamed from get_xaringanthemer_value()
7 years ago
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
7 years ago
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
7 years ago
Garrick Aden-Buie
b0bce6e4f2
Add return values to ggplot2 theme docs
7 years ago
Garrick Aden-Buie
0d92aa75de
Fix duplicated "." in theme settings parameter descriptions
7 years ago
Garrick Aden-Buie
bfea283b54
Factor light-dark color test out of choose_dark_or_light()
7 years ago
Garrick Aden-Buie
5db3dce373
Add ggplot2 themes matching slide styles
7 years ago
Garrick Aden-Buie
e7a1bfb206
Change header_background_enable to header_background_auto for #10
7 years ago
Garrick Aden-Buie
0c7dd01291
Move theme generation helpers into package and add tests
7 years ago
Garrick Aden-Buie
d69a999e59
Fix typo with background_size_fallback
7 years ago
Garrick Aden-Buie
f3a6e7a9b7
Add header_background_enable and options for #10
7 years ago
Garrick Aden-Buie
356c6e5184
Include xaringanthemer package version in output header
7 years ago
Garrick Aden-Buie
e80c164657
Fix a couple minor issues with whisker template
7 years ago
Garrick Aden-Buie
bceb3d404e
Rewrite template in mustache and use whisker
Also allow NULL or NA for template arguments but change default to NULL
7 years ago
Garrick Aden-Buie
65624d823a
Fix #6 construct write_xaringan_theme using its argument names
8 years ago
Garrick Aden-Buie
d03897827d
Fix silly misteak
8 years ago
Garrick Aden-Buie
9215427281
Fix documentation issues
- google_font() not google_fonts()
- make ranges code to avoide link
8 years ago
Garrick Aden-Buie
a790290027
Fill in documentation for utils
8 years ago
Garrick Aden-Buie
7a4370a8bd
Add all theme functions to "themes" family
8 years ago
Garrick Aden-Buie
503c125301
Add slide background image and padding template variables
8 years ago
Garrick Aden-Buie
025a94c4a5
BREAKING - blockquote_left_border_color replaces blockquote_left_color
8 years ago
Garrick Aden-Buie
7a9b5b79b0
Use writeLines() instead of cat()
8 years ago
Garrick Aden-Buie
c6c9aec805
Use markdown instead of \code{} in params
8 years ago