diff --git a/src/components/Palette.svelte b/src/components/Palette.svelte new file mode 100644 index 0000000..c613d18 --- /dev/null +++ b/src/components/Palette.svelte @@ -0,0 +1,88 @@ + + +
+ + {#key colors} + {#each Array(colors) as _, i} + {@const rotation = (360 / colors) * i} + + + + {/each} + {/key} + + {#if current_color !== ""} +
+ {current_color} copied +
+ {/if} +
+ + diff --git a/src/stories/components/Palette.story.svelte b/src/stories/components/Palette.story.svelte new file mode 100644 index 0000000..9bca77a --- /dev/null +++ b/src/stories/components/Palette.story.svelte @@ -0,0 +1,24 @@ + + + + + + + + + + + +