touying-typ / touying

Touying is a powerful package for creating presentation slides in Typst.
https://touying-typ.github.io/touying/
MIT License
461 stars 10 forks source link

Metropolis theme: Decoupling text fill color and primary dark color? #45

Closed JKRhb closed 1 month ago

JKRhb commented 2 months ago

First of all, thank you for the great package :)

I am currently using the Metropolis theme for creating presentation slides and was considering changing the color theme. However, in the case of the primary dark color, doing so is not really possible since this also changes the text color on the slides:

image

Would it be possible to decouple the text color from the color that is being used for the general slide layout, or provide other means for configuration here?

OrangeX4 commented 2 months ago

Sorry, I didn't think about this case, I'll find a way to fix it in the next version, for now you can use

#(s.methods.slide = s.methods.slide.with(setting: body => text(fill: black, body)))

to change the text color.

JKRhb commented 2 months ago

Thank you for your quick answer and the workaround :)

JKRhb commented 1 month ago

@OrangeX4 Thank you for resolving this issue!