Goal: No border or focus ring in Django form.
Current: I can currently only change certain attributes like text color & rounded corners but not border or focus. I am using django-widget-tweaks to assign class attributes to the form. I am using django-tailwindcss to use tailwind in Django.
Attempted: I am using the tailwind ring-0 & border-0 tailwind attributes but they are not functioning at all.
Code:
{% load widget_tweaks %}
<form action="{% url 'marketing:subscribe' %}" method="post">
{% csrf_token %}
{{ form.email|add_class:"bg-black rounded-lg border-0 ring-0 focus:ring-0" }}
<button class="text-green-300" type="submit">Subscribe</button>
</form>