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`.
Проза библиотеки
Источник: @feugene/granularity 0.41.0, package.json#exports и dist/types