Skip to content

Components look broken if NuxtUI is installed in a Tailwind project where --spacing is 1px #6067

@martinszeltins

Description

@martinszeltins

Environment

Nuxt project info:
|                      |                                                       |
| -------------------- | ----------------------------------------------------- |
| **Operating system** | `Linux 5.15.0-170-generic`                            |
| **CPU**              | `Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz (8 cores)` |
| **Node.js version**  | `v24.13.0`                                            |
| **nuxt/cli version** | `3.33.1`                                              |
| **Package manager**  | `pnpm@10.28.2`                                        |
| **Nuxt version**     | `4.3.1`                                               |
| **Nitro version**    | `2.13.1`                                              |
| **Builder**          | `vite@7.3.1`                                          |
| **Config**           | `extends`                                             |
| **Modules**          | `-`                                                   |

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

4.3.1

Reproduction

N/A

Description

When NuxtUI is installed in a Tailwind project where --spacing is defined as 1px meaning px-1 would be px: 1px then all NuxtUI components look broken and you need to manually go and adjust every single component. Is there any workaround for this?

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions