Skip to content
🎨 Makes your TypographyKit color palette available in Xcode Interface Builder.
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TypographyKitPalette.xcodeproj
TypographyKitPalette
docs/images
.gitignore
.swift-version
.swiftformat
.swiftlint.yml
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
Package.swift
Palette.png
PaletteLogo.png
README.md
palette

README.md

Palette for TypographyKit

CI Status Maintainability License Platform Twitter Swift 5.0

Palette is a tool for use with TypographyKit which takes your app's color palette as defined in your TypographyKit.json or TypographyKit.plist file and generates a palette for use in Xcode Interface Builder so that developers can easily make use of the same colors regardless of whether they are being assigned programmatically or through IB.

In order to support dark mode in iOS 13 or higher, Palette now includes the option to export an asset catalog to host your dynamic colors.

Installation

Homebrew

To install using Homebrew:

brew install rwbutler/tools/palette

Usage

Color Palettes

In order to export a color palette for use in Xcode, Palette is invoked as follows:

palette --color-list <color palette name> --config-url <url> -export palette

Where the --color-list parameter specifies the name of the color palette as you wish it to appear in Interface Builder and --config-url specifies the URL to your TypographyKit.json or TypographyKit.plist file. This may either be a path to a local file or remotely-hosted file using either http or https protocol.

Asset Catalogs

In order to support dark mode in iOS 13, Palette now allows colors to be exported to asset catalogs. In order to export an asset catalog invoke palette as follows:

palette --color-list <asset catalog name> --config-url <url> -export assetCatalog --asset-catalog-url <directory to save asset catalog>

The --color-list parameter represents the name of the asset catalog to be exported and the --asset-catalog-url parameter represents the directory to which the asset catalog will be saved.

Author

Ross Butler

License

Palette is available under the MIT license. See the LICENSE file for more info.

Additional Software

Controls

AnimatedGradientView
AnimatedGradientView

Frameworks

  • Cheats - Retro cheat codes for modern iOS apps.
  • Connectivity - Improves on Reachability for determining Internet connectivity in your iOS application.
  • FeatureFlags - Allows developers to configure feature flags, run multiple A/B or MVT tests using a bundled / remotely-hosted JSON configuration file.
  • FlexibleRowHeightGridLayout - A UICollectionView grid layout designed to support Dynamic Type by allowing the height of each row to size to fit content.
  • Hash - Lightweight means of generating message digests and HMACs using popular hash functions including MD5, SHA-1, SHA-256.
  • Skylark - Fully Swift BDD testing framework for writing Cucumber scenarios using Gherkin syntax.
  • TailorSwift - A collection of useful Swift Core Library / Foundation framework extensions.
  • TypographyKit - Consistent & accessible visual styling on iOS with Dynamic Type support.
  • Updates - Automatically detects app updates and gently prompts users to update.
Cheats Connectivity FeatureFlags Skylark TypographyKit Updates
Cheats Connectivity FeatureFlags Skylark TypographyKit Updates

Tools

  • Clear DerivedData - Utility to quickly clear your DerivedData directory simply by typing cdd from the Terminal.
  • Config Validator - Config Validator validates & uploads your configuration files and cache clears your CDN as part of your CI process.
  • IPA Uploader - Uploads your apps to TestFlight & App Store.
  • Palette - Makes your TypographyKit color palette available in Xcode Interface Builder.
Config Validator IPA Uploader Palette
Config Validator IPA Uploader Palette
You can’t perform that action at this time.