This repository demonstrates a bug where a Tailwind CSS gradient background behaves unexpectedly on larger screens. The gradient appears distorted or doesn't apply correctly above a certain viewport width.
When using a linear gradient background with bg-gradient-to-r
and specific color classes, the gradient may distort or not render properly once the screen width exceeds a certain threshold. This behavior is inconsistent and may depend on the browser.
index.html
in your browser.The issue is likely due to the way Tailwind processes gradient background in combination with other styles or responsive design settings. There are a few solutions to try:
Refer to bugSolution.js
for a proposed solution that addresses this specific problem.