Garrick Aden-Buie
66852c14e0
fix whitespace
4 lat temu
jdlom
c606bdf7c9
change regex pattern to match valid css class names ( #69 )
* The style functions are now more permissive about color names in the `color` argument. Color names should be valid CSS classes that can also be used as CSS variable names, but the `style_` function only stops with an error if the color name contains spaces. (@jdlom #69 )
4 lat temu
Garrick Aden-Buie
b271eaccb7
Set global or chunk fig.showtext = FALSE to keep from setting this option on load
For #36
5 lat temu
Garrick Aden-Buie
ddcbccf55c
Don't set `fig.showtext` if it's already set to `FALSE`
Fixes #36
5 lat temu
Garrick Aden-Buie
ea5d1de808
Add `link_decoration` parameter to style functions ( #57 )
5 lat temu
Garrick Aden-Buie
b9bea9db0d
Detect presence of {showtext} as default of `use_showtext` ( #56 )
Updates color examples and adds left-column headings demo to skeleton
5 lat temu
Garrick Aden-Buie
bdde9ca706
Set slide number font size in rem ( #54 )
Fixes #53
5 lat temu
Garrick Aden-Buie
ff02422e23
Add text_bold_font_weight argument and css rule
Fixes #50
5 lat temu
Garrick Aden-Buie
dd57776684
v0.3.3
5 lat temu
Garrick Aden-Buie
2c068446e6
feat: Add header_font_family_fallback
Fixes #41
5 lat temu
Garrick Aden-Buie
8a8ebd5e41
feat: Add inverse_link_color to styles
Fixes #44
5 lat temu
Frie
76a5889a3c
Fix small typo in roxygen for google_font
Just a very small typo I stumbled upon while reading the help. :)
6 lat temu
Garrick Aden-Buie
e5ecb0eca9
Fix #34
6 lat temu
Garrick Aden-Buie
7a5472a9ae
Add missing Rd tags, namely value/@eturn
6 lat temu
Garrick Aden-Buie
21c6d0e83f
Ask before downloading "Droid Serif" to a temporary file
6 lat temu
Garrick Aden-Buie
fa8dd3813c
Guarantee that missing values are assigned in the function environment only
6 lat temu
Garrick Aden-Buie
9e27e3522a
spellcheck
6 lat temu
Garrick Aden-Buie
d1d3042906
Link to ggplot2-themes vignette in various places
6 lat temu
Garrick Aden-Buie
f7284abf41
Change formatting of colorspace function links in roxygen
6 lat temu
Garrick Aden-Buie
34bf66dbca
Warn if colors used by theme_xaringan() are not in hex format
6 lat temu
Garrick Aden-Buie
1749347745
Add check_color_is_hex()
6 lat temu
Garrick Aden-Buie
b68578bb62
rethinking check
6 lat temu
Garrick Aden-Buie
74c4927910
no rlang, use base warning
6 lat temu
Garrick Aden-Buie
55fe9084c5
theme_xaringan() and friends accept google_fonts()s for font arguments
6 lat temu
Garrick Aden-Buie
d8ec41f343
Ensure that text_font reaches theme_xaringan_set_defaults() when set_ggplot_defaults == TRUE
6 lat temu
Garrick Aden-Buie
fc1b0610f3
suppress partial match warning from colorspace::sequential_hcl()
6 lat temu
Garrick Aden-Buie
83ce9ee013
Change default colors of style_duo_accent() and ...inverse()
6 lat temu
Garrick Aden-Buie
c086ba95d8
Set plot title position to "plot" for ggplot2 >= 3.3.0
6 lat temu
Garrick Aden-Buie
cc3471131f
Documentation improvements
- Move long intro to pkgdown
- README is now much shorter
- Rename pkgdown "Get Started" to "Features"
- Add ggplot theme to quick intro
- Add pkgdown docs link to description
6 lat temu
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
6 lat temu
Garrick Aden-Buie
8f57771d4e
Fix extra css heading so only added once
6 lat temu
Garrick Aden-Buie
e883552cd2
Document the CSS property accepted by the various arguments
Closes #33
6 lat temu
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
6 lat temu
Garrick Aden-Buie
5e55c5646c
Add examples to color functions
6 lat temu
Garrick Aden-Buie
efe6ec9713
Add section on usage to all style functions
6 lat temu
Garrick Aden-Buie
254bb0802c
Fix description of css variables in argument documentation
6 lat temu
Garrick Aden-Buie
6509095af2
Document CSS variables
6 lat temu
Garrick Aden-Buie
7d8a000dc6
Move template_variables into internal data, created via script in data-raw/
6 lat temu
Garrick Aden-Buie
be295b4e31
Fix issue with tibble 3.0.0
Closes #32
6 lat temu
Garrick Aden-Buie
139fc4b6a2
more informative error messages when using non-hex CSS colors
6 lat temu
Garrick Aden-Buie
763e4dcefd
Reflow roxygen tags in style_* functions
6 lat temu
Garrick Aden-Buie
dd7eef0249
Update element description when modifying multiple rules
6 lat temu
Garrick Aden-Buie
aa7413b19d
Add missing theme declaration to scales examples
6 lat temu
Garrick Aden-Buie
899bb02f83
Add examples for scale_xaringan* functions
6 lat temu
Garrick Aden-Buie
3d8723e55f
ggplot2 theme features are maturing
6 lat temu
Garrick Aden-Buie
9fefdf5814
Don't rely on dot passing for theme_xarinan* functions
6 lat temu
Garrick Aden-Buie
85cd8124db
Add use_showtext option to theme_xaringan_base()
Fixes #31
6 lat temu
Garrick Aden-Buie
e482243b09
wrap long error messages elsewhere in pkg
6 lat temu
Garrick Aden-Buie
77271b9634
Fix function name used in errors in register_font() and get_theme_font()
6 lat temu
Garrick Aden-Buie
1e6e51422c
Set fig.showtext chunk option on package load and error loudly if fig.showtext = FALSE for a chunk with theme_xaringan()
6 lat temu