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

Own themes/CSS possible? #2904

Open
UweKeim opened this issue Oct 8, 2024 · 0 comments
Open

Own themes/CSS possible? #2904

UweKeim opened this issue Oct 8, 2024 · 0 comments

Comments

@UweKeim
Copy link

UweKeim commented Oct 8, 2024

I'm trying to provide my own theming. I.e. provide my very own CSS that goes beyond selecting one of the SweetAlertTheme enum values.

In the official sweetalert2-themes repository they suggest to simply add a CSS reference like e.g.

<link rel="stylesheet" href="@sweetalert2/themes/dark/dark.css" />

But I think this is not possible here.

My question

is it possible to provide and apply my own theme through some mechanism in the Razor.SweetAlert2 library?

Or would I have to fork a version and add this as a new feature?

Idea

I do think what would be already sufficient for me would be some SweetAlertTheme.None option to tell Razor.SweetAlert2 that no CSS should be added at all.

Then I can provide my own CSS/SCSS externally by simply including it in my containing parent page/component.

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