Skip to main content

Posts

Featured

Tailwindcss not compiling all color classes in laravel

I have been playing around with tailwindcss and laravel 8 recently and I came up with this weird "problem". Classes were not loading! So, have you ever noticed that tailwindcss does not compile all color classes when compiled? Actually it may not load any of the expected classes. Well that not so true... The thing is that the way tailwindcss works it is intended not to load the classes. Let's see how it works! According to the installation instructions: https://tailwindcss.com/docs/guides/laravel only a few steps are required in order to load tailwindcss with laravel, but WAIT! the classes are not there. The tricky part is the last part saying: npm run watch what does this command do? This command parses all the blade files (actually all the files that are in the directories stated in the content of tailwind.config.js) and compiles the classes that are present! Only the ones that are present! Letting your terming (command line) "waiting" at this "watch...

Latest Posts

8 years after...

Passing javascript variables to twig path

Playing around with Single Result on Query Builder (doctrine)

Controller as Service (symfony 2.3)