{"id":15194380,"url":"https://github.com/xanderfrangos/windows-accent-colors","last_synced_at":"2026-03-04T03:31:38.186Z","repository":{"id":105053464,"uuid":"442926363","full_name":"xanderfrangos/windows-accent-colors","owner":"xanderfrangos","description":"Node.js module to get user accent colors, including the derivative colors used by the Windows UI. (Windows 10+)","archived":false,"fork":false,"pushed_at":"2024-01-15T03:53:31.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-27T22:41:30.408Z","etag":null,"topics":["accent-color","colors","electron","node","nodejs","windows","windows-10","windows-11"],"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/xanderfrangos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-30T00:39:53.000Z","updated_at":"2024-09-21T15:26:50.000Z","dependencies_parsed_at":"2024-09-11T12:31:09.801Z","dependency_job_id":"9bef4688-1ea4-4834-b42b-2cb5ece0bdad","html_url":"https://github.com/xanderfrangos/windows-accent-colors","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"ee40491f3786cf42ff178205cdb836979a1c07fe"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xanderfrangos/windows-accent-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanderfrangos%2Fwindows-accent-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanderfrangos%2Fwindows-accent-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanderfrangos%2Fwindows-accent-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanderfrangos%2Fwindows-accent-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xanderfrangos","download_url":"https://codeload.github.com/xanderfrangos/windows-accent-colors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanderfrangos%2Fwindows-accent-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["accent-color","colors","electron","node","nodejs","windows","windows-10","windows-11"],"created_at":"2024-09-27T22:44:11.032Z","updated_at":"2026-03-04T03:31:38.161Z","avatar_url":"https://github.com/xanderfrangos.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows-accent-colors\n\nNode.js module for accessing the accent colors in Windows (via WinRT). This is intended as a supplement to [Electron's](https://electronjs.org/) own accent color detection. While Electron's accent color is the correct, user-selected color, it is not always the color used throughout Windows. This module provides Node.js/Electron developers with the derivative accent colors used throughout the Windows 10/11 UI. These colors are identical to the ones available via WinRT ([see Microsoft's documentation](https://docs.microsoft.com/en-us/uwp/api/Windows.UI.ViewManagement.UIColorType?view=winrt-22000)).\n\n## Installation\n\n```cmd\nnpm i windows-accent-colors\n```\n\n## Usage\n\nImport the module and use `getAccentColors()`. For example:\n```js\nconst AccentColors = require(\"windows-accent-colors\");\nconst colors = AccentColors.getAccentColors();\nconsole.log(`The color of sliders in Windows 11 is: ${colors.accentLight2.hex}`);\n```\n\nThe function `getAccentColors()` will return an object of all derivative accent colors in RGB and Hex format. For example:\n```json\n{\n  \"accent\": { \"r\": 232, \"g\": 17, \"b\": 35, \"hex\": \"#e81123\" },\n  \"accentDark1\": { \"r\": 210, \"g\": 14, \"b\": 30, \"hex\": \"#d20e1e\" },\n  \"accentDark2\": { \"r\": 158, \"g\": 9, \"b\": 18, \"hex\": \"#9e0912\" },\n  \"accentDark3\": { \"r\": 111, \"g\": 3, \"b\": 6, \"hex\": \"#6f0306\" },\n  \"accentLight1\": { \"r\": 239, \"g\": 39, \"b\": 51, \"hex\": \"#ef2733\" },\n  \"accentLight2\": { \"r\": 244, \"g\": 103, \"b\": 98, \"hex\": \"#f46762\" },\n  \"accentLight3\": { \"r\": 251, \"g\": 157, \"b\": 139, \"hex\": \"#fb9d8b\" },\n  \"background\": { \"r\": 0, \"g\": 0, \"b\": 0, \"hex\": \"#000000\" },\n  \"foreground\": { \"r\": 255, \"g\": 255, \"b\": 255, \"hex\": \"#ffffff\" }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxanderfrangos%2Fwindows-accent-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxanderfrangos%2Fwindows-accent-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxanderfrangos%2Fwindows-accent-colors/lists"}