AI may generate Tailwind classes only compatible with older Tailwind versions

Created on 30 September 2025, 18 days ago
Updated 3 October 2025, 15 days ago

Overview

I generated a hero component that had a filter to darken the image for better readability. For some reason, AI decided to use bg-opacity-0 class which is a Tailwind 2 feature which is not available in Tailwind 4. This makes it clear that the AI mat generate code that's compatible with older versions of Tailwind but not with Tailwind 4.

Proposed resolution

User interface changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

AI

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024