refactor: consolidate duplicate CSS design token namespaces
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css
- Domain
- frontend
Research direction
Start in apps/app/src/app/globals.css and search the components that use --text-primary, --color-text-primary, --border-default, --color-border, --surface-primary, and --color-container. Choose one namespace convention or an alias approach, then verify that the duplicate namespaces are no longer used independently and that all usages follow the chosen convention.
Written by the indexing model from the issue text.
Description
Description
Severity: P2 — Consistency
In apps/app/src/app/globals.css, there are duplicate design token namespaces:
- `--text-primary` vs `--color-text-primary`
- `--border-default` vs `--color-border`
- `--surface-primary` vs `--color-container`
Both sets are used across different components.
Failure mode
Confusion about which token to use; risk of visual inconsistency when one set is updated but not the other.
Suggested fix
Consolidate to a single namespace. Either alias one to the other or migrate all usages to one convention.
From self-review finding F08
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CopilotKit/OpenGenerativeUI
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
CopilotKit/OpenGenerativeUI#87 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in CopilotKit/OpenGenerativeUI
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·