Skip to content

Customise Bespoke's progress bar via theme's CSS #201

Answered by yhatt
mil-ad asked this question in Q&A
Discussion options

You must be logged in to vote

It cannot. Theme CSS cannot interfere with the outside of Marp slides to prevent breaking Marp-integrated tools. In addition, Marp CLI's bespoke template is not designed for customizable for now.

If you really want to change the color, a following hack is working:

@import url('data:text/css,.bespoke-progress-bar { background: red !important; }');

CSS @import rule can bypass Marp(it)'s postprocess for scoping styles to the slide. It's just a hack that is similar to marp-team/marp-cli#358 so honestly we could never recommend.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mil-ad
Comment options

Answer selected by mil-ad
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