t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.84k forks source link

Dark mode with SweetAlert #973

Open mfurkan60 opened 3 years ago

mfurkan60 commented 3 years ago

Hello everyone, how can I use sweetalert with Dark Mode websites? what do you recommend?

ddasutein commented 2 years ago

I don't know if my version of SweetAlert will help you get started. I was recently working on getting my Chromium extension to support dark mode and to keep the consistency, I had to also update SweetAlert as it only supports light mode.

Here is my version if you are interested

https://github.com/ddasutein/AutoRename/blob/dev/lib/SweetAlert/node_modules/sweetalert/dist/sweetalert.min.js

CSS portion starts at line 319 and my dark mode implementation starts at line 1174.

Example image

mfurkan60 commented 2 years ago

Thank You very Mcuh