WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Tailwind CSS v4 utilities overridden by Quasar component styles #18060

@Mo7ammedFawzy

Description

@Mo7ammedFawzy

What happened?

When integrating Tailwind CSS v4 into a Quasar v2+ SPA, Quasar’s core component styles always win over my Tailwind utilities. For example:

<q-card class="bg-red-900">
  <!-- … -->
</q-card>

renders with a white background because Quasar ships:

.q-card {
  background: white;
}

I don’t want to sprinkle !important or add custom selectors throughout a large project.

What did you expect to happen?

The bg-red-900 utility should apply a red background to without using !important.

Reproduction URL

https://stackblitz.com/~/github.com/devfawzey/quasar_tailwindcssv4

Platforms/Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions