Dark mode
Add dark theme to your application.
Enable dark mode
All you need to do is add as a hostDirectives in your app.component.ts.
The Tailwind configuration depends on the type of . In , you can change its behavior.
Here is an example configuration to make it rely on data attributes:
provideFlowbiteThemeConfig ({
type: { type: 'attr', name: 'data-theme' },
}),@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));Get or set theme manually
To access or update the application theme manually, inject into your component and call one of its helper functions.