themed screenshot border colors.

Zach Leatherman 3434 replies 120120 likes44 reposts Original on BlueskyOriginal on MastodonAlso posted to Mastodon.
34 replies
Nice! What did you end up using to pull the colors?
I’m releasing a plugin tomorrow! 🙌🏻 I haven’t hidden it so you could probably find it now though 😅
I think I've seen it...wink wink. And I know of a site where it may have showed up...continues winking.
if you hold it too long your face will stay like that forever—I’m a dad so I know these things
@zachleat Oooh, classy. So what technique did you end up using? Pixel sampling the favicons? Or did you find good enough results from manifest theme colors?
Also, am I correct that you're desaturating or lightening whatever color you extracted?
@AmeliaBR yeah! `npm:extract-colors` on favicon via https://www.11ty.dev/docs/services/opengraph/ and then sorted oklch by lightness and chroma (descending)
…I should write a blog post.
to do the above, I used the following: bsky.app/profile/11ty...
If you’re curious, I used the brand new `@11ty/image-color` to fetch the border colors from each site’s favicon/avatar: https://fosstodon.org/@eleventy/114076444351199781
This open source work is part of a larger migration of the Font Awesome blog (Blog Awesome) from WordPress to Eleventy, currently ongoing!
https://github.com/11ty/eleventy-import was also born from that too!
@zachleat this is super cool! on the other hand does this need to be under the eleventy organization, it seems to have barely any connection ahah 😅
@zachleat i would say no actually, same with something like webc (for is-land in particular you have the luck of `is-land` seemingly still being available as a non-scoped package name! could use that and move it under your personal account)
@uncenter Whether or not something is tightly coupled to Eleventy core isn’t really what I’d consider weighted into whether or not something is namespaced under @11ty/. What do you think about `eleventy-fetch`?
@zachleat i also think we could decouple that from eleventy since it bears little relation- i do think that relation to eleventy should matter in terms of namespacing.
@uncenter I think there are four different styles at play here, which do you mean?
1. @11ty/eleventy-plugin-UTIL
2. @11ty/eleventy-UTIL
3. @11ty/UTIL
4. UTILI agree that #2 *could* go away (though renaming packages is annoying enough for folks that I don’t think it’s worth it, unless there is a larger issue)
-
@zachleat Silly question (out of curiosity, not anything I am dead-set on figuring out): for the Google Dev site, the favicon is evenly (ish) spread across 4 colours, but the output is yellow. I didn't look too much at the code (sorry) but is there a magic thing that determines which hue "wins"?
Also, gotta say this is very cool! It fits neatly in the "Whimsy" and "Surprise & Delight" Venn diagram. (as overused as that second term may be these days 😅)
@chriskirknielsen it’s not really magic, just a quick sort by oklch Lightness and Chroma — wrote it up here: https://fediverse.zachleat.com/@zachleat/114082206353649121
You could make a fancy multicolor gradient border from all of the colors it finds but I didn’t!
@zachleat Ah, that's smart and simple, neat! Thank you for the write-up!
@chriskirknielsen you’re very welcome!
@zachleat Ooh, fun! 🎨
@tylersticka Thanks!!
Waiiit, I see two websites I’ve made here! 😍
I had to force myself to stop at 2, sorry 😅
Ohh which ones are yours? I'm so sorry, I just realized I only know you for your absurdly relatable posts here and not your professional work.
The 2nd (Nord Design System) and the 9th (Duet Design System) ☺️
Nice!!
Wrote this up on the blog: https://fediverse.zachleat.com/@zachleat/114082206353649121