Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other colors on background #3

Open
gabriel-del opened this issue May 10, 2022 · 2 comments
Open

Other colors on background #3

gabriel-del opened this issue May 10, 2022 · 2 comments

Comments

@gabriel-del
Copy link

How can I use other colors on background?

@Dawntraoz
Copy link
Owner

Dawntraoz commented May 20, 2022

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants