Code Monkey home page Code Monkey logo

smart-swatch's Introduction

Hi there ๐Ÿ‘‹

smart-swatch's People

Contributors

belco90 avatar dependabot[bot] avatar ivan-dalmet avatar mikemajara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

smart-swatch's Issues

Feature: shareable swatch color urls

Hey Ivan! I love this project. I use it a lot in both professional and personal projects to generate proper HUEs for Chakra-UI.

However, I'd like to be able to share a generated swatch for a color with someone else through a shareable url so I can reference the HUE in tickets or show them to someone else.

I'm happy to implement this myself. Should be as easy as get/set the url hash with the color, init the input with it, and add an icon button at the right of the main input for copying the shareable url (if you like this approach). Before creating the PR, I'd like you to confirm if this is fine.

Thanks!.

Adjust brightness

I have had some troubles adjusting lightness in my color palette for a recent project. The main problem I encounter is that this library automagically detects the color that is closest to the one I set, and generates the base palette accordingly.

That leaves me with small space to change if I really don't want to keep a 0.1 gap between colors, which is my case. This relates to issue #12.

image

image

This is a small change I did on the go, and I cannot see draft pull requests, so I just opened a normal PR, but it might need some reviewing. #19

Let me know your thoughts on this and if you would consider merging it ๐Ÿ˜„

๐Ÿ’ก RGB and HSL export

Hi ๐Ÿ‘‹

I think it could be awesome ๐Ÿคฉ to be able to export colors using RGB or HSL format (at least, for the click to clipboard feature).

๐Ÿค” I come with two ideas with a quick mockup:

Globally

Something like a button group, or radio buttons (easy to add more format in the future)

image

By colors

Small clickable button at the bottom of colors (not so easy to add more format in the future)

image

Let me know what you think, and thanks a lot for Smart Swatch ๐Ÿ‘ โค๏ธ

Question: Why does the base colour change?

Not exactly an issue, or partly.

Why does the colour change from the one that was placed? What is being used in order to shift it to a different one? And is there a way to calculate based on the exact colour that is being used?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.