{"id":24302864,"url":"https://github.com/digipolitan/monet","last_synced_at":"2026-04-21T06:31:36.225Z","repository":{"id":62447982,"uuid":"108099552","full_name":"Digipolitan/monet","owner":"Digipolitan","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-31T11:41:35.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-19T12:42:13.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Digipolitan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-24T08:36:54.000Z","updated_at":"2019-05-31T11:41:29.000Z","dependencies_parsed_at":"2022-11-01T23:33:32.594Z","dependency_job_id":null,"html_url":"https://github.com/Digipolitan/monet","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fmonet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fmonet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fmonet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fmonet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Digipolitan","download_url":"https://codeload.github.com/Digipolitan/monet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242225892,"owners_count":20092669,"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","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":[],"created_at":"2025-01-17T00:19:56.311Z","updated_at":"2026-04-21T06:31:36.181Z","avatar_url":"https://github.com/Digipolitan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Monet\n=================================\n\n[![Swift Version](https://img.shields.io/badge/swift-5.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n[![Build Status](https://travis-ci.org/Digipolitan/dependency-injector.svg?branch=master)](https://travis-ci.org/Digipolitan/monet)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Monet.svg)](https://img.shields.io/cocoapods/v/Monet.svg)\n[![Carthage Compatible](https://img.shields.io/badge/carthage-compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/Monet.svg?style=flat)](http://cocoadocs.org/docsets/Monet)\n[![Twitter](https://img.shields.io/badge/twitter-@Digipolitan-blue.svg?style=flat)](http://twitter.com/Digipolitan)\n\nTheme manager, to simplify applications appearences.\n\n## Installation\n\n### CocoaPods\n\nTo install Monet with CocoaPods, add the following lines to your `Podfile`.\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\npod 'Monet'\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate Monet into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```\ngithub 'Digipolitan/monet' ~\u003e 2.0\n```\n\nRun `carthage update` to build the framework and drag the built `Monet.framework` into your Xcode project.\n\n## The Basics\n\nYou need to **create** your theme template in **json**.\u003cbr\u003e\nOn this example we create **default.json** which correspond to the default template of the app.\n\n```json\n{\n    \"identifier\": \"com.digipolitan.theme.default\",\n    \"@colors\": {\n        \"primary\": \"#FF877F\"\n    },\n    \"@fonts\": {\n        \"regular-body\": {\n            \"name\": \"Optima-Regular\",\n            \"size\": 48\n        },\n        \"bold-action\": {\n            \"name\": \"Optima-Bold\",\n            \"size\": 15\n        }\n    },\n    \"appearances\": {\n        \"views\": {\n            \"scene\" : {\n                \"backgroundColor\": \"#123456\"\n            }\n        },\n        \"texts\": {\n            \"body\": {\n                \"backgroundColor\": \"@colors/primary\",\n                \"foregroundColor\": \"#323233\",\n                \"font\": \"@fonts/regular-body\"\n            },\n            \"action\": {\n                \"backgroundColor\": \"@colors/primary\",\n                \"foregroundColor\": \"#FFFFFF\",\n                \"font\": \"@fonts/bold-action\"\n            }\n        }\n    }\n}\n```\nThen you can set your default theme like following\n\n```swift\nMonet.shared.theme = try? Theme.from(jsonFile: \"default\")\n```\n\nThen you can just set all the appearence of your app like following\n\n```swift\nself.label.setAppearance(theme.appearances.texts[\"body\"])\nself.view.setAppearance(theme.appearances.views[\"scene\"])\n```\n\nNow it's possible to setup appearance in the InterfaceBuilder with the dynamic key `appearanceIdentifier` for each UIView subclasses\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details!\n\nThis project adheres to the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).\nBy participating, you are expected to uphold this code. Please report\nunacceptable behavior to [contact@digipolitan.com](mailto:contact@digipolitan.com).\n\n## License\n\nMonet is licensed under the [BSD 3-Clause license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Fmonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigipolitan%2Fmonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Fmonet/lists"}