-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Global stylesheets (during create-svelte
depending on the chosen CSS preprocessor)
#726
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sveltejs/kit/BozB7StMKLNbvcgpk7pooK73dxQd [Deployment for 01c2a4e canceled] |
With the I'm not strongly attached to this path setup, so if we'd rather, for instance, do |
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 like that setup! I think it's well put within src
, things within $lib
feel more like reusable pieces to me.
…ng on the chosen CSS preprocessor"
So this is available on every page, but does not use I wonder if we should call it |
Right.
Here's a thought process:
I'm not particularly against the rename (without relocation) though. |
Oh, I like |
Most recent commit switches to |
Kinda makes sense - the only thing that makes it "global" is being imported in |
I like |
It's good that you bring that up because one hesitation I have with |
If we want it to be less "can infer meaning from the name" we could just call it |
It is slightly weird but not so much that I think it's a bad idea. I like this |
Before submitting the PR, please make sure you do the following
:root
font family declarations would be active on other pages navigated to from index that would then disappear on refresh. (This is a known issue from Sapper days so I won't elaborate more on it).create-svelte
. I tested the changes locally for all 3 languages.Tests
pnpm test
and lint the project withpnpm lint
Changesets
pnpx changeset
and following the prompts