I've encountered a problem with my project that combines Tailwind CSS and Next.JS. Specifically, I'm facing an issue where certain Tailwind classes are not being applied correctly. For example, when I try to use the bottom-0
class, it doesn't have any effect, whereas the right-0
class works as expected.
<div class="absolute bottom-0 right-0">
Turning off the JIT mode resolves the issue, but I would prefer to keep it enabled and understand the root cause of this problem.
Below you can find a screenshot depicting the issue, as well as my tailwind config file for your reference:
https://i.sstatic.net/Z4qd4.png
const defaultTheme = require('tailwindcss/defaultTheme');
// Rest of the tailwind config file goes here
Any insights or help on this matter would be greatly appreciated. Thank you!