Skip to content

JIT + dark + arbitrary value is not working #5006

Closed
@phuctm97

Description

@phuctm97

What version of Tailwind CSS are you using?

v2.2.2

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

Webpack

What version of Node.js are you using?

v14.17.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction repository

https://play.tailwindcss.com/bQUf4HyGrG

Describe your issue

When using darkMode: 'class', dark:text-[rgb(217,217,217)] won't work. If I define the color in theme then use the color name, then it works.

Reproduce:
Search for line with dark:dop-text-[rgb(217,217,217)] you will see there is no effect.
https://play.tailwindcss.com/bQUf4HyGrG

Not sure why it is not working either. The editor suggested correctly but there is no class generated.

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