color-picker-svelte Svelte Themes

Color Picker Svelte

Color picker for Svelte

Color Picker Svelte

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

Top categories

Loading Svelte Themes