Skip to content

ThemeService

ThemeService provides utilities for managing application themes.

API

MemberDescription
Theme.LIGHTLight theme mode
Theme.DARKDark theme mode
Theme.SYSTEMSystem theme mode (follows OS preferences)

Theme Enum

ts
export enum Theme {
	LIGHT = 'light',
	DARK = 'dark',
	SYSTEM = 'system',
}

Usage

ts
import { ThemeService, Theme } from '@mrksbnc/bamboo/services';

const themeService = new ThemeService();