Skip to content

Cant override styles #6169

@wokalek

Description

@wokalek
<UIButton>
  override button?
</UIButton>
export default defineAppConfig({
  ui: {
    button: {
      slots: {
        base: 'font-bold',
      },
    },
  },
})

Rendered html:

<button
  type="button"
  data-slot="base"
  class="rounded-md inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors font-bold px-2.5 py-1.5 text-sm gap-1.5 text-inverted bg-primary hover:bg-primary/75 active:bg-primary/75 disabled:bg-primary aria-disabled:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
>
  <!--v-if-->
  override button?
  <!--v-if-->
</button>

Is it even REALLY possible to override styles in this library? Or is it impossible? Why do I need all this unnecessary tailwind garbage that I didn't define?

How can I remove all this and leave only the styles I need?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existsv4#4488

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions