2.0.2 • Published 6 years ago
@hayato/theme v2.0.2
theme
Theme support.
Usage
To get the theme for an app, do:
import { App } from '@hayato/core'
import { getThemeForApp } from '@hayato/theme'
const app = new App()
const theme = getThemeForApp(app)
// Set values for the theme
theme.neutralCommand = '#5555ff'
API
getThemeForApp
export function getThemeForApp(app: {}): ITheme
Get the theme for an App (or any object).
ITheme
export interface ITheme {
neutralCommand: string
successCommand: string
failureCommand: string
}
2.0.2
6 years ago