How do you "call" a css file from your marp header #536
Answered
by
yhatt
gauthiervasseur
asked this question in
Q&A
|
Greetings, I can't the syntax to work to call a local CSS file from the marp header. Anyone has it? |
Answered by
yhatt
Sep 14, 2024
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 |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Related: marp-team/marpit#363
Marp team recommends to use
@importcarefully. It's no problem in Marp-specific usage (e.g. importing other theme) or known usage (e.g. Google Fonts, whose only@font-facedefinitions in the most case), but the other usage may met the some problem.