Skip to content

RGB generated for local builds, but HSLA on production — causing a noticeable colour difference #11716

@r3oath

Description

@r3oath

What version of Tailwind CSS are you using?

v3.3.3

What build tool (or framework if it abstracts the build tool) are you using?

Next.js 13.4.12

What version of Node.js are you using?

v16.13.2

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

I cannot provide a reproduction URL as the issue pertains to a difference in output between local and production builds.

Describe your issue

When using a class such as bg-neutral-50/50, the output CSS in a local build is background-color: rgb(23 23 23 / 0.5);, however, on a production build, the output is background-color: hsla(0,0%,9%,.5); which results in a noticeable difference in colour. See the example screenshots below, first is local, second is production:

Screenshot 2023-07-30 132202
Screenshot 2023-07-30 132206

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions