Tropix126 / fluent-svelte

A faithful implementation of Microsoft's Fluent Design System in Svelte.
https://fluent-svelte.vercel.app
MIT License
606 stars 26 forks source link

Add a way to force dark theme #51

Open josetr opened 2 years ago

josetr commented 2 years ago

Before you start...

Description

^

Alternative solutions

No response

Relevant Assets

No response

JLAcostaEC commented 2 years ago

For this, the same methodology as TailwindCSS could be implemented, see Manual Dark Mode, but do exactly the same thing will be a headache. Rather i mean to the way to use a class to apply the styles (Plus, this allow SSR Dark Mode using a 'theme: dark' cookie)