Skip to content

Can't apply TailwindCSS classes forcefully in NiceGUI 3.0.0rc1 #5156

@python-and-novella

Description

@python-and-novella

First Check

  • I added a very descriptive title here.
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

from nicegui import ui

def index():
    ui.button('button').props('color="red-10"')
    # apply TailWindCSS color forcely
    ui.button('button').classes('!bg-red-700')

index()

ui.run(native=True)

Description

In NiceGUI 3.0.0rc1,I can't apply TailWindCSS color forcely.
Does it works as expected?

NiceGUI Version

3.0.0rc1

Python Version

Python 3.12.10

Browser

Other

Operating System

Windows

Additional Context

It shows this:

Image

But in Nicegui 2.24.1, it shows this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugType/scope: A problem that needs fixingreviewStatus: PR is open and needs review🔴 criticalPriority: Needs immediate attention

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions