Skip to content

Conversation

@v-volod
Copy link
Collaborator

@v-volod v-volod commented Dec 22, 2025

What

An example application (Example) has been added to demonstrate the usage of the SnappThemingDesignTokensSupport library, along with SnappDesignTokens and SnappTheming. The example app parses a design.tokens.json file and visually displays the extracted colors, metrics, fonts, and typography in a SwiftUI interface.

Why

The addition of an example application provides a clear, practical demonstration of how to integrate and use the SnappThemingDesignTokensSupport library within a real-world project. It helps developers understand the workflow from a DTCG design.tokens.json file to a functional SwiftUI theme, showcasing the benefits of the theming ecosystem. This will serve as valuable documentation and a quick start guide for new users.

Changes

  • New Directory: Example/ containing a full Xcode project (Example.xcodeproj), SwiftUI application files (ExampleApp.swift, ContentView.swift), asset catalogs, and a sample design.tokens.json file.
  • The Example project is configured to use SnappThemingDesignTokensSupport as a local Swift Package dependency.
  • ContentView.swift demonstrates parsing design tokens, applying token processors, and rendering various themed UI elements (colors, metrics, fonts, typography) using SnappTheming.

Screenshots

Light Dark

@github-actions
Copy link

🛡️ Code Coverage Report

Target Lines Coverage
1 SnappThemingDesignTokensSupport 619 99.68%

Generated by Swift Coverage Action.

@v-volod v-volod merged commit 2394bb5 into main Dec 22, 2025
1 check passed
@v-volod v-volod deleted the 10-add-sample-app-to-showcase-_snappdesigntokens_-_snapptheming_-usage branch December 22, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sample app to showcase _SnappDesignTokens_ + _SnappTheming_ usage

3 participants