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

How to change the default background color? #146

Open
josevitor555 opened this issue Jan 31, 2025 · 0 comments
Open

How to change the default background color? #146

josevitor555 opened this issue Jan 31, 2025 · 0 comments

Comments

@josevitor555
Copy link

How to change the default background color “3dc763” to other colors? Example: I change the default color to "ff9d3d"

I'm using webpack to compile JS modules in my project, but every time I compile the "ff9d3d" color changes to the default "3dc763".

CSS:

.notyf__toast {
  font-size: 1.6rem !important; /* I can change the default font */
  padding: 8px;
}

/* Change the background of success notifications */
.notyf__toast.notyf__toast--success {
  background-color: #ff9d3d !important;
  color: #fafafa !important;
}

/* Change the background of error notifications */
.notyf__toast.notyf__toast--error {
  background-color: #F44336 !important;
  color: #fafafa !important;
}
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

1 participant