Skip to content

Custom Styles configuration does not work. #5413

@sadlrxn

Description

@sadlrxn

Environment

  • package-manager: bun
  • vue 3.5.22
  • tailwindcss 4.1.16

Is this bug related to Nuxt or Vue?

Vue

Package

v4.x

Version

v4.1.0

Reproduction

app.config.ts

import type { NuxtUIOptions } from "@nuxt/ui/unplugin"
export const uiAppConfig: NuxtUIOptions = {
  colorMode: false,
  ui: {
    colors: {
      primary: 'primary',
      secondary: 'secondary',
      success: 'success',
      info: 'info',
      warning: 'warning',
      error: 'error'
    },
    icons: {
      loading: 'i-lucide-loader',
      chevronDown: 'i-lucide-chevron-down',
      chevronRight: 'i-lucide-chevron-right',
      external: 'i-lucide-arrow-up-right'
    },
    pageCard: {
      slots: {
        root: 'bg-red-500'
      }
    }
  }
}

Description

in app.config.ts,

pageCard: {
      slots: {
        root: '!bg-red-500'
      }
    } 

customization does not work. meaning default tailwind classes are overriding custom ones which should be other way round.
for example to change the colour of pageCard, i had to force the colour with !bg-red-500. i tired for both vuejs and nuxt, same thing.

Additional context

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