Skip to content

Commit

Permalink
minor #35 Adding note to the docs about using Tailwind plugins (weave…
Browse files Browse the repository at this point in the history
…rryan)

This PR was merged into the main branch.

Discussion
----------

Adding note to the docs about using Tailwind plugins

Commits
-------

43ef989 Adding note to the docs about using Tailwind plugins
  • Loading branch information
weaverryan committed Dec 11, 2023
2 parents 2f749c2 + 43ef989 commit 15a2533
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,31 @@ To make your Symfony forms look nice with Tailwind, you'll need a dedicated form
Check out https://github.com/tales-from-a-dev/flowbite-bundle for a helpful bundle that
provides that!

Tailwind Plugins
----------------

The Tailwind binary the bundle downloads already contains the "Official Plugins" - e.g. `typography <https://tailwindcss.com/docs/typography-plugin>`_.
This means you can use those simply by adding the line to the ``plugins`` key in
``tailwind.config.js`` - e.g. ``require('@tailwindcss/typography')``.

For other plugins - like `Flowbite Datepicker <https://flowbite.com/docs/plugins/datepicker/>`_,
you will need to follow that package's documentation to `require the package <https://flowbite.com/docs/getting-started/quickstart/#require-via-npm>`_
with ``npm``:

.. code-block:: terminal
$ npm install flowbite
Then add it to ``tailwind.config.js``:

.. code-block:: javascript
module.exports = {
plugins: [
require('flowbite/plugin')
]
}
Configuration
-------------

Expand Down

0 comments on commit 15a2533

Please sign in to comment.