Skip to content

bug/feat: additional colors support #213

@sandros94

Description

@sandros94

Ability to add additional colors like secondary, accent, success, info, warning, danger.

Is your feature request related to a problem? Please describe.

Partially.
Following the docs I see that it should be already possible to use any colors that gets defined within tailwind.config. But it isn't currently working:
image

While creating a stackblitz repro I've noticed that I even get a validation error on the 'color' prop (EDIT: I get the vue warn in local dev too). But compared to running locally the component gets displayed in white.

[Vue warn]: Invalid prop: custom validator check failed for prop "color".
image

Additionally: How could we make them possible to be edited at runtime inside app.config.ts?

Describe the solution you'd like

  1. Defining any custom colors inside tailwind.config (either being inside nuxt.config.ts or tailwind.config.js), with their respective default values.
  2. Being able to have them available inside the app.config.ts to be changed at runtime.

Additional context

The ability to change at runtime for colors such 'success', 'info', 'warning' and 'danger' is particularly useful for platforms with colorblindness support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions