{"id":18304627,"url":"https://github.com/numtel/meteor-colorswap","last_synced_at":"2025-04-09T10:37:11.825Z","repository":{"id":21426430,"uuid":"24744562","full_name":"numtel/meteor-colorswap","owner":"numtel","description":"Meteor Package for colorswap.js","archived":false,"fork":false,"pushed_at":"2014-10-03T03:04:02.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T04:42:38.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/numtel.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":"2014-10-03T02:38:18.000Z","updated_at":"2014-10-03T03:08:29.000Z","dependencies_parsed_at":"2022-08-21T08:11:22.836Z","dependency_job_id":null,"html_url":"https://github.com/numtel/meteor-colorswap","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/numtel%2Fmeteor-colorswap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-colorswap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-colorswap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-colorswap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtel","download_url":"https://codeload.github.com/numtel/meteor-colorswap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248021473,"owners_count":21034677,"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-11-05T15:29:41.929Z","updated_at":"2025-04-09T10:37:11.796Z","avatar_url":"https://github.com/numtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# colorswap.js Meteor Package\n\n[![Build Status](https://travis-ci.org/numtel/meteor-colorswap.svg?branch=master)](https://travis-ci.org/numtel/meteor-colorswap)\n\nThis package is a client side wrapper for the [colorswap.js library](https://github.com/numtel/colorswap.js).\n\nView demo at http://numtel.github.io/colorswap.js/\n\nA find/replace operation for all loaded stylesheets specialized for swapping colors globally.\n\n## Installation\n\n    meteor add numtel:colorswap\n\n## Usage\n\nThe find color is the original color. Subsequent calls to replace the color still specify the color in the original CSS. View this page's source for an example.\n\n    ColorSwap({\n      find: '#428bca', // hex, rgb(), hsv(), hsl()\n      replace: '#f00', // hex, rgb(), hsv(), hsl()\n      animation: 'hsl' // optional: 'none', 'rgb', 'hsv', 'hsl'\n      duration: 400 // optional: milliseconds to complete animation\n      frameDuration: 10 // optional: milliseconds per frame in animation\n    });\n\nPass an array of colors to the `find` option to replace multiple colors. The first color will be used to adjust the HSL values relative to the remaining colors, preserving shading effects.\n\n### Caveats\n\n* Only works with CSS rules in files from the same origin due to security restrictions.\n* HSL, HSV animations could use some work in between red and blue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-colorswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtel%2Fmeteor-colorswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-colorswap/lists"}