Latest 0.1.0
Homepage https://github.com/NilStack/NilThemeKit
License MIT
Frameworks Foundation, UIKit
Authors

NilThemeKit is Swift version MAThemeKit by @mamaral.

MAThemeKit provides iOS developers the ability to create a coherent color theme throughout their entire application using a single line of code, removing the need to mess with the dozens of UIAppearance proxies for each UI component. — from MAThemeKit

currently, it just translated MAThemeKit to Swift.

Usage

Copy NilThemeKit.swift to your project and set the theme with parameters like primaryColor, secondaryColor, fontname and lightStatusBar style.

NilThemeKit.setupTheme(primaryColor: NilThemeKit.color(r: 3.0, g: 169.0, b: 244.0), secondaryColor:UIColor.whiteColor(),fontname: "HelveticaNeue-Light",lightStatusBar:true)

demo

You can use my another open sourced library NilColorKit to set the theme with Google material colors and FlatUI Colors.

License

Under MIT License. Please refer to LICENSE.md.

Latest podspec

{
    "name": "NilThemeKit",
    "version": "0.1.0",
    "summary": "NilThemeKit helps you create coherent color themes in Swift.",
    "homepage": "https://github.com/NilStack/NilThemeKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Peng Guo": "[email protected]"
    },
    "social_media_url": "http://twitter.com/NilStack",
    "source": {
        "git": "https://github.com/NilStack/NilThemeKit.git",
        "tag": "v0.1.0"
    },
    "source_files": "NilThemeKit/NilThemeKit.swift",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This