Skip to content

StyleModule

Unofficial

A CSS module that can be mounted into a document or shadow root.

Import:

import type { StyleModule } from '@obsidian-typings/obsidian-public-latest';

Signature:

export class StyleModule

Methods

Method Returns Description
getRules() string Get the generated CSS rules as a string.
mount(root, module, options?) void Mount style module(s) into a document or shadow root.
newName() string Generate a new unique CSS class name.