IT技术博客大学习 共学习 共进步

Day for Night

neverland 2026-06-03 09:03:24 累计浏览 16 次
本机暂存

Marcin Wichary:

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), use hue-rotate(180deg) invert(1).

建议继续学习

  1. Practical Interface Patterns For AI Transparency (Part 2) (累计阅读 3)
  2. Designing Stable Interfaces For Streaming Content (累计阅读 6)
  3. Testing Font Scaling For Accessibility With Figma Variables (累计阅读 5)
  4. Designing For Agentic AI: Practical UX Patterns For Control, Consent, And Accountability (累计阅读 5)
  5. Using CSS corner-shape For Folded Corners (累计阅读 5)
  6. A Scrollytelling Gift for Mum on Mother’s Day 2026 (累计阅读 7)