{"id":15650351,"url":"https://github.com/jaydenseric/purty-picker","last_synced_at":"2025-04-30T16:47:23.180Z","repository":{"id":12898250,"uuid":"15575229","full_name":"jaydenseric/Purty-Picker","owner":"jaydenseric","description":"A super lightweight visual HSL, RGB and hex color picker with a responsive, touch-friendly and customizable UI. Compatible with jQuery or Zepto.","archived":false,"fork":false,"pushed_at":"2015-05-02T12:38:00.000Z","size":257,"stargazers_count":36,"open_issues_count":3,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T18:03:33.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jaydenseric.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-01-02T03:47:00.000Z","updated_at":"2023-07-31T04:49:54.000Z","dependencies_parsed_at":"2022-08-28T14:12:51.643Z","dependency_job_id":null,"html_url":"https://github.com/jaydenseric/Purty-Picker","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/jaydenseric%2FPurty-Picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2FPurty-Picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2FPurty-Picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2FPurty-Picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/Purty-Picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251747807,"owners_count":21637404,"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-10-03T12:34:15.662Z","updated_at":"2025-04-30T16:47:23.159Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purty Picker\n\nA super lightweight visual HSL, RGB and hex color picker with a responsive, touch-friendly and customizable UI. Compatible with [jQuery](https://github.com/jquery/jquery) or [Zepto](https://github.com/madrobby/zepto).\n\n## Demo\n\nTry out `demo.html` [via RawGit](http://rawgit.com/jaydenseric/Purty-Picker/master/demo.html).\n\n\u003cimg src=\"screenshots.png\" alt=\"Screenshots of Purty Picker in Safari\" width=\"314\" /\u003e\n\n## Features\n\n- Small file-size (~4kb minified) with \u003c 300 lines of source JS ([Spectrum](https://github.com/bgrins/spectrum/blob/master/spectrum.js) exceeds 2000 lines). Easy to understand and customize.\n- Compact design with native inputs. The color input also serves as a preview (text color automatically inverts for legibility).\n- Fluidly responsive.\n- Touch friendly.\n- \"Retina\" quality CSS based UI.\n- Semantic class and file names (i.e. `.color-picker` not `.purty-picker`).\n- Markup is easily tweaked as it isn't JS generated.\n- Automatic initialization.\n- Multiple pickers may be used on a page.\n\n## Usage\n\n1. Take a look at [demo.html](https://github.com/jaydenseric/purty-picker/blob/master/demo.html) to see example markup with default styles. Add the `.color-picker` markup to your page, making sure to:\n    - Set a default `.color` input value (CSS valid HSL, RGB or hex).\n    - Mark the relevant color `.format` option as `selected`.\n2. Add [color-picker.css](https://github.com/jaydenseric/purty-picker/blob/master/color-picker.css) to the page.\n3. Add [color-picker.js](https://github.com/jaydenseric/purty-picker/blob/master/color-picker.js) to the page for it to automatically find and enable every `.color-picker`.\n\n### Customization\n\nTweak the markup as much as you like, just keep the core classnames on the core components.\n\nCore styles are clearly commented in [color-picker.scss](https://github.com/jaydenseric/purty-picker/blob/master/color-picker.scss) (which compiles to [color-picker.css](https://github.com/jaydenseric/purty-picker/blob/master/color-picker.css)) so you know what you need to create your own skin.\n\n## Browser Support\n\nFor modern browsers (IE10+ and recent versions of Chrome, Safari, Firefox), mostly due to the use of CSS3 linear gradients. Support for older browsers should be possible with a few modifications.\n\n## Dependencies\n\nRequires [jQuery](https://github.com/jquery/jquery) or [Zepto](https://github.com/madrobby/zepto) with core and event modules.\n\n## Todo\n\n- Validation for incorrect color input values.\n- On-demand initialization for dynamically inserted color pickers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fpurty-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Fpurty-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fpurty-picker/lists"}