webinista / colortheory Goto Github PK
View Code? Open in Web Editor NEWDecided to build a thing on a whim. May not finish.
Home Page: http://colors.webinista.com/
Decided to build a thing on a whim. May not finish.
Home Page: http://colors.webinista.com/
input[type="color" i]::-webkit-color-swatch
input[type="color" i]::-webkit-color-swatch
. Remove the border
For Mozilla
input[type="color"]:-moz-system-metric(color-picker-available)
It doesn't yet support any alpha value.
ColorInput
component become another SVG swatch instead?Create a modal for displaying glossary content.
Currently if it's a valid short hex value, it will expand to a long hex value. Should keep the short value, but update the input[type=color]
field to use the long value.
Easiest way is probably to pass the value back to the component as is, and move the expandRGB
function to the color input component.
There's probably a more succinct way to do this for each value. See the palette generation functions.
Related to / Possible duplicate of #74
Parent task to track color scheme function-related development.
Blocks #53. Should include a loading component as part of the new UI design.
Either use separate color values for the text and color input fields, or make the color input field do the conversion.
Test these conversions
A short list of color conversions to make and do.
HSL to hex
Hex to RGB
RGB to hex
[ ] Lab to Hex moved to #29
Really need to do conversions to hex in order to be able to set the input[type=color]
value
Blocks #43
To replicate:
What happens:
Palette goes black
What should happen:
Palette should be updated with colors of currently-selected scheme.
Blocks #43
May want/need to add tests for LinkedInputColor component too or instead.
Will probably generate a lot of low-contrast schemes with this. How to compensate? Related to #69
What should happen: Palette should reflect the color scheme chosen
What happens: color can't be calculated.
When the color scheme value changes, need to:
Blocks #43
Will need to compare each item in an array, since there's no other way to compare whole arrays for equality.
Blocks #43
Need a glossary trigger component.
Maybe a modal / dialog to display it as well.
Blocks #5
Blocks #43
4 shades, tints, or tones of the same color.
Supported in Firefox so far, but need to handle rgb(0 255 0)
(no commas) syntax.
Best idea is to normalize the syntax to add commas rather than doing some more advanced string parsing.
Separating this from #2 since lab color space support hasn't started landing in browsers.
Blocks #4
Blocks #43
Four adjacent colors, separated by 30 degree difference.
https://drafts.csswg.org/css-color-4/#hsl-examples
Conversion returns correct hue, but saturation for some colors doesn't quite match other color pickers. But those other color pickers don't match each other.
Example rgb(138, 140, 115)
was converted to hsl(65, 5%, 50%)
instead of hsl(65, 10%, 50%)
. Should be closer to 10.
Hard to test outcomes if the conversions are off.
Colors this occurs with:
Seems to happen with the conversion from rgb to hsl.
PropTypes are deprecated for React. Install prop-types package instead
https://www.npmjs.com/package/prop-types
Blocks #43
4 color color scheme. Each color must be 90° apart (360 / 4)
Blocks #5
Blocks #5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.