{"id":15638141,"url":"https://github.com/log1x/acf-editor-palette","last_synced_at":"2025-05-16T04:05:01.102Z","repository":{"id":39890710,"uuid":"321837715","full_name":"Log1x/acf-editor-palette","owner":"Log1x","description":"A Gutenberg-like editor palette color picker field for Advanced Custom Fields.","archived":false,"fork":false,"pushed_at":"2025-02-28T16:15:31.000Z","size":473,"stargazers_count":96,"open_issues_count":6,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-10T09:38:17.372Z","etag":null,"topics":["acf-field","gutenberg","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/Log1x/acf-editor-palette","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/Log1x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"log1x"}},"created_at":"2020-12-16T01:49:05.000Z","updated_at":"2025-02-28T16:20:10.000Z","dependencies_parsed_at":"2024-06-06T02:56:38.024Z","dependency_job_id":"4553f256-10ef-4554-8f35-5a05df488d4f","html_url":"https://github.com/Log1x/acf-editor-palette","commit_stats":{"total_commits":56,"total_committers":8,"mean_commits":7.0,"dds":0.1964285714285714,"last_synced_commit":"cb8505fb7b13bb2ef5f5d7121a127667b2f15f9f"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Facf-editor-palette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Facf-editor-palette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Facf-editor-palette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Log1x%2Facf-editor-palette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Log1x","download_url":"https://codeload.github.com/Log1x/acf-editor-palette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"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":["acf-field","gutenberg","wordpress","wordpress-plugin"],"created_at":"2024-10-03T11:19:18.212Z","updated_at":"2025-05-16T04:05:01.086Z","avatar_url":"https://github.com/Log1x.png","language":"PHP","funding_links":["https://github.com/sponsors/log1x"],"categories":[],"sub_categories":[],"readme":"# ACF Editor Palette\n\n![Latest Stable Version](https://img.shields.io/packagist/v/log1x/acf-editor-palette?style=flat-square)\n![Total Downloads](https://img.shields.io/packagist/dt/log1x/acf-editor-palette?style=flat-square)\n![Build Status](https://img.shields.io/github/actions/workflow/status/log1x/acf-editor-palette/compatibility.yml?branch=master\u0026style=flat-square)\n\nA Gutenberg-like editor palette color picker field for Advanced Custom Fields.\n\n![Field Example](https://i.imgur.com/bKKU4Sr.gif)\n\n## Features\n\n- Colors are automatically loaded from `theme.json` and/or the editor palette.\n- Return format includes the default [palette keys](https://developer.wordpress.org/block-editor/developers/themes/theme-support/) as well as background and text color classes for convenience.\n- Default value can optionally be set using the color's slug.\n- Colors can optionally be allowed/excluded from the palette.\n\n## Requirements\n\n- [PHP](https://secure.php.net/manual/en/install.php) \u003e= 7.2\n- [ACF PRO](https://www.advancedcustomfields.com/pro/) \u003e= 5.0\n\n## Installation\n\n### Bedrock\n\nInstall via Composer:\n\n```bash\n$ composer require log1x/acf-editor-palette\n```\n\n### Manual\n\nDownload the [latest release](https://github.com/Log1x/acf-editor-palette/releases/latest) `.zip` and install into `wp-content/plugins`.\n\n## Usage\n\n![Field Group Example](https://i.imgur.com/awXqkFA.png)\n\n```php\n^ array:5 [▼\n  \"name\" =\u003e \"Green (500)\"\n  \"slug\" =\u003e \"green-500\"\n  \"color\" =\u003e \"#0e9f6e\"\n  \"text\" =\u003e \"has-text-color has-green-500-color\"\n  \"background\" =\u003e \"has-background has-green-500-background-color\"\n]\n```\n\n### ACF Composer\n\nIf you are on Sage 10 and using my [ACF Composer](https://github.com/log1x/acf-composer) package:\n\n```php\n$field\n  -\u003eaddField('my_color_field', 'editor_palette')\n    -\u003esetConfig('default_value', 'green-500')\n    -\u003esetConfig('allowed_colors', ['green-500', 'blue-500'])\n    -\u003esetConfig('exclude_colors', ['green-50', 'green-100'])\n    -\u003esetConfig('return_format', 'slug');\n```\n\n## Bug Reports\n\nIf you discover a bug in ACF Editor Palette, please [open an issue](https://github.com/log1x/acf-editor-palette/issues).\n\n## Contributing\n\nContributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.\n\n## License\n\nACF Editor Palette is provided under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Facf-editor-palette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog1x%2Facf-editor-palette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog1x%2Facf-editor-palette/lists"}