PolicyEngine / PolicyEngine/policyengine-app-v2
Migrate designTokens imports to @policyengine/design-system
Open
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 50m
- Merged PRs (30d)
- 39
Description
Summary
After PR #494 merges, update all imports from app/src/designTokens to use @policyengine/design-system/tokens directly, then delete the re-export wrapper files.
Details
- 127 imports across 102 files need updating
- Current wrappers in
app/src/designTokens/*.tsjust re-export from the package - Mechanical change: find/replace import paths
Files to delete after migration
app/src/designTokens/colors.tsapp/src/designTokens/spacing.tsapp/src/designTokens/typography.ts
Import patterns to update
@/designTokens → @policyengine/design-system/tokens
../designTokens → @policyengine/design-system/tokens
../../designTokens → @policyengine/design-system/tokens
Related: PR #494
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.
Research direction
Wait for PR #494 to merge, then search the 102 affected files for imports from app/src/designTokens and replace the listed relative and alias paths with @policyengine/design-system/tokens. Confirm all 127 imports are migrated, then delete app/src/designTokens/colors.ts, spacing.ts, and typography.ts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100