How do you "call" a css file from your marp header #536
-
Greetings, I can't the syntax to work to call a local CSS file from the marp header. Anyone has it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Marp's Markdown format does not provide a specific syntax to call a local CSS file in Markdown front matter. Instead, Marp always uses a theme name to apply the theme CSS file. ---
theme: default
--- If you have a custom theme CSS in the local, tell the location of your theme CSS into Marp tool you are using. For example, Marp CLI can use either |
Beta Was this translation helpful? Give feedback.
Related: marp-team/marpit#363
Marp team recommends to use
@import
carefully. It's no problem in Marp-specific usage (e.g. importing other theme) or known usage (e.g. Google Fonts, whose only@font-face
definitions in the most case), but the other usage may met the some problem.