PolicyEngine / PolicyEngine/policyengine-app-v2

Migrate designTokens imports to @policyengine/design-system

Open
#516 1 comment 0 reactions 0 assignees View on GitHub

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/*.ts just re-export from the package
  • Mechanical change: find/replace import paths

Files to delete after migration

  • app/src/designTokens/colors.ts
  • app/src/designTokens/spacing.ts
  • app/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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.