Skip to content

how to apply custom font for all slides? #353

Answered by yhatt
zzzz465 asked this question in Q&A
Discussion options

You must be logged in to vote

Note the hosted source code of themes in marp-team/marp-core are Sass (.scss), not CSS (.css). Both of Marp and browser can recognize only CSS. If Sass syntax was included in the CSS theme, styles may not apply correctly due to syntax error.

Before using in Marp tools, you would have to compile Sass syntax to CSS.

If you think that's too hard, just importing pre-compiled theme by @import would help you.

/* @theme your-theme */

@import 'uncover';

section {
  font-family: cursive;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zzzz465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants