-
Notifications
You must be signed in to change notification settings - Fork 177
globalStylesheets config option #1597
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
Conversation
|
Also tacked on an upgrade to Source Serif 4 that @Fil noticed… |
Fil
left a comment
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.
Yeah I think this is the right call 😅
|
I've added a bit of documentation |
|
Apologies for possibly naive question, but when creating a new framework with latest version, there is no indication in And does the above issue discussion imply that |
|
@shadoof here's a concrete example: in {
"style": "/assets/global.css",
"globalStylesheets": ["https://fonts.googleapis.com/css2?family=Kavoon&display=swap"]
}and in the global stylesheet ( :root {
--serif: "Kavoon";
}and this is the result:
|

Alternative to #1589 and #1595. Adds a globalStylesheets option to the config which specifies a set of stylesheets to add to all pages (in addition to the style option which can be specified either globally or on a specific page). By default it’s Source Serif
Pro4 from Google Fonts. Also adds a little heuristic to add the preconnect for Google Fonts if a Google Fonts stylesheet is detected. Related #423.