Dark mode
To enable mailgo dark mode globally see the Configuration parameter dark
, go here.
You can also use mailgo dark mode with CDN or script using the file /dist/mailgo.dark.min.js
instead of /dist/mailgo.min.js
.
Dark mode only for some modal
If you use the configuration method (or mailgo.dark.min.js
) the dark mode is enabled for all the modals. However, you can specify which modals you want to have in dark mode also with a class
. You can add to the mailgo element
class="dark"
to enable dark mode only for the element specified. For example:
<a class="dark" href="mailto:info@mailgo.dev">info@mailgo.dev</a>