{"id":15011466,"url":"https://github.com/gyoshev/cuttle","last_synced_at":"2025-04-09T19:08:53.327Z","repository":{"id":35308662,"uuid":"39570035","full_name":"gyoshev/cuttle","owner":"gyoshev","description":"Find the color transition function between two colors","archived":false,"fork":false,"pushed_at":"2017-10-14T15:25:15.000Z","size":705,"stargazers_count":39,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T19:08:46.497Z","etag":null,"topics":["color-theme","lesscss","sass"],"latest_commit_sha":null,"homepage":"http://ofcodeandcolor.com/cuttle/","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/gyoshev.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}},"created_at":"2015-07-23T13:50:09.000Z","updated_at":"2024-04-19T21:40:24.000Z","dependencies_parsed_at":"2022-08-31T20:01:57.134Z","dependency_job_id":null,"html_url":"https://github.com/gyoshev/cuttle","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/gyoshev%2Fcuttle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyoshev%2Fcuttle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyoshev%2Fcuttle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyoshev%2Fcuttle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gyoshev","download_url":"https://codeload.github.com/gyoshev/cuttle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094993,"owners_count":21046770,"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":["color-theme","lesscss","sass"],"created_at":"2024-09-24T19:41:07.882Z","updated_at":"2025-04-09T19:08:53.307Z","avatar_url":"https://github.com/gyoshev.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Cuttle\n\nEver wondered what color transformation to use to get from one color to another?\n\nSay, `#ae465f` to `#aeae46`?\n\n[Cuttle](http://ofcodeandcolor.com/cuttle/) got you covered.\n\nBecause that's what cephalopods do for one another.\n\n## API Reference\n\n### `suggest(from, to[, preprocessor])`\n\nSuggests color functions that map from the `from` color to the `to` color.\n\nAccepts an optional `preprocessor` parameter for the target preprocessor. Valid values are `\"less\"` and `\"sass\"`. The default is `\"less\"`.\n\nReturns an array of suggestions, sorted by difference from the target color.\n\nExample of suggesting LESS functions:\n\n    \u003e cuttle.suggest(\"#000\", \"#333\");\n\n    [ { difference: 0, format: \"lighten(@input, 20%)\" } ]\n\nExample of suggesting SASS functions:\n\n    \u003e cuttle.suggest(\"#ae465f\", \"#aeae46\", \"sass\");\n\n    [ { difference: 0.4477, format: \"adjust-hue($input, 75)\" } ]\n\n\n## CLI Usage\n\nInstall as a global module through `npm install -g cuttle`. Then get suggestions by running\n\n    $ cuttle --from #ae465f --to #aeae46 --dialect sass\n\n    [ { difference: 0.4477, format: \"adjust-hue($input, 75)\" } ]\n\nFull usage options:\n\n    Usage: cuttle [options]\n\n    Suggests transition functions between colors\n\n    Options:\n\n      -h, --help               output usage information\n      -V, --version            output the version number\n      -f, --from \u003ccolor\u003e       input color (e.g. #ae465f)\n      -t, --to \u003ccolor\u003e         output color (e.g. #aeae46)\n      -d, --dialect \u003cdialect\u003e  dialect of output, either \"sass\" or \"less\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyoshev%2Fcuttle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgyoshev%2Fcuttle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyoshev%2Fcuttle/lists"}