Open lawvs opened 2 years ago
I wanted to use polished
to produce a 7 character (#xxxxxx
) hex color so that it can be used by HTML5 <input type="color">
but polished produces shortest possible hex, which doesn't work with the native color picker.
Summary
polished is a very powerful library to processing colors, but some enviroments only support the hex notation format.
Therefore, is it possible to add new functions to format the color format or add a new parameter to
rgb
functions to restrict color string type (but there are too many functions).Basic Example
Reasoning
Some environments do not support all CSS features.
For example, vscode theme config