L

Lea Verou

lea.verou.me · Personal blog · on HN since 2011

Lea Verou, a CSS specification expert and researcher, writes about CSS, color, web components, and web design.

What HN saysHN commenters call her great and cite her posts on web components versus frameworks. One noted her site is not desktop-friendly.
121HN people shared it
42linked it in comments
122stories submitted
2.4Kstory points
3 months agolast shared
2011people per year2026

Most-shared posts

  1. 1
    LCH colors in CSS: what, why, and how?
    11 people · 17 points · first shared 2020 · 1 comments on HN
  2. 2
    CSS3 Patterns Gallery
    10 people · 102 points · first shared 2011 · 37 comments on HN
  3. 3
    Homepage
    8 people · first shared 2015
  4. 4
    The Failed Promise of Web Components
    6 people · 377 points · first shared 2020 · 229 comments on HN
  5. 5
    Dark mode toggles: two states are enough
    5 people · 9 points · first shared 2026 · 1 comments on HN
  6. 6
    Why tabs are clearly superior
    4 people · 5 points · first shared 2012 · discussion on HN
  7. 7
  8. 8
  9. 9
    Web dependencies are broken. Can we fix them?
    3 people · 4 points · first shared 2026 · discussion on HN
  10. 10
    The Cicada Principle, revisited with CSS variables
    3 people · 3 points · first shared 2020 · discussion on HN
  11. 11
  12. 12
    My positive experience as a woman in tech
    2 people · 520 points · first shared 2015 · 385 comments on HN
  13. 13
  14. 14
    Engage, don't show
    2 people · 72 points · first shared 2024 · 25 comments on HN
  15. 15

What HN people wrote when they linked it

petemilly · 2023-12-29
Oh nice, I hadn't heard of Bliss.js, but the creator (https://lea.verou.me/) is great.
rob74 · 2021-02-02
Ironically, the author of dpi.lv (https://lea.verou.me/) doesn't even bother to have a "desktop-friendly" site. On desktop everything (font, header, images, buttons) is huge and ~50% of the vertical space is wasted. Not the best calling card for someone living "at the bleeding edge of web standards". Or maybe it looks Ok if you view it on a Mac?
JimmyM · 2015-04-14
95% of the more complex errors I've seen* in CSS have been some combination of a misunderstanding of positioning (https://developer.mozilla.org/en-US/docs/Web/CSS/position) and the box model (https://developer.mozilla.org/en-US/docs/Web/CSS/box_model). The other 5% of relatively complex display errors are actually due to unfortunate choices when writing the HTML. I think once you understand those, the rest is really quite simple. Media queries, clever nonsense with things like ":target" or ":not([class]) > div > img", it's all ultra-simple because there are no logic bugs you can introduce once you know the syntax – the only logic you need to think about is in the positioning of elements on the page. As a backend web developer, you will find it all very simple. A bit of bloody-minded Googling will solve the majority of your problems, and the CSS answers on StackOverflow are more helpful & polite than they are in many other areas. For HTML, some features I have found useful include definition lists, dfn, nav, header, section and article elements. It may also be useful to check out Schema.org. So I guess my recommendation is to get the box model and positioning down pat for CSS, and get semantic elements down for HTML5. If you like genuinely clever and awesome tricks, check out Lea Verou (http://lea.verou.me/). *"seen" as in "made myself"
Heff · 2024-10-08
Good question. There’s a good post from Lea Verou worth reading. https://lea.verou.me/blog/2024/wcs-vs-frameworks/ I think anything meant to be like a widget is a good fit. But an iframe you have the option of putting an app behind it while a web component is purely front end code. So maybe that’s a limitation for you. We at least plan to wrap iframes in web components for a nicer embed API.
alwillis · 2022-12-31
> Works for me on a 2018 Moto w stock Android 10. My color options are (translated) natural, boosted and saturated, w saturated active. Seems to be the factory default. Since there's no mainstream browser for Android that supports Display P3, it's unlikely that you're seeing the correct image. There's a test image as part of this excellent article on color; you'll know right away if your hardware and browser supports Display P3 or not [1]. I'm using Safari on a 2017 iMac, so I can see the Display P3 images. [1]: https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
simonw · 2021-07-17
So many - I'm going to share a few that come to mind quickly, rather than agonizing over picking the best possible results. Tim Bray: https://www.tbray.org/ongoing/ Julia Evans: https://jvns.ca/ Tom MacWright: https://macwright.com/ Jacob Kaplan-Moss: https://jacobian.org/ Lea Verou: https://lea.verou.me/ Will Larson: https://lethain.com/featured/ Camille Fournier: https://skamille.medium.com/ Haki Benita: https://hakibenita.com/ Brandur Leach: https://brandur.org/articles
limedaring · 2017-01-30
Some amazing non-male developers: — Jen Simmons: http://labs.jensimmons.com/ — Julia Evans: https://jvns.ca/ — Lea Verou: http://lea.verou.me/ — Mina Markham: http://mina.codes/ — Sara Soueidan: https://sarasoueidan.com/articles/ — Sarah Mei: http://www.sarahmei.com/blog/ — Ana Tudor: https://thebabydino.github.io/ — Anna Debenham: http://www.maban.co.uk/
kifki · 2015-07-28
I like Lea Verou: http://lea.verou.me and Nicole Sullivan: http://www.stubbornella.org/content/
lstamour · 2020-04-27
Small suggestions (just based on the website copy): consider supporting other colour spaces, like Display-P3, DCI-P3, Adobe RGB, CIE... not sure what the source data from the camera can tell you though. LCH color picking based on CIE might also be useful http://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/ It’s worth pointing out that Pantone generally only matches print colours, and labels digital representations seemingly exclusively in sRGB, not wider colour spaces. https://www.pantone.com/color-intelligence/articles/technical/what-are… for the sRGB chart. Here’s an example exception: https://www.nanosysinc.com/blog/2012/12/11/color-of-the-year-for-2013-… Despite this, it has an sRGB hex value, so I’m not sure what to make of it. https://www.pantone.com/color-finder/17-5641-TCX It seems odd that Pantone lists these color values without listing absolute or relative values by named color space...
mklim · 2016-06-11
>I (maybe I am wrong) have been intending to treat team-members as "some dudes with bumps on their chest that may have various after hours habits that are none of my concern". FWIW, this is personally my ideal working environment. I can't speak for women in general, and I'm not a moral authority, but this is exactly the kind of treatment I want from my coworkers. >what should I do to be better? I don't know, honestly. I know that's an inadequate response, but I'm not sure how to appropriately address ingrained societal sexism either. As far as subconscious bias in hiring goes, having rubrics and standardized interviews goes a long way at eliminating it. I'd theorize that standardized metrics for performance reviews would help on that front, too, though I don't think that's been studied. If you browse the million and one women in tech posts out there you can see people talking about it at length, though I would be wary of taking somebody's opinion as truth just because they're female, and I would be doubly wary of taking a tech blogger at her word vs an actual female engineer. Your personal set of ethics re: equality of opportunity vs outcome also plays into what you "should do" quite a lot. Some suggestions (like formalized hiring rubrics) are completely valid whether or not you believe in equality of opportunity vs outcome, but others (like instituting diversity quotas in hiring) are not. This blog post is well cited and worth a read, it has a few good suggestions IMO:…
OroPla · 2026-08-10
From the article: > When you press it for the first time, it toggles to the opposite of what you’re currently seeing, and stores the literal value (light or dark). The next time you press it, it toggles back to the system default, and removes the stored value. The article even provides a demonstration demo: https://lea.verou.me/blog/2026/dark-mode-toggles/demo
capitainenemo · 2025-08-24
This seems like a good opportunity to bring up the old, more hacky, but also more performant and predictable CSS random effect using backgrounds of prime number sizes to achieve a "random" distribution. The "cicada principle" https://www.sitepoint.com/the-cicada-principle-and-why-it-matters-to-w… https://lea.verou.me/blog/2020/07/the-cicada-principle-revisited-with-… In this case you would use multiple transparent tiles of different star patterns (images, or gradient/clip-path tricks), each one a different prime number in size. It should work with anything you can tile and overlay in CSS though.
LorenzA · 2025-05-17
there is a good article from lea verou https://lea.verou.me/blog/2024/contrast-color/ on a workaround like this
acemarke · 2024-10-10
This seems to be a pretty low-effort post without any real substantive details. I'd much rather see discussion of the "Parallel Evolution of React and Web Components" article that got posted earlier today. I don't agree with that author's strong stance against React, but it's at least a well-written post with substantial thought and significant technical detail: - https://news.ycombinator.com/item?id=41790499 or these other relevant posts: - https://nolanlawson.com/2024/09/28/web-components-are-okay/ - https://lea.verou.me/blog/2024/wcs-vs-frameworks/ - https://mastodon.social/@molily/113215236512572084
_nalply · 2023-10-22
Private properties don't work with Proxy. https://lea.verou.me/blog/2023/04/private-fields-considered-harmful/ Quote: > Private fields, proxies, pick one, you can’t have both.
Brajeshwar · 2022-05-07
This is nice. I didn't try but to get a pseudo-random variation of the book height, will it be possible to do a pre-defined Cicada Principle[1] method, say, pick 20-30 heights and keep picking them up. There seem to be quite a lot of people who have their own book collection. I'm still looking for something simple that can spit out a HTML front; and yet to find something I like. On another note, recently I was looking for a Library Management System for a small community, with a current book collection of over 25,000. I looked a bunch of Open Source Solutions (most are too complex). I also do not want to do build anything from scratch. I settled on Libib[2] and the subscription is economical enough for what we are looking for. 1. https://lea.verou.me/2020/07/the-cicada-principle-revisited-with-css-v… 2. https://www.libib.com
paulirish · 2022-01-10
LCH [1] is quite similar [2] to HSLuv and already shipped as a CSS color function in Safari (and soon in Chromium). [1] https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/ [2] https://news.ycombinator.com/item?id=18425916 similar thread from 3 years ago
davidivadavid · 2020-05-13
There's work being done in that department so hopefully the rest of the tools adapt: http://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
melenaos · 2017-09-25
Read lea verou book 'css secrets' it's an awesome book for every web developer. http://lea.verou.me/writing/
wordupmaking · 2017-05-23
I miss bytesizematters.com ( http://lea.verou.me/2009/07/bytesize-matters/ ), made by a true dude bro in more innocent times.
nilliams · 2016-09-22
Couldn't agree more, this is one thing that Python/PEP8 got completely wrong. (Leading) column-aligned code falls down more-often-than-not in practice and is a terrible reason to sacrifice tabs. Tabs are superior. [0] [0] http://lea.verou.me/2012/01/why-tabs-are-clearly-superior/
jameshart · 2015-09-03
http://lea.verou.me/css3patterns/ could provide a pretty good source for patterned card backs.
agumonkey · 2015-05-12
Always liked Verou's single-functions websites http://lea.verou.me/projects/.
xatnys · 2015-01-09
Nicely done -- this reminds me of a technique outlined by Andre Luis and Lea Verou here: http://lea.verou.me/2011/01/styling-children-based-on-their-number-wit… Building on these selectors and giving them meaningful names is a nice way of taking it a step further.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close