Closed Lakelimbo closed 4 weeks ago
Latest commit: 5f2c109a7e57ce8b1cc1319daa6d0f9335af51de
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Name | Status | Preview | Last Commit |
---|---|---|---|
shadcn-svelte | ✅ Ready (View Log) | Visit Preview | 5f2c109a7e57ce8b1cc1319daa6d0f9335af51de |
thank you!
Thank you very much for this @Lakelimbo! Much appreciated, setting this up was a breeze
Added guides to use shadcn-svelte on Astro on
src/content/installation
andsrc/content/dark-mode
, based on the original shadcn instructions as well.Dark mode
Now
dark-mode.md
is a folder, containingindex.md
,svelte.md
, andastro.md
.mode-watcher
does work by itself there, but because Astro is not a frontend framework, Svelte (or any other UI framework) will always load a bit after the HTML and CSS, causing a noticeable FUOC. Just like in the original shadcn docs, there is also an inline-script which it's may seem sort of redundant withmode-watcher
, but it helps eliminating the FUOC entirely (because inline-scripts load before the UI frameworks).Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.pnpm format
andpnpm lint