Dawntraoz / slidev-theme-unicorn

A Unicorn theme for Slidev slides based on dawntraoz.com design.
http://unicorn-theme.dawntraoz.com/
67 stars 20 forks source link

Other colors on background #3

Open gabriel-del opened 2 years ago

gabriel-del commented 2 years ago

How can I use other colors on background?

Dawntraoz commented 2 years ago

Hi @gabriel-del you can just add a styles.css file inside the root of your slidev-desk repo and add there any background to the .bg-main class [Reference → https://sli.dev/guide/faq.html#override-global-style].

Something like:

.bg-main {
  @apply bg-gray-100 bg-none;
}

bg-none is important because I'm using a gradient so the background-image should be removed if you want a solid color in its place.

Let me know if that solves your problems 💜

gabriel-del commented 2 years ago

I mean, I liked the gradient style, I just want to change the range of colors it's going: from color1 to color2. Where on the code is defined?