Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: add platform, weight to monospace font
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed Jun 15, 2023
1 parent 0301b44 commit 4b1670e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ StyleDictionary.registerTransform({
},
transformer: (token, options) => {
if (token.name === 'mono' || token.path.includes('code')) {
return 'UIFont.monospacedSystemFont(ofSize: 15)';
return 'UIFont.monospacedSystemFont(ofSize: 15, weight: .regular)';
}
return 'UIFont.systemFont(ofSize: 15)';
}
Expand Down
1 change: 1 addition & 0 deletions dist_ios/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PackageDescription

let package = Package(
name: "DialtoneTokens",
platforms: [.iOS(.v15)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
Expand Down

0 comments on commit 4b1670e

Please sign in to comment.