Giter Site home page Giter Site logo

chromagen's People

Contributors

aaron-pierce avatar ananay avatar auracool avatar collnwalkr avatar eclecticexistential avatar galczo5 avatar gyanl avatar manu-chroma avatar nielskornerup avatar niharika29 avatar petrkle avatar srijitcoder avatar vclayton avatar xyztdanid4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chromagen's Issues

Create a gradient generator

Should have :
-A way to generate a gradient using two randomly generated colors (from first to second color)
-A rotate button to rotate the orientation of the gradient cyclically from right-->left to bottom-->top to left-->right to top-->bottom (can be done by changing the "to x" parameter in the CSS).
-A copy CSS button that copies the css code for the gradient in the format
background: #4DA0B0; /* fallback for old browsers /
background: -webkit-linear-gradient(to left, #4DA0B0 , #D39D38); /
Chrome 10-25, Safari 5.1-6 /
background: linear-gradient(to left, #4DA0B0 , #D39D38); /
W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

Add keyboard shortcuts

Using keyboard shortcuts for generating a new random color, copying the current color, and copying all the colors. There are existing functions being called on the button clicks, they can be called on keypress.

artboard

Create a "Copy All" button

The copy all button should copy all of the currently generated hex codes, separated by spaces or commas.

copy from keyboard does not work

This stackoverflow thread explains that a copy to the clipboard must be from a user. In other words, the current method for copying (invoking toast(color) ) is insufficient.

I have implemented a fix to this as well as added navigation between colors with the left and right arrow keys.

Improve gradient generator UI

Find a more elegant way to display gradients and maybe change the copy/copy all text to "CSS copied". Needs some thought.

Create an option to use RGB or HSL instead of Hex codes.

Currently users can only copy the color as a hex code, but sometimes it's useful to have rgb or hsl values for web development work, so there could be a dropdown that allows you to change between modes.

For eg. #0946f0 is equivalent to rgb(9, 70, 240) & hsl(224, 93%, 49%)

Improve Mobile layout

Make the page scrollable (issue arises when you generate a couple of gradients and then copy all - text goes out of the screen)

Also make the buttons and text fit inside the white rectangle - it's currently overflowing on mobile.

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.