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

Custom CSS #32

Open
melaniecarr23 opened this issue Mar 10, 2022 · 3 comments
Open

Custom CSS #32

melaniecarr23 opened this issue Mar 10, 2022 · 3 comments

Comments

@melaniecarr23
Copy link

I'm using tailwindcss. How can I override the standard settings and use my own?

@lindseybradford
Copy link

🆙

@itstimwhite
Copy link

This

@danilopolani
Copy link

Hey,
to customize the CSS I'm disabling the default one with the useDefaultCss: false option and then using applying Tailwind classes on toasts, for example:

.c-toast {
  @apply pt-1 pb-2 px-4 rounded-lg;
}

.c-toast.c-toast--error {
  @apply bg-red-700 text-white;
}

.c-toast.c-toast--success {
  @apply bg-green-700 text-white;
}

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

Successfully merging a pull request may close this issue.

4 participants