yhatt / marp

The site of classic Markdown presentation writer app
https://yhatt.github.io/marp/
MIT License
7.89k stars 398 forks source link

[Feature Request] Wanted Global Gaia Theme has a template theme of white background. #221

Closed kelein closed 6 years ago

kelein commented 6 years ago

I am fond of the theme of Gaia, but when I insert a image with white background the template both <!-- *template: invert --> and <!-- *template: default --> seems not well.

2018-05-07 10 49 21 2018-05-07 10 46 33

I prefer that The Gaia theme has a template of white background like this <!-- *template: white --> to meet such needs.

2018-05-07 10 46 58
yhatt commented 6 years ago

You can use inline style as a workaround.

<!--
$theme: gaia
*template: white
-->

<style>
.slide_wrapper[data-template="white"] .slide {
  background: #fff !important;
}
</style>

In Marp Next, we have backgroundColor directive to support changing background color directly (came from Marpit framework). The below example would receive the same result in future.

<!-- _backgroundColor: white -->

_ works as same as * in current Marp.