Skip to content

How can I use @import-theme #73

Answered by yhatt
hnsol asked this question in Q&A
Feb 6, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

First, @import-theme is almost meaning same as @import and it has no special differences, as you've seen in "other trials 1".

Probably you have to learn about what all Sass variables will be lost in compiled CSS. Marp does never recognize any Sass variables such as $color-light because Marp theme system (e.g. using @import) is working on the pure CSS. Marp built-in themes are using compiled CSS from Sass.

Thus, you have to take a way of "other trials 3" for now if you want to change Sass variable definitions of Marp built-in themes. See also #48.

We already have a plan to make built-in themes migrate from Sass variables to CSS variables, for reducing some confusions and inconvenients like…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hnsol
Comment options

@fams
Comment options

@yhatt
Comment options

Answer selected by hnsol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants