Skip to content

[Templates] AppConfig colors type should come from user defined Tailwind CSS theme #2143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
benjamincanac opened this issue Mar 20, 2024 · 2 comments
Labels
bug Something isn't working v3 #1289

Comments

@benjamincanac
Copy link
Member

benjamincanac commented Mar 20, 2024

This causes an error in the app.config.ts when the selected color is missing.

https://github.com/nuxt/ui/blob/v3/src/templates.ts#L62

@benjamincanac benjamincanac added the bug Something isn't working label Mar 20, 2024
@benjamincanac benjamincanac transferred this issue from another repository Mar 27, 2024
@benjamincanac benjamincanac added the v3 #1289 label Jul 18, 2024
@benjamincanac benjamincanac transferred this issue from benjamincanac/ui3 Sep 6, 2024
@benjamincanac benjamincanac changed the title [Templates] primary and gray colors type should come from Tailwind CSS [Templates] AppConfig colors type should come from user defined Tailwind CSS theme Oct 10, 2024
@simonmaass
Copy link

is there a workaround until this is done?

Copy link
Member Author

You can just cast it:

export default defineAppConfig({
  ui: {
     colors: {
       primary: 'cerise' as any
     }
  }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants