{"id":13464966,"url":"https://github.com/saintplay/vue-swatches","last_synced_at":"2025-04-08T12:07:58.550Z","repository":{"id":38863915,"uuid":"115240140","full_name":"saintplay/vue-swatches","owner":"saintplay","description":":art: Help the user picking beautiful colors!","archived":false,"fork":false,"pushed_at":"2021-06-29T18:15:21.000Z","size":1554,"stargazers_count":565,"open_issues_count":5,"forks_count":56,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-29T17:14:04.652Z","etag":null,"topics":["color-palette","color-picker","component","swatches","ui-components","vue","vue-components","vuejs","vuejs-components","vuejs2"],"latest_commit_sha":null,"homepage":"https://saintplay.github.io/vue-swatches/","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/saintplay.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":"2017-12-24T04:37:10.000Z","updated_at":"2024-10-28T06:15:07.000Z","dependencies_parsed_at":"2022-08-30T02:11:48.856Z","dependency_job_id":null,"html_url":"https://github.com/saintplay/vue-swatches","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintplay%2Fvue-swatches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintplay%2Fvue-swatches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintplay%2Fvue-swatches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saintplay%2Fvue-swatches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saintplay","download_url":"https://codeload.github.com/saintplay/vue-swatches/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247838444,"owners_count":21004580,"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-palette","color-picker","component","swatches","ui-components","vue","vue-components","vuejs","vuejs-components","vuejs2"],"created_at":"2024-07-31T14:00:53.630Z","updated_at":"2025-04-08T12:07:58.511Z","avatar_url":"https://github.com/saintplay.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","UI组件","Components \u0026 Libraries","UI Components","Table of Contents","UI Components [🔝](#readme)"],"sub_categories":["形成","UI Components","Form","Color Libraries"],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://saintplay.github.io/vue-swatches/\"\u003e\n    \u003cimg src=\"https://github.com/saintplay/vue-swatches/blob/master/.github/promo.png?raw=true\" alt=\"Vue Swatches\"\u003e\n  \u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/saintplay/vue-swatches\"\u003e\n    \u003cimg src=\"https://travis-ci.org/saintplay/vue-swatches.svg?branch=master\" alt=\"Travis CI\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.org/package/vue-swatches\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/vue-swatches.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href='https://coveralls.io/github/saintplay/vue-swatches?branch=master'\u003e\n    \u003cimg src='https://coveralls.io/repos/github/saintplay/vue-swatches/badge.svg?branch=master' alt='Coverage Status' /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://www.npmjs.org/package/vue-swatches\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/saintplay/vue-swatches.svg\" alt=\"license\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/facebook/jest\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/tested_with-jest-99424f.svg\" alt=\"Jest\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## **Notice**\n\nVue Swatches recently reached **version 2**. If you were using v1 please consider reading the [release notes](https://github.com/saintplay/vue-swatches/releases/tag/v2.0.0) or you can check v1 [here](https://github.com/saintplay/vue-swatches/tree/v1.x)\n\n\n## Demo And Documentation ##\n\n\u003chttps://saintplay.github.io/vue-swatches/\u003e\n\n\n## Table of Contents ##\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Install](#install)\n- [Basic Usage](#basic-usage)\n- [Contributing](#contributing)\n- [Browser Compatibility](#browser-compatibility)\n- [License](#license)\n\n## Introduction ##\n\nVue Swatches is a UI Component for Vue that allows the user to choose colors.\n\nUnlike classic color pickers, where all colors are available (167 77 216 colors),\nVue Swatches only shows a bunch of predefined colors.\n\n\u003e More decisions require more effort\n\nWith fewer options, the user experience will be improved\n\n## Features ##\n\n\u003cul\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/presets/\"\u003ePresets ready to use\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/api/props.html#behaviour-props\"\u003eBuilt-in Popover\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/examples/#inline-mode\"\u003eInline Mode\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/examples/#custom-colors\"\u003eCustom Colors\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/examples/#nested-colors\"\u003eNested Colors Array\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/api/\"\u003eEasily Customizable\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/examples/#using-a-custom-trigger\"\u003eCustom Trigger\u003c/a\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ca href=\"https://saintplay.github.io/vue-swatches/examples/#fallback-input\"\u003eFallback Input\u003c/a\u003e\n  \u003c/li\u003e\n\u003c/ul\u003e\n\n## Install ##\n\n`npm install --save vue-swatches`\n\nor\n\n`yarn add vue-swatches`\n\n## Basic Usage ##\n\n```vue\n\u003c!-- Vue component --\u003e\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cv-swatches v-model=\"color\"\u003e\u003c/v-swatches\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  import VSwatches from 'vue-swatches'\n\n  // Import the styles too, globally\n  import \"vue-swatches/dist/vue-swatches.css\"\n\n  export default {\n    components: { VSwatches }, // window['vue-swatches'] - from CDN\n    data () {\n      return {\n        color: '#1CA085'\n      }\n    }\n  }\n\u003c/script\u003e\n```\n\n## Contributing ##\n\n``` bash\n# serve with hot reload at localhost:8080\nyarn serve\n\n# distribution build with minification\nyarn build\n\n# build the documentation into docs\nnpm docs:dev\n\n# run unit tests\nyarn test:unit\n\n```\n\n## Browser Compatibility ##\n\nThis component has the same support than Vue itself\n\n\u003e Vue does not support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8. However it supports all [ECMAScript 5 compliant browsers](https://caniuse.com/#feat=es5).\n\nHowever if you want to use this with IE9, you will probably need to work on the CSS styles.\nIE10 should be fine\n\n## Awesome Contributors ##\n\n- [Diego Jara (saintplay)](https://github.com/saintplay/)\n- [Niko Nagy](https://github.com/NikoNagy)\n- *feel free to add yourself*\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintplay%2Fvue-swatches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaintplay%2Fvue-swatches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaintplay%2Fvue-swatches/lists"}