Skip to content

Unable to set property value to "inherit" in the CSS config #18516

@mwnciau

Description

@mwnciau

What version of Tailwind CSS are you using?

v4.0.9

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

Elixir Phoenix using the Tailwind 0.3.1 elixir package, built using the esbuild 0.9.0 elixir package, which is using esbuild 0.17.11

What version of Node.js are you using?

v22.16.0

What browser are you using?

Firefox

What operating system are you using?

Ubuntu

Reproduction URL

https://play.tailwindcss.com/vJ8zniNWjT

Describe your issue

It is impossible to set a custom theme variable to "inherit" using a CSS config. See the Tailwind play link above where I introduce --gap-inherit: inherit. Because Tailwind is using CSS variables under the hood, the variable --gap-inherit consumes the "inherit" value so remains unset.

I was not able to find in the documentation whether a workaround for this exists.

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