{"id":35137951,"url":"https://github.com/wesselvandalen/react-typography-gradient","last_synced_at":"2025-12-28T10:16:59.637Z","repository":{"id":328492220,"uuid":"1109499305","full_name":"wesselvandalen/react-typography-gradient","owner":"wesselvandalen","description":"A React library that allows you to easily create gradients for your typography.","archived":false,"fork":false,"pushed_at":"2025-12-04T22:49:25.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-15T05:23:26.861Z","etag":null,"topics":["javascript","library","npm","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-typography-gradient","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wesselvandalen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-03T22:19:35.000Z","updated_at":"2025-12-04T22:49:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wesselvandalen/react-typography-gradient","commit_stats":null,"previous_names":["wesselvandalen/react-typography-gradient"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wesselvandalen/react-typography-gradient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesselvandalen%2Freact-typography-gradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesselvandalen%2Freact-typography-gradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesselvandalen%2Freact-typography-gradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesselvandalen%2Freact-typography-gradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesselvandalen","download_url":"https://codeload.github.com/wesselvandalen/react-typography-gradient/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesselvandalen%2Freact-typography-gradient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28098076,"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","status":"online","status_checked_at":"2025-12-28T02:00:05.685Z","response_time":62,"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":["javascript","library","npm","react"],"created_at":"2025-12-28T10:16:54.667Z","updated_at":"2025-12-28T10:16:59.631Z","avatar_url":"https://github.com/wesselvandalen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-typography-gradient\n\nAlways wanted those smooth Apple gradient texts, but not the frustration of CSS? React-typography-gradient is a library for React, which allows you to create clean, light-weight and easy-to-use gradients for your typography.\n\n## Installation\n\n```bash\nnpm install react-typography-gradient\n```\n\n## Usage\n\nImport the function you wish to use from the [functions](#functions) section, and use like so:\n\n```jsx\n// Import the function.\nimport createGradient from \"react-typography-gradient\";\n\n// Creates a purple-blue ish gradient for your text element.\nconst purple_blue = createGradient([\"#e022f5\", \"#3cc1ff\", \"#2278db\"]);\n\n// Use it as a style attribute.\n\u003ch3 style={purple_blue} \u003eReact-typography-gradient\u003c/h3\u003e\n```\n\nResult:\n\n\u003cimg src=\"./assets/rtg-text.png\" alt=\"A text that says React-typography-gradient in a purple-pink-orange gradient style.\" style=\"border-radius: 12px; max-width: 720px; width: 100%;\" /\u003e\n\n## Functions\n\n### createGradient(colors: string[])\n  Returns you a gradient for your text, depending on the colors in the parameter. Parameter colors supports \u003ca href=\"https://www.color-hex.com/\"\u003ehex\u003c/a\u003e, \u003ca href=\"https://en.wikipedia.org/wiki/RGB_color_model\"\u003ergb\u003c/a\u003e, \u003ca href=\"https://www.w3schools.com/html/html_colors_hsl.asp\"\u003eHSL/HSLA\u003c/a\u003e, \u003ca href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/hwb\"\u003eHWB\u003c/a\u003e and \u003ca href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/lch\"\u003eLCH and LAB\u003c/a\u003e.\n\n```jsx \nconst purple_blue = createGradient([\"#e022f5\", \"rgb(60 193 255)\", \"hsl(300, 100%, 50%, .3)\", \"lab(50 80 30)\"]);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesselvandalen%2Freact-typography-gradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesselvandalen%2Freact-typography-gradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesselvandalen%2Freact-typography-gradient/lists"}