{"id":19210448,"url":"https://github.com/ryanslikesocool/nativecolorscheme","last_synced_at":"2026-03-08T05:32:05.610Z","repository":{"id":133710030,"uuid":"292016695","full_name":"ryanslikesocool/NativeColorScheme","owner":"ryanslikesocool","description":"System dark mode detection in Unity for macOS and iOS","archived":false,"fork":false,"pushed_at":"2024-03-09T06:55:07.000Z","size":223,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T19:24:16.005Z","etag":null,"topics":["ios","macos","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ryanslikesocool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-01T14:14:26.000Z","updated_at":"2024-03-04T12:07:36.000Z","dependencies_parsed_at":"2024-11-09T13:36:51.870Z","dependency_job_id":"afeb1886-20e9-4dd9-8d8b-a7c8a9240806","html_url":"https://github.com/ryanslikesocool/NativeColorScheme","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ryanslikesocool/NativeColorScheme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanslikesocool%2FNativeColorScheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanslikesocool%2FNativeColorScheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanslikesocool%2FNativeColorScheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanslikesocool%2FNativeColorScheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanslikesocool","download_url":"https://codeload.github.com/ryanslikesocool/NativeColorScheme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanslikesocool%2FNativeColorScheme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30246725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"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":["ios","macos","unity"],"created_at":"2024-11-09T13:36:07.908Z","updated_at":"2026-03-08T05:32:05.586Z","avatar_url":"https://github.com/ryanslikesocool.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeColorScheme\nSystem color scheme detection in Unity for macOS and iOS.\n\n## Requirements\n### Runtime\n- macOS 11+\n- iOS 14+\n- tvOS 14+\n\n---\n\n### Editor\n- macOS 11+, Unity 2020.3+\n\n## Installation (Unity Package Manager)\n- Select \"Add package from git URL...\" from the plus menu in the package manager window.\n- Paste the package's git url.\n```\nhttps://github.com/ryanslikesocool/NativeColorScheme.git\n```\n\n## Usage\n### C#\n```cs\nusing NativeColorScheme;\n\nstatic class Somewhere {\n\tstatic Color GetColorForColorScheme() =\u003e ColorSchemeUtil.Current switch {\n\t\tColorScheme.Light =\u003e Color.white,\n\t\tColorScheme.Dark =\u003e Color.black,\n\t\t_ =\u003e Color.magenta\n\t};\n}\n```\nUnsupported platforms or OS versions will return `null`.\n\n---\n\n### Editor\nUsing the Unity editor on macOS, the plugin will automatically detect the system's color scheme and change the editor accordingly.\\\nThe preference can be set to `System`, `Light`, or `Dark` from the `Window/Color Scheme` menu.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanslikesocool%2Fnativecolorscheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanslikesocool%2Fnativecolorscheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanslikesocool%2Fnativecolorscheme/lists"}