Methods

(inner) importParse()

Marpit PostCSS import parse plugin.

Parse @import and @import-theme rules that specify a plain string.

The @import rule for Marpit theme follows CSS spec. It must precede all other statements. (excepted @charset)

When you are using CSS preprocessors like Sass, @import would resolve path in compiling and would be lost definition. So you can use @import-theme rule alternatively.

A specification of @import-theme has a bit different from @import. You can place @import-theme rule at any in the CSS root, and the content of imported theme will always append to the beginning of CSS.

Type Definitions

ImportMeta

Type:
  • object
Properties
NameTypeDescription
nodeAtRule

The at-rule node parsed by PostCSS.

valuestring

The specified value.