{"id":21924393,"url":"https://github.com/brandonhimpfen/gradient-css-generator","last_synced_at":"2026-05-09T09:34:11.702Z","repository":{"id":184467348,"uuid":"655905717","full_name":"brandonhimpfen/gradient-css-generator","owner":"brandonhimpfen","description":"A package that helps generate CSS gradients.","archived":false,"fork":false,"pushed_at":"2023-06-19T21:46:25.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T01:08:53.787Z","etag":null,"topics":["css","css-gradient","gradient","gradient-css"],"latest_commit_sha":null,"homepage":"https://www.himpfen.com/gradient-css-generator/","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/brandonhimpfen.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}},"created_at":"2023-06-19T21:32:22.000Z","updated_at":"2023-11-06T17:35:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee1041f2-7a50-4bb5-8e99-399f38f06909","html_url":"https://github.com/brandonhimpfen/gradient-css-generator","commit_stats":null,"previous_names":["brandonhimpfen/gradient-css-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonhimpfen%2Fgradient-css-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonhimpfen%2Fgradient-css-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonhimpfen%2Fgradient-css-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonhimpfen%2Fgradient-css-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonhimpfen","download_url":"https://codeload.github.com/brandonhimpfen/gradient-css-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244947020,"owners_count":20536546,"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":["css","css-gradient","gradient","gradient-css"],"created_at":"2024-11-28T21:14:35.748Z","updated_at":"2026-05-09T09:34:06.668Z","avatar_url":"https://github.com/brandonhimpfen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gradient-css-generator\n\nA package that helps generate CSS gradients.\n\n## Installation\n\nInstall the package using npm:\n\n```\nnpm install gradient-css-generator\n```\n\n## Usage\n\n```\nconst generateGradient = require('gradient-css-generator');\n\nconst cssGradient = generateGradient('#ff0000', '#00ff00', 'to right');\nconsole.log(cssGradient);\n```\n\nThe `generateGradient` function takes three parameters:\n\n`startColor`: The starting color of the gradient in hex format.\n`endColor`: The ending color of the gradient in hex format.\n`direction`: The direction of the gradient (e.g., `'to top'`, `'to bottom'`, `'to left'`, `'to right'`). The default is `'to bottom'`.\n\nThe function returns a CSS gradient string that you can use in your stylesheets.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonhimpfen%2Fgradient-css-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonhimpfen%2Fgradient-css-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonhimpfen%2Fgradient-css-generator/lists"}