Options for StyleManager.create.

type Create = {
    document?: Document;
    id: string;
    layerName?: string;
    rules: RulesConfig;
    version: string;
    warn?: boolean;
}
Index

Properties

document?: Document

Target document to load styles into.

window.document

id: string

Required CSS ID providing a link to a specific style sheet element.

layerName?: string

Optional CSS layer name defining the top level CSS layer containing all rules.

CSS Rules configuration. Rule name / selector.

version: string

Required semver string without wildcards / version ranges representing the version / level of styles being managed.

warn?: boolean

When true, log warnings on why creation failed.

false