Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Using Tailwind CSS #5

Answered by xshapira
jasonleex asked this question in Q&A
Discussion options

You must be logged in to vote

Absolutely! You can use Tailwindcss in the same way you would use any other CSS classes. Here's a simple example from one of my projects:

<li class="flex items-center mb-2">
   {% svg "icon-check" class="w-3 h-3 fill-current text-green-500 mr-3 flex-shrink-0" %}
</li>

Note that the icon-check should be stored in your SVGs folder named svg at the root of your static file directory.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jasonleex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants