GitHub

DaffThemingService

class

import { DaffThemingService } from '@daffodil/design'

A service for controlling the application's theme.

@Injectable()
class DaffThemingService {
  getTheme(): Observable<DaffTheme>
  darkMode(): void
  lightMode(): void
  switchTheme(): void
}

() Methods

getTheme
Observable<DaffTheme>

Get the current theme.

darkMode
void

Set the theme to dark mode.

lightMode
void

Set the theme to light mode.

switchTheme
void

Switch between themes.