Skip to content

Allow arbitrary values with percentage in classes that support numbers and percentage values #298

Open
@dcastil

Description

@dcastil

There are some classes which support numbers and percentages as arbitrary values in Tailwind CSS, e.g. brightness-[0.4] and brightness-[40%] are both equivalent. In tailwind-merge however, only numbers are supported in those. I should also add support for percentage values in those classes.

Affected theme groups:

  • brightness
  • contrast
  • saturate
  • scale

Metadata

Metadata

Assignees

No one assigned

    Labels

    context-v1Related to tailwind-merge v1featureIs new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions