Skip to content

Own themes/CSS possible? #2904

@UweKeim

Description

@UweKeim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions