Closed ericmuijs closed 2 months ago
Hi @ericmuijs,
The styling is done by adding {{ message.tags }}
to the toast's classes:
https://github.com/bblanchon/django-htmx-messages-framework/blob/ca936b2375820e1da28a867a86d4c150a055c2e9/htmx_messages/templates/toasts.html#L3
Of course, this only works if you configured the mapping between error levels and tags: https://github.com/bblanchon/django-htmx-messages-framework/blob/ca936b2375820e1da28a867a86d4c150a055c2e9/demoproject/settings.py#L134-L140
See MESSAGE_TAGS
documentation
Best regards, Benoit
Hi Benoit, I dont see the toast styling, I added the following to my code: