Package Exports
- svelte-color-select
- svelte-color-select/ColorSelect.svelte
- svelte-color-select/colorconversion
- svelte-color-select/constants
- svelte-color-select/package.json
- svelte-color-select/render
Readme
Svelte Color Select
OKHsv Color Selection component for Svelte using OKLab perceptual colorspace
Usage
Installing your package manager of choice:
pnpm i svelte-color-select
Import into your component and bind r
, g
, and b
values to it:
<script lang="ts">
import ColorSelect from 'svelte-color-select`
let r = 102
let g = 51
let b = 153
</script>
<ColorSelect bind:r bind:g bind:b />