Skip to content

Commit b0bd5a5

Browse files
committed
docs: update DarkMode & Quickstart
1 parent 3ffa79f commit b0bd5a5

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

apps/docs/docs/customize/dark-mode/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})
1818
export class AppComponent {
1919
...

apps/docs/docs/getting-started/quickstart/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ npm install flowbite-angular
2626
Make 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
```

apps/docs/public/css/styles.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
@import 'tailwindcss';
2-
31
@import './part/animation.css';

0 commit comments

Comments
 (0)