-
Notifications
You must be signed in to change notification settings - Fork 1
Home
ngx-theme-manager
is an Angular library that makes it easy to manage and switch between multiple themes in your Angular application. With ngx-theme-manager
, you can easily change the look-and-feel of your application with just a few configuration changes.
- Simple and flexible API for managing themes
- Supports switching between multiple completely different stylesheets
- Built with Angular, so it integrates seamlessly into your Angular application
To get started with ngx-theme-manager
, you'll need to have an Angular project set up. If you haven't already, create a new Angular project using the ng new
command.
Once you have your project set up, install ngx-theme-manager
by running the following command:
npm install @rb-mwindh/ngx-theme-manager
Now you're ready to start using ngx-theme-manager
in your application!
To switch between themes, you can use the ngx-theme-manager
service. This service provides a simple API for managing themes in your application.
import { ThemeService } from '@rb-mwindh/ngx-theme-manager';
@Component({
selector: 'app-root',
...
})
export class AppComponent {
constructor(public readonly themeService: ThemeService) {
}
switchToDarkTheme() {
this.themeService.setActive('dark');
}
}
For more information and detailed documentation, check out the ngx-theme-manager repository on GitHub.
We welcome contributions to ngx-theme-manager
! If you're interested in contributing, check out the contributing guide in the repository.
ngx-theme-manager
is open source software licensed under the MIT license.