Skip to content

Commit

Permalink
Update documentation of customized theme
Browse files Browse the repository at this point in the history
Since v0.1.1, import at-rule could work correctly in anywhere of
the CSS root. Related to #75.
  • Loading branch information
yhatt committed Sep 20, 2018
1 parent 031762b commit 407ff15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/theme-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ section {
}
```

`@import` must precede all other statements excepted `@charset`. It follows [the original specification][@import].

In addition, an importing theme must add to theme set by using [`Marpit.themeSet.add(css)`](/usage#add-to-theme-set) in advance.
An importing theme must add to theme set by using [`Marpit.themeSet.add(css)`](/usage#add-to-theme-set) in advance.

### `@import-theme` rule

Expand All @@ -164,7 +162,7 @@ section {
}
```

Unlike `@import`, `@import-theme` can place on anywhere of the root of CSS. The imported contents is inserted to the beginning of CSS in order.
`@import` for theme and `@import-theme` can place on anywhere of the root of CSS. The imported contents is inserted to the beginning of CSS in order per rules. (`@import` is processed before `@import-theme`)

## Tweak style through Markdown

Expand Down

0 comments on commit 407ff15

Please sign in to comment.