theme/apply

  • Utilities
  • exports: 3

What the @feugene/granularity/theme/apply subpath exports, with signatures from its type declarations.

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

On this page

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

Library prose

Read it in the repository: docs/theming.md