theme/apply

Import

import { applyTheme, removeTheme } from '@feugene/granularity/theme/apply'

Exports

ApplyThemeOptionsinterface
interface ApplyThemeOptions
applyThemefunction
function applyTheme(css: string, options?: ApplyThemeOptions): () => void
removeThemefunction
function 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

Read it in the repository: docs/theming.md

Source: @feugene/granularity 0.41.0, package.json#exports and dist/types