{"id":17972642,"url":"https://github.com/vasanthv/flat-color-generator","last_synced_at":"2025-03-25T12:33:10.686Z","repository":{"id":57237972,"uuid":"128647066","full_name":"vasanthv/flat-color-generator","owner":"vasanthv","description":"Flat color generator based on Mariam Maarouf's flat-color-generator. https://github.com/mariamrf/flat-color-generator","archived":false,"fork":false,"pushed_at":"2018-04-08T16:34:28.000Z","size":3,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T08:24:41.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vasanthv.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":"2018-04-08T14:01:04.000Z","updated_at":"2024-07-23T07:16:28.000Z","dependencies_parsed_at":"2022-08-26T15:01:42.628Z","dependency_job_id":null,"html_url":"https://github.com/vasanthv/flat-color-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasanthv%2Fflat-color-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasanthv%2Fflat-color-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasanthv%2Fflat-color-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasanthv%2Fflat-color-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasanthv","download_url":"https://codeload.github.com/vasanthv/flat-color-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245463020,"owners_count":20619598,"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":"2024-10-29T16:24:26.452Z","updated_at":"2025-03-25T12:33:10.234Z","avatar_url":"https://github.com/vasanthv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flat-color-generator\nFlat color generator based on Mariam Maarouf's [flat-color-generator](https://github.com/mariamrf/flat-color-generator)\n\n\nRead the original documentation by Mariam Maarouf [here](https://github.com/mariamrf/flat-color-generator)\n\n## Install\nInstall using [npm](https://npmjs.com/).\n```\nnpm install flat-color-generator\n```\n\n## Usage\n```js\nconst flatuicolor = require('flat-color-generator');\n\nconst color = flatuicolor();\n\nconsole.log(color.hex); // prints the hex value of the color\n```\n\nYou can pass in an optional hue value to choose a random color from that hue value/degree.\n\n```js\nconst hue = 45;\nconst color = flatuicolor(hue);\n```\n\n\nThe return object has the following properties:\n\n| property |                        |\n|----------|------------------------|\n| h        | hue                    |\n| s        | saturation             |\n| v        | value                  |\n| r        | red                    |\n| g        | green                  |\n| b        | blue                   |\n| hex      | hex value of the color |\n\n## Credits\n[flat-color-generator](https://github.com/mariamrf/flat-color-generator) by Mariam Maarouf\n\n## Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasanthv%2Fflat-color-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasanthv%2Fflat-color-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasanthv%2Fflat-color-generator/lists"}