Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm actually very curious on how they build in the color picker into the site to designate the site's colors. Anyone have any knowledge on this?


Sure, it's an input type="color" with some css applied to it. On webkit, it becomes a picker, on other browsers, just a text input.

When it is changed, we loop through various elements and change their background color. The way the themes are generated is a little more complicated, but I don't think that's what you're asking about.


Yeah, I am pretty sure that you're correct.. This was a new input to me (<input type=color />) - learn something new everyday.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: