{"id":15207087,"url":"https://github.com/charlesstover/react-rainbow-text","last_synced_at":"2026-01-10T03:58:57.082Z","repository":{"id":32851920,"uuid":"144400042","full_name":"CharlesStover/react-rainbow-text","owner":"CharlesStover","description":"Generates rainbow-colored text in React.","archived":true,"fork":false,"pushed_at":"2022-03-24T04:19:38.000Z","size":993,"stargazers_count":5,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-10T18:58:10.894Z","etag":null,"topics":["babel","babeljs","enzyme","es6","javascript","jest","js","mocha","npm","npm-module","npm-package","npmjs","react","react-component","reactjs","travis","travis-ci","travisci","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-rainbow-text","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/CharlesStover.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-08-11T16:14:34.000Z","updated_at":"2024-02-26T08:09:22.000Z","dependencies_parsed_at":"2022-08-07T18:15:37.381Z","dependency_job_id":null,"html_url":"https://github.com/CharlesStover/react-rainbow-text","commit_stats":null,"previous_names":["quisido/react-rainbow-text","charlesstover/react-rainbow-text"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesStover%2Freact-rainbow-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesStover%2Freact-rainbow-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesStover%2Freact-rainbow-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesStover%2Freact-rainbow-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CharlesStover","download_url":"https://codeload.github.com/CharlesStover/react-rainbow-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235051566,"owners_count":18928185,"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":["babel","babeljs","enzyme","es6","javascript","jest","js","mocha","npm","npm-module","npm-package","npmjs","react","react-component","reactjs","travis","travis-ci","travisci","webpack"],"created_at":"2024-09-28T06:21:44.059Z","updated_at":"2025-10-02T23:35:40.251Z","avatar_url":"https://github.com/CharlesStover.png","language":"JavaScript","readme":"# Rainbow Text for React [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Beautifully%20rainbowify%20your%20text%20with%20the%20\u003cRainbowText\u003e%20React%20component.%20pic.twitter.com/moyzdOUjdg\u0026url=https://github.com/CharlesStover/react-rainbow-text\u0026via=CharlesStover\u0026hashtags=react,reactjs,javascript,webdev,webdeveloper,webdevelopment)\n\nGenerates rainbow-colored text in React.\n\n[![version](https://img.shields.io/npm/v/react-rainbow-text.svg)](https://www.npmjs.com/package/react-rainbow-text)\n[![minified size](https://img.shields.io/bundlephobia/min/react-rainbow-text.svg)](https://www.npmjs.com/package/react-rainbow-text)\n[![minzipped size](https://img.shields.io/bundlephobia/minzip/react-rainbow-text.svg)](https://www.npmjs.com/package/react-rainbow-text)\n[![downloads](https://img.shields.io/npm/dt/react-rainbow-text.svg)](https://www.npmjs.com/package/react-rainbow-text)\n[![build](https://travis-ci.com/CharlesStover/react-rainbow-text.svg)](https://travis-ci.com/CharlesStover/react-rainbow-text/)\n\n[![animated demo](https://user-images.githubusercontent.com/343837/43996739-f59a8678-9d8e-11e8-80c3-8ebc115b144f.gif)](https://charlesstover.github.io/rainbow-text/)\n\n## Install\n\n* `npm install react-rainbow-text --save` or\n* `yarn add react-rainbow-text`\n\n## Use\n\n```JS\nimport RainbowText from 'react-rainbow-text';\n\n\u003cRainbowText lightness={0.5} saturation={1}\u003e\n  This is an example sentence that is the color of the rainbow.\n\u003c/RainbowText\u003e\n```\n[![screenshot](https://user-images.githubusercontent.com/343837/43996746-290d6ec6-9d8f-11e8-83ef-ba1edbaad6d2.png)](https://charlesstover.github.io/rainbow-text/)\n\n## Props\n\n* component\n\n  A custom component used for rendering each character.\n\n  `\u003cComponent children={THE_CHARACTER} color={THE_COLOR} /\u003e`\n\n* lightness\n\n  A number from 0 to 1 to represent how dark or light the text is. Default: `0.5`\n\n  0 is black.\n  1 is white.\n  0.5 is full color.\n  \n  **Example of 0.25 Lightness:**\n\n  [![image](https://user-images.githubusercontent.com/343837/44053946-ca2c27c0-9f06-11e8-820d-47d82f51ed0d.png)](https://charlesstover.github.io/rainbow-text/)\n  \n  **Example of 0.75 Lightness:**\n\n  [![image](https://user-images.githubusercontent.com/343837/44053965-d983bc1a-9f06-11e8-9d09-2f8693a849e5.png)](https://charlesstover.github.io/rainbow-text/)\n\n* opacity\n\n  A number from 0 to 1 to represent the opacity of the text. Default: `1`\n\n* saturation\n\n  The saturation of the colors. Default: `1`\n\n  0 is grayscale.\n  1 is full color.\n\n  **Example of 0.5 Saturation:**\n  \n  [![image](https://user-images.githubusercontent.com/343837/44053997-fc2e5c84-9f06-11e8-9c8b-286fc106881c.png)](https://charlesstover.github.io/rainbow-text/)\n  \n  **Example of 0.25 Saturation:**\n  \n  [![image](https://user-images.githubusercontent.com/343837/44054021-0d4b446e-9f07-11e8-8b2e-c546199f395a.png)](https://charlesstover.github.io/rainbow-text/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesstover%2Freact-rainbow-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlesstover%2Freact-rainbow-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesstover%2Freact-rainbow-text/lists"}