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

MethodReturnsDescription
getRules()stringGet the generated CSS rules as a string.
mount(root, module, options?)voidMount style module(s) into a document or shadow root.
newName()stringGenerate a new unique CSS class name.