7studio / acf-color-palette Goto Github PK
View Code? Open in Web Editor NEWAdd a new ACF field type: "Color Palette" which allows you to use the color picker with a defined color palette only.
Add a new ACF field type: "Color Palette" which allows you to use the color picker with a defined color palette only.
Looking for people who want to maintain and further develop this. I haven't done a good job of working on it because I don't use PHP and WordPress for three years now. Let me know if you're interested.
Hi !
Thanks for your contribution and your plugin, i use it for many projects.
So I open an issue because I created a Color-palette for test in local environment and I've forgot to set default choice like this :
#f00 : Red
rgb(0,255,0) : Green
rgba(0, 0, 255, 1) : Blue
I saved the custom field and I was editing an article to use it, and I had a console error:
SyntaxError: "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
TypeError: n.palettes.map is not a function
So I think that it would be necessary to check the field "Choice" in ACF before the save to avoid this kind of errors.
Thanks for your work and your time.
Thank you for a great extension! I have found some things that I would like to change and tweak and since the project seems abandoned and I couldnt find a license I wanted to ask you if it is ok to fork this and create my own custom version of it and release it under another name (so it wont clash with yours). You will of course get credit for it.
Hey @7studio
Is-it possible to you to implement a composer json file and create a release.
Will this prevent us from versioning this plugin in our projects and using it as a dependency
Best,
Would it be possible to add a third value to a color array, specifying the best suitable color to use as contrasting text/background value?
I love this plugin, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.