-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add fonts for new builtin Shiny theme preset #638
Conversation
@@ -0,0 +1,31 @@ | |||
/*-- scss:rules --*/ | |||
$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Source+Code+Pro:ital,wght@0,400;0,600;1,400;1,600&display=swap" !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gregswinehart Do you think we could cut back these font weights a little bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we could if it's a thing. That said, I would probably only lose the 800 weight? I like to celebrate the whole catalog....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Greg. I'm going to leave this as is for now and will review again with Carson this week.
Closes #630 and adds the desired font stack for the new Shiny theme, namely Open Sans and Source Code Pro.
This PR updates the
tools/download_bootswatch_fonts.R
script to also download fonts for builtin presets. This necessitated a few changes:tools/download_bootswatch_fonts.R
is nowtools/download_preset_fonts.R
_bootswatch.scss
or_rules.scss
files (in that order)inst/bs{version}/{name}/
_variables.scss
and_rules.scss
.From what I can tell, these new fonts add ~600KB to the package bundle. We may want to cut back on font weights or figure out how to reduce the package bundle size, but I'm also okay waiting for on that for another PR.