But there’s a trick [to invert black and white while preserving colors]: do a regular invert and then rotate the hue halfway through. Through the magic of math, this is the same as inverting just L in the HSL space, which means the colors are preserved.
…and, more importantly, [this is] available in CSS as a filter: instead of
invert(1), usehue-rotate(180deg) invert(1).
Day for Night
本机暂存
同分类推荐文章
- Your Prototype Is Not Being Honest With Your Users (And Here’s How To Fix It) (2026-05-25 20:00:00)
- Fixed-Height Cards: More Fragile Than They Look (2026-05-04 22:01:36)
- The UX Designer’s Nightmare: When “Production-Ready” Becomes A Design Deliverable (2026-04-22 18:00:00)
建议继续学习
- 十个最容易犯的用户体验错误及规避方案 (累计阅读 79,428)
- 50个活力和动感的网页设计-颜色的灵感 (累计阅读 34,363)
- 流程管理与用户研究 (累计阅读 16,984)
- 30套最好的网站开发与设计中使用的小型图标 (累计阅读 12,465)
- sns视觉设计分享 (累计阅读 9,447)
- 网站导航设计的6大分类 (累计阅读 9,208)
- 精于图片处理的10款jQuery插件 (累计阅读 7,322)
- 给想转行做产品经理的同学 (累计阅读 6,865)
- 互联网产品经理必读书目 (累计阅读 5,786)
- 概念视觉设计 (累计阅读 5,765)