Skip to content

Border style CSS variables incorrectly compiled as border-color #17417

@coderrshyam

Description

@coderrshyam

What version of Tailwind CSS are you using?

For example: v4.0.17

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

Next.js 15.2.5

What version of Node.js are you using?

22.14.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction

  1. Define a CSS variable: --ripple-border-style: dashed;
  2. Use it in a class: border-(--ripple-border-style)

Expected behavior:
The compiled CSS should be: border-style: var(--ripple-border-style);

Actual behavior:
The compiled CSS is: border-color: var(--ripple-border-style);

Describe your issue

This makes it difficult to dynamically change border styles using CSS variables. The workaround is to use static border styles like border-dashed, but this doesn't allow for dynamic style changes via CSS variables.

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