|
|
|
|
|
by kingvyn
395 days ago
|
|
hey it's Melvin I made ColorSnap after getting tired of dragging images into Figma just to sample colors and then manually mapping them to Tailwind classes by eyeballing. I wanted something faster — just drag, snap, copy. The image analysis uses median cut to extract dominant swatches, and then I map those RGB values to Tailwind's predefined colors by converting to LAB and measuring the perceptual distance. The output is practical — actual Tailwind classes you can use in your components. This was originally just a scratch-my-own-itch weekend project, but it turned out more useful than I expected, so I decided to polish it and share. |
|