An actively developed fork of the original fluent-svelte library, designed to introduce new components, enhance existing ones, and provide seamless theme management.
We've expanded the library to include several heavily requested components and quality-of-life fixes.
Along with the new components, we've overhauled how themes are handled. Depending on your project's needs, you can choose the stylesheet that works best for you:
If you want explicit control over the theme, regardless of the user's system preferences:
Import fluent-svelte-extra/switchable.css into your +layout.svelte file.
Add either the fds-theme-dark or fds-theme-light class to the <html> tag in your app.html file.
Note:
switchable.cssdoes not utilizeprefers-color-schememedia queries.
If you want to respect the user's system theme by default, but still allow manual toggling:
fluent-svelte-extra/theme.css.fds-theme-dark or fds-theme-light class to your <html> tag.Official documentation for our custom components is still a work in progress. For now, you can view detailed usage examples in our test routes here.
Because our team was still learning Svelte when we initially forked this project, some of the older components may have inconsistencies or rely on suboptimal logic. While we now have the knowledge required to make these components highly efficient and consistent, our limited time prevents us from executing a full refactor right now. But we are completely open to Pull Requests! If you'd like to help optimize the codebase, tackle some of the unfinished components, or improve consistency, your support is incredibly appreciated.
A massive thank you to Tropicaal, the creator of the original fluent-svelte library, for building such an awesome foundation!