Garrick Aden-Buie
2041a263f7
Remove duplicated chunk in rmarkdown template
hace 6 aƱos
Garrick Aden-Buie
78d38c2400
Add xaringanthemer_font_default()
Avoids note for long argument length and allows for more consistent checking if supplied arguments are default values
hace 6 aƱos
Garrick Aden-Buie
e883552cd2
Document the CSS property accepted by the various arguments
Closes #33
hace 6 aƱos
Garrick Aden-Buie
2a4670d9b1
tweak title in xaringanthemer skeleton
hace 6 aƱos
Garrick Aden-Buie
2a4348e87c
Create colors based on style starter colors
E.g. primary_color and secondary_color in style_duo() become --primary and --secondary
hace 6 aƱos
Garrick Aden-Buie
efe6ec9713
Add section on usage to all style functions
hace 6 aƱos
Garrick Aden-Buie
2db8633282
clean up setup_theme_function()
hace 6 aƱos
Garrick Aden-Buie
6509095af2
Document CSS variables
hace 6 aƱos
Garrick Aden-Buie
7d8a000dc6
Move template_variables into internal data, created via script in data-raw/
hace 6 aƱos
Garrick Aden-Buie
763e4dcefd
Reflow roxygen tags in style_* functions
hace 6 aƱos
Garrick Aden-Buie
bf6004b283
Update rmarkdown skeleton with style_* syntax
hace 6 aƱos
Garrick Aden-Buie
802c2a557f
More ggplot tests, store font_is_google in pkg env
hace 6 aƱos
Garrick Aden-Buie
e4dd983e24
Move extra param documentation to man-roxygen/theme_params.R
hace 6 aƱos
Garrick Aden-Buie
978d1ef9e5
output = NULL returns css and doesn't write file
style_* returns name of file invisibly
hace 6 aƱos
Garrick Aden-Buie
4806fba416
Set default fonts via *_font_* instead of google_fonts
And add tests
hace 6 aƱos
Garrick Aden-Buie
4e36e9ad18
Set height/width to 100% in .remark-slide-content
Fixes #24
hace 6 aƱos
Garrick Aden-Buie
af15b74b8b
update function name in css help text header
hace 6 aƱos
Garrick Aden-Buie
e6fa1328ee
only worry about spaces in google font family
hace 6 aƱos
Garrick Aden-Buie
27827fb149
Add &display=swap to google font urls
hace 6 aƱos
Garrick Aden-Buie
85d637bae3
Change default fonts to Cabin (heading) and Noto Sans (body)
Closes #28
hace 6 aƱos
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
hace 6 aƱos
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.
hace 6 aƱos
Garrick Aden-Buie
46643574e3
Store whether font is from google fonts in css vars
hace 6 aƱos
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.
hace 6 aƱos
Garrick Aden-Buie
86a024a53f
Use CSS variables in themed CSS
hace 6 aƱos
Garrick Aden-Buie
dac3f90311
grkstyle
hace 6 aƱos
Garrick Aden-Buie
c4a10d6af5
Fix duplicated extra fonts in output from template
hace 6 aƱos
Garrick Aden-Buie
a1f275a638
Remove stringr dependency
hace 7 aƱos
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
hace 7 aƱos
Garrick Aden-Buie
5db3dce373
Add ggplot2 themes matching slide styles
hace 7 aƱos
Garrick Aden-Buie
e7a1bfb206
Change header_background_enable to header_background_auto for #10
hace 7 aƱos
Garrick Aden-Buie
0c7dd01291
Move theme generation helpers into package and add tests
hace 7 aƱos
Garrick Aden-Buie
d69a999e59
Fix typo with background_size_fallback
hace 7 aƱos
Garrick Aden-Buie
f3a6e7a9b7
Add header_background_enable and options for #10
hace 7 aƱos
Garrick Aden-Buie
356c6e5184
Include xaringanthemer package version in output header
hace 7 aƱos
Garrick Aden-Buie
ac49deea9f
sensible default for body param in setup_theme_function()
hace 7 aƱos
Garrick Aden-Buie
8c05d67c50
minor refactor of theme generation function
hace 7 aƱos
Garrick Aden-Buie
e80c164657
Fix a couple minor issues with whisker template
hace 7 aƱos
Garrick Aden-Buie
bceb3d404e
Rewrite template in mustache and use whisker
Also allow NULL or NA for template arguments but change default to NULL
hace 7 aƱos
Garrick Aden-Buie
5cc6f7eacc
Fix #5 replace text-side with font-size in css template
hace 8 aƱos
Garrick Aden-Buie
455579c25c
Fix #4 Update css template
Avoids table css being applied to help text overlay
hace 8 aƱos
Garrick Aden-Buie
4f879154ec
Recommend xaringan-themer chunk instead of setup
hace 8 aƱos
Garrick Aden-Buie
7a4370a8bd
Add all theme functions to "themes" family
hace 8 aƱos
Garrick Aden-Buie
503c125301
Add slide background image and padding template variables
hace 8 aƱos
Garrick Aden-Buie
025a94c4a5
BREAKING - blockquote_left_border_color replaces blockquote_left_color
hace 8 aƱos
Garrick Aden-Buie
862f265285
Add header to xaringan-themer.css file
hace 8 aƱos
Garrick Aden-Buie
7a9b5b79b0
Use writeLines() instead of cat()
hace 8 aƱos
Garrick Aden-Buie
75390330bd
Add affected CSS element to parameter description
hace 8 aƱos
Garrick Aden-Buie
3bef06b3be
Add footnote theme parameters
- Also reorder code params
hace 8 aƱos
Garrick Aden-Buie
c8a3b12754
Fix text_size -> text_font_size
Add "Font" to documentation: "Text Font Size"
hace 8 aƱos