{"id":21089758,"url":"https://github.com/hituziando/flat_ui_colors","last_synced_at":"2026-04-28T14:33:32.804Z","repository":{"id":77918163,"uuid":"405594790","full_name":"HituziANDO/flat_ui_colors","owner":"HituziANDO","description":"This python script does scraping Flat UI Colors website and outputs the result as the source code files of the flat ui colors in some programming languages.","archived":false,"fork":false,"pushed_at":"2021-09-15T13:38:23.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T14:36:44.996Z","etag":null,"topics":["color","flat-ui-colors","scraping","selenium"],"latest_commit_sha":null,"homepage":"","language":"Python","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/HituziANDO.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-09-12T09:04:00.000Z","updated_at":"2021-09-15T13:38:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"64ac0160-3b2c-433d-b909-cc8e55f9c8ea","html_url":"https://github.com/HituziANDO/flat_ui_colors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HituziANDO/flat_ui_colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HituziANDO%2Fflat_ui_colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HituziANDO%2Fflat_ui_colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HituziANDO%2Fflat_ui_colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HituziANDO%2Fflat_ui_colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HituziANDO","download_url":"https://codeload.github.com/HituziANDO/flat_ui_colors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HituziANDO%2Fflat_ui_colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32385127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["color","flat-ui-colors","scraping","selenium"],"created_at":"2024-11-19T21:31:09.887Z","updated_at":"2026-04-28T14:33:32.786Z","avatar_url":"https://github.com/HituziANDO.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flat_ui_colors\n\nThis python script does scraping [Flat UI Colors website](https://flatuicolors.com/) and outputs the result as the source code files of the flat ui colors in some programming languages.\n\n## Outputs of Scraping\n\nOutputs of scraping are [here](https://github.com/HituziANDO/flat_ui_colors/tree/main/dist).\n\n- [JavaScript](https://github.com/HituziANDO/flat_ui_colors/blob/main/dist/flat_ui_colors.js)\n- [SCSS](https://github.com/HituziANDO/flat_ui_colors/blob/main/dist/flat_ui_colors.scss)\n- [Swift](https://github.com/HituziANDO/flat_ui_colors/blob/main/dist/FlatUIColors.swift)\n- [TypeScript](https://github.com/HituziANDO/flat_ui_colors/blob/main/dist/FlatUIColors.ts)\n\n## Require\n\n- Python 3.9+\n- Google Chrome\n- chromedriver\n\nI tested in the following environment when scraping.\n\n- macOS 10.15.7\n- Python 3.9.7\n- Google Chrome 93.0.4577.63\n- chromedriver 93.0.4577.63\n- selenium 3.141.0\n\n## Setup\n\n### Install packages\n\n```\npip install -r requirements.txt\n```\n\n### Install Chrome\n\nInstall Chrome browser to your PC.\n\n### Install chromedriver\n\n#### on Mac\n\n1. Download ChromeDriver zip from https://chromedriver.chromium.org/downloads\n2. Unzip\n3. Move chromedriver to `/usr/local/bin/chromedriver`\n\nCheck chromedriver version.\n\n```\nchromedriver --version\n```\n\n## Usage\n\n### Run scraping\n\n```\npython app/main.py\n```\n\n### Use FlatUIColors\n\nScraping results output into [dist](https://github.com/HituziANDO/flat_ui_colors/tree/main/dist) directory as FlatUIColors source files. Copy the file of programming language using by your project into the project.\n\n#### JavaScript\n\nFor example\n\n```javascript\nimport FlatUIColors from \"path/to/FlatUIColors\"\n\nconst color1 = FlatUIColors.Gb.protossPylon.rgbAsCSS()\nconsole.log(color1)  // -\u003e \"rgb(0, 168, 255)\"\n\nconst color2 = FlatUIColors.Gb.downloadProgress.rgbaAsCSS(0.5)\nconsole.log(color2)  // -\u003e \"rgba(76, 209, 55, 0.5)\"\n\nconst color3 = FlatUIColors.Tr.palette[0].rgbAsCSS()\nconsole.log(color3)  // -\u003e \"rgb(205, 132, 241)\"\n```\n\n#### TypeScript\n\nFor example\n\n```typescript\nimport FlatUIColors from \"path/to/FlatUIColors\"\n\nconst color1 = FlatUIColors.Gb.protossPylon.rgbAsCSS()\nconsole.log(color1)  // -\u003e \"rgb(0, 168, 255)\"\n\nconst color2 = FlatUIColors.Gb.downloadProgress.rgbaAsCSS(0.5)\nconsole.log(color2)  // -\u003e \"rgba(76, 209, 55, 0.5)\"\n\nconst color3 = FlatUIColors.Tr.palette[0].rgbAsCSS()\nconsole.log(color3)  // -\u003e \"rgb(205, 132, 241)\"\n```\n\n#### Swift\n\nFor example\n\n##### iOS\n\n```swift\n// FlatUIColors returns UIColor object.\nlet color: UIColor = FlatUIColors.Gb.protossPylon\nvar red: CGFloat = 0\nvar green: CGFloat = 0\nvar blue: CGFloat = 0\nvar alpha: CGFloat = 0\ncolor.getRed(\u0026red, green: \u0026green, blue: \u0026blue, alpha: \u0026alpha)\nprint(\"r:\\(red * 255), g:\\(green * 255), b:\\(blue * 255), a:\\(alpha)\")\n// -\u003e r:0.0, g:168.0, b:255.0, a:1.0\n```\n\n##### macOS\n\n```swift\n// FlatUIColors returns NSColor object.\nlet color: NSColor = FlatUIColors.Gb.protossPylon\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhituziando%2Fflat_ui_colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhituziando%2Fflat_ui_colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhituziando%2Fflat_ui_colors/lists"}