{"id":37262335,"url":"https://github.com/vaersaagod/colormate","last_synced_at":"2026-01-15T23:20:27.105Z","repository":{"id":37785792,"uuid":"265847106","full_name":"vaersaagod/colormate","owner":"vaersaagod","description":"Color me impressed, mate!","archived":false,"fork":false,"pushed_at":"2025-06-25T07:17:08.000Z","size":1491,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-23T02:51:34.513Z","etag":null,"topics":["color","craft-plugin","craft3","craftcms","fieldtype"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/vaersaagod.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2020-05-21T12:49:27.000Z","updated_at":"2025-06-25T07:16:33.000Z","dependencies_parsed_at":"2024-04-01T22:26:00.219Z","dependency_job_id":"a9751885-1aa2-462d-ab2f-ea92715d3e72","html_url":"https://github.com/vaersaagod/colormate","commit_stats":{"total_commits":58,"total_committers":5,"mean_commits":11.6,"dds":0.6551724137931034,"last_synced_commit":"a6508d225cd1d4eb632071be3d7d5d899539d28b"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/vaersaagod/colormate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaersaagod%2Fcolormate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaersaagod%2Fcolormate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaersaagod%2Fcolormate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaersaagod%2Fcolormate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaersaagod","download_url":"https://codeload.github.com/vaersaagod/colormate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaersaagod%2Fcolormate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["color","craft-plugin","craft3","craftcms","fieldtype"],"created_at":"2026-01-15T23:20:26.380Z","updated_at":"2026-01-15T23:20:27.099Z","avatar_url":"https://github.com/vaersaagod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ColorMate plugin for Craft CMS\n===\n\nColor me impressed, mate!\n  \n![Screenshot](resources/img/plugin-logo.png)\n\n## Requirements\n\nThis plugin requires Craft CMS 5.0.0 or later. \n\n## Installation\n\nTo install the plugin, either install it from the plugin store, or follow these instructions:\n\n1. Install with composer via `composer require vaersaagod/colormate` from your project directory.\n2. Install the plugin in the Craft Control Panel under Settings → Plugins, or from the command line via `./craft install/plugin colormate`.\n\n---\n\n## Configuring\n\nToolMate is configured by creating a file named `colormate.php` in your Craft config folder, \nand configuring as needed. Sample config:\n\n```\n\u003c?php\n\nreturn [\n    '*' =\u003e [\n        'presets' =\u003e [\n            'ctaColors' =\u003e [\n                'name' =\u003e 'CTA Colors',\n                'showCustom' =\u003e true,\n                'showOpacity' =\u003e true,\n                'showClear' =\u003e false,\n                'showTooltip' =\u003e true,\n                'colors' =\u003e [\n                    'blush' =\u003e [\n                        'name' =\u003e 'Blush',\n                        'color' =\u003e '#eea8bf'\n                    ],\n                    'mustard' =\u003e [\n                        'name' =\u003e 'Mustard',\n                        'color' =\u003e '#ead30a'\n                    ],\n                    'baby' =\u003e [\n                        'name' =\u003e 'Baby',\n                        'color' =\u003e '#67cdfc'\n                    ],\n                    'transred' =\u003e [\n                        'name' =\u003e 'Lorem',\n                        'color' =\u003e 'rgba(255, 0, 0, 0.4)'\n                    ],\n                ],\n                'default' =\u003e 'blush'\n            ],\n\n            'overlayColors' =\u003e [\n                'name' =\u003e 'Overlay Colors',\n                'showCustom' =\u003e false,\n                'showOpacity' =\u003e false,\n                'showClear' =\u003e true,\n                'colors' =\u003e [\n                    'black-10p' =\u003e [\n                        'name' =\u003e '10% black',\n                        'color' =\u003e 'rgba(0, 0, 0, 0.1)',\n                    ],\n                    'black-20p' =\u003e [\n                        'name' =\u003e '20% black',\n                        'color' =\u003e 'rgba(0, 0, 0, 0.2)',\n                    ],\n                    'black-30p' =\u003e [\n                        'name' =\u003e '30% black',\n                        'color' =\u003e 'rgba(0, 0, 0, 0.3)',\n                    ]\n                ]\n            ]\n        ]\n    ]\n];\n```\n\n--- \n\n## Field type\n\nThe field type returns a [Color](https://github.com/vaersaagod/colormate/blob/master/src/models/Color.php) \nmodel with the following properties and methods:\n\n### handle\n\nHandle of preset color if the chosen color was from a preset.\n\n### custom\n\nCustom color value.\n\n### opacity\n\nOpacity value.\n\n### name\n\nName of preset color if the chosen color was from a preset.\n\n### baseColor\n\nThe calculated base color, either the custom one, or the color\nvalue from the selected preset color.\n\n### preset\n\nThe preset that was used for the field.\n\n### getColor([format = 'rgb'])\n\nReturns the resulting color, either a custom color value or from a preset, \nwith opacity factored into it. \n\n### isCustom()\n\nIs the color a custom one?\n\n### hasTransparency()\n\nDoes the resulting color have transparency?\n\n---\n\n## Template variables / Service methods\n\nAll the following methods are available both as template variables, using \n`craft.colormate.\u003cmethod\u003e(\u003cargs\u003e)`, and as service methods, using\n`ColorMate::$plugin-\u003ecolor-\u003e\u003cmethod\u003e(\u003cargs\u003e)`. \n\nMost methods are wrappers for `[ssnepenthe/color-utils](https://github.com/ssnepenthe/color-utils)`,\nrefer to it for additional documentation.\n\n### getColor(color)\n\n### adjustColor(color, adjustment)\n\n### getBrightness(color)\n\n### getHue(color)\n\n### getLightness(color)\n\n### isBright(color[, threshold = 127.5])\n\n### isLight(color[, threshold = 50])\n\n### looksBright(color[, threshold = 127.5])\n\n### getPercievedBrightness(color)\n\n### getRelativeLuminance(color)\n\n### getSaturation(color)\n\n### getBrightnessDifference(color1, color2)\n\n### getColorDifference(color1, color2)\n\n### getContrastRatio(color1, color2)\n\n### rgb2hex(color)\n\n### hex2rgb(hexValue)\n\n\n---\n\n## Price, license and support\n\nThe plugin is released under the MIT license. It's made for Værsågod and friends, and no support \nis given. Submitted issues are resolved if it scratches an itch. \n\n## Changelog\n\nSee [CHANGELOG.MD](https://raw.githubusercontent.com/vaersaagod/colormate/master/CHANGELOG.md).\n\n## Credits\n\nBrought to you by [Værsågod](https://www.vaersaagod.no)\n\nIcon designed by [Freepik from Flaticon](https://www.flaticon.com/authors/freepik).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaersaagod%2Fcolormate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaersaagod%2Fcolormate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaersaagod%2Fcolormate/lists"}