Garrick Aden-Buie
021053a0ee
Check that hex colors only have hex characters
před 6 roky
Garrick Aden-Buie
c9f2cec8ca
add another google font theme test
před 6 roky
Garrick Aden-Buie
07213e8a5e
test google font overrides individual font
před 6 roky
Garrick Aden-Buie
4f73fe0f76
consolidate style_extra_css.R tests
před 6 roky
Garrick Aden-Buie
7311e72ad0
Add tests for unnamed elements in list2css()
před 6 roky
Garrick Aden-Buie
32af20667d
Fix style_extra_css, add heading arg, add tests
před 6 roky
Garrick Aden-Buie
0a7cf8014b
Add deprecation tests; fix write_extra_css() pass through
před 6 roky
Garrick Aden-Buie
4f5900cea8
Add base theme tests
před 6 roky
Garrick Aden-Buie
1295ede256
Add tests for scale_xaringan_* functions
před 6 roky
Garrick Aden-Buie
96e2f6472d
fix test description
před 6 roky
Garrick Aden-Buie
802c2a557f
More ggplot tests, store font_is_google in pkg env
před 6 roky
Garrick Aden-Buie
d1cefe7fc6
Use system font stack for fallbacks
před 6 roky
Garrick Aden-Buie
67bec0ba1f
Add tests for ggplot2 theme colors
před 6 roky
Garrick Aden-Buie
c544647c20
Add full_length_hex() because ggplot needs #123abc
před 6 roky
Garrick Aden-Buie
978d1ef9e5
output = NULL returns css and doesn't write file
style_* returns name of file invisibly
před 6 roky
Garrick Aden-Buie
4806fba416
Set default fonts via *_font_* instead of google_fonts
And add tests
před 6 roky
Garrick Aden-Buie
4e36e9ad18
Set height/width to 100% in .remark-slide-content
Fixes #24
před 6 roky
Garrick Aden-Buie
af15b74b8b
update function name in css help text header
před 6 roky
Garrick Aden-Buie
e6fa1328ee
only worry about spaces in google font family
před 6 roky
Garrick Aden-Buie
27827fb149
Add &display=swap to google font urls
před 6 roky
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
13821a7004
work around droid serif being de-listed from google fonts
See google/fonts issue number 1223
před 6 roky
Garrick Aden-Buie
315fe17983
Add test for print.google_font
před 6 roky
Garrick Aden-Buie
59f585dcd0
Add tests for css-reading functions
před 6 roky
Garrick Aden-Buie
86f096b56c
Read and load css variables from xaringan css files
před 6 roky
Garrick Aden-Buie
46643574e3
Store whether font is from google fonts in css vars
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
86a024a53f
Use CSS variables in themed CSS
před 6 roky
Garrick Aden-Buie
4d421ae106
Throw an error if c(font_string, google_font())
Closes #19
před 6 roky
Garrick Aden-Buie
dac3f90311
grkstyle
před 6 roky
Garrick Aden-Buie
d3d61afe3a
remove unused coolors-related functions
před 6 roky
Garrick Aden-Buie
2f4b61bbb2
Fix issue with bare google_font() passed to extra_fonts
před 6 roky
Garrick Aden-Buie
240178f53a
Fix issue with bare google_font() passed to extra_fonts
před 6 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
e7a1bfb206
Change header_background_enable to header_background_auto for #10
před 7 roky
Garrick Aden-Buie
0c7dd01291
Move theme generation helpers into package and add tests
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
e80c164657
Fix a couple minor issues with whisker template
před 7 roky
Garrick Aden-Buie
08d75c118b
Add tests for theme css output
před 7 roky
Garrick Aden-Buie
65624d823a
Fix #6 construct write_xaringan_theme using its argument names
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
316f2c32c2
Initial commit, MWP
- write_xaringan_theme works
- mono_* works
před 8 roky