theme/apply
Экспорты подпути @feugene/granularity/theme/apply с сигнатурами из его объявлений типов.
На этой странице
Импорт
import { applyTheme, removeTheme } from '@feugene/granularity/theme/apply'Экспорты
ApplyThemeOptionsinterfaceinterface ApplyThemeOptionsПодключение темы в рантайме — `@feugene/granularity/theme/apply`.
applyThemefunctionfunction applyTheme(css: string, options?: ApplyThemeOptions): () => voidПодключает CSS темы и возвращает функцию, которая его снимает.
removeThemefunctionfunction removeTheme(name?: string, target?: HTMLElement | null): voidСнимает тему, подключённую `applyTheme`.