Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A function to tweak minor detail of other themes #13

Open
gadenbuie opened this issue Mar 9, 2019 · 0 comments
Open

A function to tweak minor detail of other themes #13

gadenbuie opened this issue Mar 9, 2019 · 0 comments
Labels
priority: low Low priority status: considering Considering if/how this should be implemented type: new New feature or enhancement

Comments

@gadenbuie
Copy link
Owner

Currently, xaringanthemer writes a complete version of the default xaringan theme, but it occurred to me that, now that there are more user-contributed themes available, users may want to modify or tweak a small portion of another theme. For example, a user may want to use the metropolis theme but change font sizes or colors.

I could provide a function, e.g. modify_theme(), that writes inline CSS into the slide deck to modify small aspects of the remark theme. For example, changing the header font size might be done with

```{r echo=FALSE}
xaringanthemer::modify_theme(header_h1_font_size = "24px")
```

<style>
.remark-slide-content h1 {
  font-size: 24px;
}
</style>

Technically speaking this may be easier to do now that I rewrote the template in mustache.

If you're interesting in this feature, an thumbs up on this issue will be very motivating! 😉

@gadenbuie gadenbuie added priority: low Low priority status: considering Considering if/how this should be implemented type: new New feature or enhancement labels Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Low priority status: considering Considering if/how this should be implemented type: new New feature or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant