Skip to content

feat: Add design tokens, theming & font system#1636

Open
bthebladeprimer wants to merge 2 commits into
bn/feature/cc-06-public-apifrom
bn/feature/cc-07-design-tokens
Open

feat: Add design tokens, theming & font system#1636
bthebladeprimer wants to merge 2 commits into
bn/feature/cc-06-public-apifrom
bn/feature/cc-07-design-tokens

Conversation

@bthebladeprimer
Copy link
Copy Markdown
Contributor

Summary

  • Adds DesignTokens and DesignTokensDark with full light/dark mode token definitions
  • Adds DesignTokensManager for runtime token resolution with appearance mode support
  • Adds DesignTokensProcessor for parsing and transforming JSON-based design token files
  • Adds FontRegistration and PrimerFont for custom font loading and management
  • Adds UI design utilities: CheckoutColors, PrimerLayout, AnimationConstants, SlideInModifier
  • Includes base.json and dark.json token definition files
  • Adds 3 test files: DesignTokensManagerTests, DesignTokensProcessorTests, AppearanceModeTests

Context

PR 7 of 15 in the CheckoutComponents feature split. Provides the visual foundation (colors, typography, spacing, animations) for all UI components. Depends on PR 6 (#1635).

Tracker: https://www.notion.so/32fca65dc30e81dabf66f33e2b58c3a1

Test plan

  • Verify DesignTokensManagerTests passes (light/dark mode token resolution)
  • Verify DesignTokensProcessorTests passes (JSON parsing edge cases)
  • Verify AppearanceModeTests passes
  • Confirm JSON token files are valid and parseable
  • Run: xcodebuild -workspace PrimerSDK.xcworkspace -scheme PrimerSDKTests -destination "platform=iOS Simulator,name=iPhone 16" test

@bthebladeprimer bthebladeprimer requested a review from a team as a code owner March 26, 2026 15:42
@bthebladeprimer bthebladeprimer self-assigned this Mar 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Warnings
⚠️ > Pull Request size seems relatively large. If this Pull Request contains multiple changes, please split each into separate PR will helps faster, easier review.

Generated by 🚫 Danger Swift against 90d9580

@bthebladeprimer bthebladeprimer marked this pull request as draft March 26, 2026 16:32
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-06-public-api branch from b106d79 to 8940f4a Compare March 31, 2026 14:06
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-07-design-tokens branch from be4aa75 to b71d3ee Compare March 31, 2026 14:06
@bthebladeprimer bthebladeprimer marked this pull request as ready for review April 3, 2026 18:09
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-06-public-api branch from 3bf8f05 to 6cd9137 Compare April 15, 2026 13:02
@bthebladeprimer bthebladeprimer requested a review from a team as a code owner April 15, 2026 13:02
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-07-design-tokens branch from c9092d5 to 90d9580 Compare April 15, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant