Giter VIP home page Giter VIP logo

contrast-grid's People

Contributors

andy-blum avatar mherchel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

contrast-grid's Issues

Idea: keep Directions and Features info on page after color entry

I think it would be helpful to have the Directions and Features available on the page after color values have been entered.

Perhaps they could be in a <details> <summary> that's open by default then close it and insert the table output above it in the DOM. If it's a flex sibling to the form and table, maybe it doesn't need to be in a disclosure widget, just let it wrap below the other items or be displayed to the side if the viewport is wide enough.

Feat: Make X/Y axes optional

Making the X/Y axis differentiation optional would allow you simply paste in a list of all colors used and would serve as both axes, showing all possible color combinations

Transparency data not used in color display or contrast calcuations

When an input color includes transparency (#00636366, hsla(180, 100%, 19.4%, 0.4), rgba(0, 99, 99, 0.4), etc.) what's displayed in the output table is the color without transparency. Also, the contrast value calculated is for the color without transparency.

Transparency included in the text color complicates the contrast calculation but an accurate number is possible. When the background color includes transparency, the actual displayed color depends on the color(s) behind the element. I like what Lea Verou's Contrast Ratio site appears to do, calculates the contrast if the color behind the element is white, again if the color behind is black, then displays a contrast value halfway between with a +/- value, like error bars.

Until/unless the transparency data is included in the calculation, I think the directions should have a note about what happens to it.

Variable names matching color keywords discarded

I love the tool's ability to accept pasted in CSS custom properties and Sass variables and to display them in the table output; the string: color format can be used for including names for colors even if those names aren't used as variables.

I've found if the string to the left of the colon matches a CSS color keyword (white, black, crimson, chocolate, etc.) it is not in the table output or in the URL. It would be better if the color name was preserved.

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.