Skip to content

[v4] When using a reference theme, --default variables don't work #13215

Closed
@Steffan153

Description

@Steffan153

What version of Tailwind CSS are you using?

v4.0.0-alpha.8

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

Astro 4.5.2, Vite 5.1.6

What version of Node.js are you using?

Bun 1.0.30

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

Tailwind Play doesn't have v4 yet? But here's a link with the code (doesn't work) https://play.tailwindcss.com/NhYGudCbaL

Describe your issue

If I import the theme as a reference (@import 'tailwindcss/theme' reference;), many properties such as transition still look for --default variables:

.transition-all {
    transition-property: all;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
}

But those variables aren't set, so it doesn't work.

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