Skip to content

Issue with <kbd> shadows due to incorrect rgb syntax #404

@stephenlrandall

Description

@stephenlrandall

The opacity function uses comma-separated rgb syntax while attempting to apply a non-trivial level of transparency:

return `rgb(${r}, ${g}, ${b} / ${opacity})`

This breaks the shadow colors in dark mode:

Image

vs

Image

I'd expect this:

Image

I'm using Tailwind 4.1.13 and version 0.5.18 of this plugin.

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