npm.io
2.0.3 • Published 2 months ago

color-picker-svelte

Licence
MIT
Version
2.0.3
Deps
1
Size
25 kB
Vulns
0
Weekly
0
Stars
11

Color Picker Svelte

NPM License NPM Downloads test

Color picker for Svelte

DemoREPL

Install

npm install color-picker-svelte

Usage

<script>
  import { Color, ColorInput } from 'color-picker-svelte'

  let color = new Color('#ff3d91')
</script>

<ColorInput bind:color title="Color" />

Dev instructions

Get started
  1. Install Node.js
  2. Run npm install
Commands
  • npm run dev: Start in dev mode
  • npm run build: Build
  • npm run lint: Lint
  • npm run format: Format
Publish new version
  1. Update CHANGELOG.md
  2. Check for errors
    npm run lint
  3. Bump the version number
    npm version --no-git-tag <version>
  4. Generate the package
    npm run package
  5. Publish the package
    npm publish
  6. Commit with a tag in format "v#.#.#"
  7. Create GitHub release with release notes

Keywords