StyleModule
Unofficial
A CSS module that can be mounted into a document or shadow root.
Import:
import type { StyleModule } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export class StyleModuleMethods
| 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. |