theme/apply
Import
import { applyTheme, removeTheme } from '@feugene/granularity/theme/apply'Exports
ApplyThemeOptionsinterfaceinterface ApplyThemeOptionsapplyThemefunctionfunction applyTheme(css: string, options?: ApplyThemeOptions): () => voidremoveThemefunctionfunction removeTheme(name?: string, target?: HTMLElement | null): void
Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.
Library prose
Source: @feugene/granularity 0.41.0, package.json#exports and dist/types