UNPKG

bluecodex

Version:

Turn repetitive dev tasks into CLI commands with Typescript

13 lines (10 loc) 275 B
import { ioc } from "../ioc"; import { ThemeClass } from "./theme-class"; /** * Override theme with custom parts */ export function theme(override: Partial<ThemeClass>) { const newTheme = new ThemeClass(); Object.assign(newTheme, override); ioc.theme = newTheme; }