Hi friend, when I add a text-red
class into heex
file in live directory the Tailwind works as perfect as possible, but if I add new class in a component .ex
file it has no reaction and when I see it in my browser it does not add it as class.
For example:
lib/mishka_template_creator_web/components/mishka_core_component.ex
@spec delete_block(map) :: Phoenix.LiveView.Rendered.t()
defp delete_block(assigns) do
~H"""
<img
src="/images/trash.svg"
alt="Show dark mode or light one"
class="w-6 h-6 cursor-pointer bg-red-400"
phx-click="dark_mod"
phx-value-type=""
phx-value-id=""
/>
"""
end
By the way, when I am writing the bg-
it does not show the possible option like red
or blue
My Tailwind config:
module.exports = {
content: [
"./js/**/*.js",
"./vendor/mishka_template_creator/*.js",
"../lib/*_web.ex",
"../lib/*_web/**/*.ex", // I added to test, but it did not work
"../lib/*_web/**/*.*ex",
],
Thank you in advance