Nisha Patel
Solution
When you go through>> >the documentation of the TailwindCSS you will notice that it only finds classes that are completely unbroken strings in your source files.
In case you are using both string interpolation or concatenate partial class names, Tailwind will be unable to find class names. Plus, it will not generate the corresponding CSS:
Make sure that you do not construct class names dynamically
Now, as you can see in the above example that the strings text-red-600 and text-green-600 are missing. Therefore, Tailwind will not generate those classes. Make sure that you use the full class name. Look at the following example:
You can consider using the full class names like the following::
>Safelisting the classes you will use:
Suggested blogs:
>How can you read a Blob in Deno in TypeScript?
>How to do Yup validation in form with TypeScript?
>How can I merge two arrays of objects that can be undefined in TypeScript?
>Javascript Error Solved: Property 'id' does not exist on type 'T'
>How to make sticky div remain stuck in JavaScript?
>How to manipulate manipulating Array object in JavaScript?
>How to do light and dark mode in a website using HTML and JavaScript?
>How to fix mouseover event glitch in JavaScript?
>Activating Virtual environment in visual studio code windows 11
>Fix webapp stops working issue in Django- Python webapp
>Creating a form in Django to upload a picture from website
>Sending Audio file from Django to Vue
>How to keep all query parameters intact when changing page in Django?