Skip to content
Markus Windhager edited this page Feb 1, 2023 · 1 revision

Welcome to ngx-theme-manager

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.

Features

  • 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

Getting started

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!

Usage

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');
  }
}

Documentation

For more information and detailed documentation, check out the ngx-theme-manager repository on GitHub.

Contributing

We welcome contributions to ngx-theme-manager! If you're interested in contributing, check out the contributing guide in the repository.

License

ngx-theme-manager is open source software licensed under the MIT license.

Clone this wiki locally