3 ms·
I'm not sure what the intent is, and what other people do with it, but I thoroughly _love_ having these named colours for when I'm hacking and prototyping. I ca
by Waterluvian 4y ago
I'm not sure what the intent is, and what other people do with it, but I thoroughly _love_ having these named colours for when I'm hacking and prototyping. I can just start typing out a colour and autocomplete will show me a list. But I don't find myself ever using them in production.
Also: Finally, a tool to help me decide between greenyellow and yellowgreen.
- brettermeier 4y agoI never used named colors, I never knew why I should when we have color pickers. But people care about them, interesting...
- munk-a 4y agoThey're nice in prototyping styling since it's trivial to comprehend the intent of coloration while making it clear that finalized colors haven't been settled on.
- robert_tweed 4y agoI always (and only) use named colours for debugging. For example border: 1px solid red; around some element that isn't rendering as expected. This makes it hard to accidentally forget about a rules that just just put in temporarily. Real colours will always match some design, which will have a carefully-chosen hexcode.
- yreg 4y agoI always do border solid gold. Feels fancy.
- MaxLeiter 4y agoI use an editor plugin to autocomplete your CSS variables: https://i.imgur.com/44wogB5.png https://i.imgur.com/44wogB5.png
- deleted 4y ago[deleted]
- tabtab 4y agoIf you don't get it right, you'll get a paleVioletRed-slip.
- tta 4y agoRelatedly, Tailwind[1] has fixed my analysis paralysis with CSS colors for good. [1]: https://tailwindcss.com/docs/customizing-colors https://tailwindcss.com/docs/customizing-colors
- edjw 4y agoI made this tool a few years ago to find the closest colour from the Tailwind colour palette from any given colour https://find-nearest-tailwind-colour.netlify.app https://find-nearest-tailwind-colour.netlify.app
- jozzy-james 4y agotangentially related (not affiliated with the company, just a fan), but https://usewindy.com/ https://usewindy.com/ does similar stuff - and more.
- culi 4y agothat's awesome. I made a somewhat similar toy[0] a while ago in vanilla js (checkmark `color2nearestname` at the top). I've been meaning to try my hand at this again, but while allowing the user to choose the palette. Namely I was thinking of these definitions: 1. CSS named colors 2. Open Props' colors[1] 3. Tailwind colors 4. XKCD's color survey results[2] A different project sent me on a deep dive into the concept of color distances and how that can work across different spaces though so I'm afraid any other color-related projects would paralyze me with feature creep at this point though haha --- .. [0] https://culi.page/toys/ https://culi.page/toys/ .. [1] https://yeun.github.io/open-color/ https://yeun.github.io/open-color/ .. [2] https://xkcd.com/color/rgb/ https://xkcd.com/color/rgb/
- leeoniya 4y agoit needs something between Yellow and Lime, like Olive. that one transition is not as smooth as the others.
- culi 4y agoI don't use TW, but my default now is open-color[0] which is used in open-props[1] [0] https://yeun.github.io/open-color/ https://yeun.github.io/open-color/ [1] https://open-props.style/ https://open-props.style/
- jw1224 4y agoMe too. They’re a charming and intuitive language feature, even if I don’t rely on them much professionally. One CSS color name that always comes to mind is “rebeccapurple”. I seem to recall reading debates against introducing this at the time, but (10?) years later it’s still the first one I think about.
- vilvadot 4y agoSame here! I even did a little tool to generate random palettes to get nice combinations for my sketches. https://vilvadot.github.io/sketch-default-color-palette/ https://vilvadot.github.io/sketch-default-color-palette/