nuxt / nuxt/ui

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

Open
#2,143 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

upstream/tailwindcss v5
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/templates.ts around line 62 and inspect how the AppConfig colors type is defined for app.config.ts. Compare it with the user-defined Tailwind CSS theme colors; done means a selected color that is missing from the default set no longer causes a type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, tailwindcss, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.