@kalees64/tailwind
v0.0.26
Published
```bash ng add @kalees64/tailwind ```
Maintainers
Readme
Tailwind Angular
Installation
ng add @kalees64/tailwindRemove
ng g @kalees64/tailwind:ng-removeUsage
app.component.html
<h1 class="text-7xl bg-cyan-300 dark:bg-lime-300">I am Kalees</h1>
<button class="p-2 rounded bg-pink-500" (click)='toggleTheme()'>
Toggle Theme
</button>
app.component.ts
constructor(
private themeService: ThemeService,
) {}
ngOnInit(): void {
this.themeService.initializeTheme();
}
toggleTheme(): void {
this.themeService.toggleTheme();
}New Feature
Now you can use theme toggle functionality in your Angular application. This feature is available in the ThemeService class.
