Skip to content

Commit

Permalink
Update getting_started.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Thutmose3 authored Feb 24, 2024
1 parent 12d1862 commit 30ad236
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docs/getting_started.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,3 @@ You can also prepend or append like so::

{% crispy_addon form.my_field prepend="$" %}
{% crispy_addon form.my_field append=".00" %}

Configuring default field_classes with CRISPY_TAILWIND_STYLE
============================================================

You can configure/overwrite the default classes for the different fields in your settings.
To do so you need to configure the dict ``CRISPY_TAILWIND_STYLE`` in you settings like so:

``CRISPY_TAILWIND_STYLE = {
"text": "bg-gray-50 border border-gray-300",
"select": "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
}``

This is currently only working for the input fields and the select field. More coming soon.

0 comments on commit 30ad236

Please sign in to comment.