{"id":13872222,"url":"https://github.com/diniska/swiftui-system-colors","last_synced_at":"2026-02-19T02:02:20.231Z","repository":{"id":41850862,"uuid":"312769938","full_name":"diniska/swiftui-system-colors","owner":"diniska","description":"Use standard system colors from SwiftUI on iOS, macOS or tvOS ","archived":false,"fork":false,"pushed_at":"2022-04-26T15:15:33.000Z","size":23,"stargazers_count":46,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"void","last_synced_at":"2025-11-18T09:27:37.002Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diniska.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":"2020-11-14T07:42:07.000Z","updated_at":"2025-11-11T12:56:32.000Z","dependencies_parsed_at":"2022-07-22T05:32:06.382Z","dependency_job_id":null,"html_url":"https://github.com/diniska/swiftui-system-colors","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/diniska/swiftui-system-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniska%2Fswiftui-system-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniska%2Fswiftui-system-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniska%2Fswiftui-system-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniska%2Fswiftui-system-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diniska","download_url":"https://codeload.github.com/diniska/swiftui-system-colors/tar.gz/refs/heads/void","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diniska%2Fswiftui-system-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29600847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"online","status_checked_at":"2026-02-19T02:00:07.702Z","response_time":117,"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":[],"created_at":"2024-08-05T23:00:37.288Z","updated_at":"2026-02-19T02:02:20.209Z","avatar_url":"https://github.com/diniska.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# SwiftUI System Colors\n\n![Swift 5.3](https://img.shields.io/badge/Swift-5.3-FA5B2C) ![Xcode 12](https://img.shields.io/badge/Xcode-12-44B3F6) ![iOS 8.0](https://img.shields.io/badge/iOS-8.0-178DF6) ![iPadOS 8.0](https://img.shields.io/badge/iPadOS-8.0-178DF6) ![MacOS 10.10](https://img.shields.io/badge/MacOS-10.10-178DF6) ![Tests](https://github.com/diniska/swiftui-system-colors/workflows/Build%20\u0026%20Test/badge.svg)\n\nUse standard **system colors** from **SwiftUI** on iOS, macOS or tvOS.\n\nCurrently, SwiftUI doesn't provide access to standard system colors, so you can find some sort of color conversion (`Color(UIColor.label)`) in almost any SwiftUI project. This library focusing on bringing all the system colors to SwiftUI so you no longer need to write the conversion manually every time.\n\nBenefits of using `SystemColors` package dependency in your project compared to custom implementation or copy-pasting:\n\n* Receive **updates** soon after a system new color is introduced,\n* Standardised **naming** for iOS and macOS so that it is always `Color.label` instead of iOS's `UIColor.label` and macOS's `NSColor.labelColor`\n* All the **compatibility** checks like `@available(iOS 13.0, *)` or `#if canImport(UIKit)` are implemented by the package and maintained by the community - less chance to introduce an error in one of the platforms support.\n\n\n## How to use\n\n### Step 1\n\nAdd a dependency using Swift Package Manager to your project: [https://github.com/diniska/swiftui-system-colors](https://github.com/diniska/swiftui-system-colors)\n\n### Step 2\n\nImport the dependency\n\n```swift\nimport SystemColors\n```\n\n### Step 3\n\nUse system colors from SwiftUI the same way you do with `UIColor` or `NSColor`:\n\n```swift\nRectangle()\n\t.background(Color.label)\n```\n\n\n## Contribution\n\nPlease, open a pull request or an issue if you find that one or the other color is missing or represented in a wrong way. \n\nPlease, only add system colors to this package. We only provide convenient interfaces without making a decision about how some colors should look.\nFor example, if there is no color `systemFill` provided by macOS - we don't provide it on macOS either, but for iOS, it exists and we provide that color on iOS.\n\nIf you have ideas of how to better test the provided bridging code - please add an issue with the description of your idea or add a pull request with the implementation.\n\nPlease, keep the similar code style if you propose a change to the package. Current code style has the next benefits:\n\n* Easy to edit with multiple cursors\n* Easy to add new colors with documentation by copying the documentation from Xcode and using multiple cursors\n* Providing relevant links to the parts of the standard documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiniska%2Fswiftui-system-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiniska%2Fswiftui-system-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiniska%2Fswiftui-system-colors/lists"}