File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
getting-started/quickstart
libs/flowbite-angular/styles Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ keyword: DarkModePage
44
55## Enable dark mode
66
7- All you need to do is add ` FlowbiteThemeDirective ` as a ` hostDirectives ` in your ` app.component.ts ` .
7+ All you need to do is add ` Theme ` as a ` hostDirectives ` in your ` app.component.ts ` .
88
99``` angular-ts
1010...
11- import { FlowbiteThemeDirective } from 'flowbite-angular/theme-toggle';
11+ import { Theme } from 'flowbite-angular/theme-toggle';
1212...
1313
1414@Component({
1515 ...
16- hostDirectives: [FlowbiteThemeDirective ],
16+ hostDirectives: [Theme ],
1717})
1818export class AppComponent {
1919 ...
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ npm install flowbite-angular
2626Make sure to use the flowbite-angular configuration preset in your styles.css
2727
2828``` css
29- @import ' tailwindcss' source('node_modules/flowbite-angular') ;
29+ @import ' tailwindcss' ;
3030
31- @source "src/ ";
31+ @source "node_modules/flowbite-angular ";
3232```
Original file line number Diff line number Diff line change 1- @custom-variant dark (& : where ([data-theme = dark ], [data-theme = dark ] * ));
1+ @import 'tailwindcss' ;
2+
3+ @source "../../../../libs/flowbite-angular" ;
24
3- @import '../../../../libs/flowbite-angular/styles/flowbite-angular.css' ;
5+ @custom-variant dark ( & : where ([ data-theme = dark ] , [ data-theme = dark ] * )) ;
46
57@import './tw/fonts.css' ;
68
Original file line number Diff line number Diff line change 1- @import 'tailwindcss' ;
2-
31@import './part/animation.css' ;
You can’t perform that action at this time.
0 commit comments