{"id":20690493,"url":"https://github.com/octree/swiftythemekit","last_synced_at":"2025-10-14T12:09:13.301Z","repository":{"id":56922349,"uuid":"144562066","full_name":"octree/SwiftyThemeKit","owner":"octree","description":"ThemeKit in Swift","archived":false,"fork":false,"pushed_at":"2019-04-28T13:44:36.000Z","size":8558,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T04:38:06.935Z","etag":null,"topics":["color","ios","nightmode","scheme","style","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-13T10:05:27.000Z","updated_at":"2021-11-18T21:57:08.000Z","dependencies_parsed_at":"2022-08-20T22:20:14.130Z","dependency_job_id":null,"html_url":"https://github.com/octree/SwiftyThemeKit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/octree/SwiftyThemeKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FSwiftyThemeKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FSwiftyThemeKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FSwiftyThemeKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FSwiftyThemeKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octree","download_url":"https://codeload.github.com/octree/SwiftyThemeKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FSwiftyThemeKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019415,"owners_count":26086575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","ios","nightmode","scheme","style","swift"],"created_at":"2024-11-16T23:13:22.937Z","updated_at":"2025-10-14T12:09:13.271Z","avatar_url":"https://github.com/octree.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyThemeKit\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SwiftyThemeKit.svg)](https://img.shields.io/cocoapods/v/SwiftyThemeKit.svg)\n![Platform](https://img.shields.io/cocoapods/p/SwiftyThemeKit.svg?style=flat)\n\n自动产生配色方案，一键切换夜间模式。\n\n\n\n配色是参考的 [colorless.app](https://colorless.app/)\n\n\n\n## Shot\n\n\n\n![demo](./images/demo.gif)\n\n\n\n## Usage\n\n\n\n```swift\n// 设置主题色和样式\n// color： 主题色\n// style：light、dark、night\nThemeManager.shared.changeTheme(with: color, style: style)\n\n// bind\nnavigationController?.navigationBar.tk.barTintColor = \\Theme.background.bar\nlabel.tk.textColor = \\Theme.text.primary\nview.tk.backgroundColor = \\Theme.background.primary\n\n// 切换主题， view 会自动更新\nThemeManager.shared.changeTheme(with: anotherColor, style: .night)\n```\n\n\n\n\n\n## Installation\n\n\n\n### carthage\n\n```\ngithub \"octree/SwiftyThemeKit\"  ~\u003e 1.0.0\n```\n\n\n\n### CocoaPods\n\n```\npod 'SwiftyThemeKit', '~\u003e 1.0.0'\n```\n\n\n\n\n\n## License\n\n\n\nThemeKit is released under the MIT license. See LICENSE for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctree%2Fswiftythemekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctree%2Fswiftythemekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctree%2Fswiftythemekit/lists"}