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
本机暂存
建议继续学习
- Practical Interface Patterns For AI Transparency (Part 2) (累计阅读 1)
- Designing Stable Interfaces For Streaming Content (累计阅读 1)
- Testing Font Scaling For Accessibility With Figma Variables (累计阅读 3)
- Designing For Agentic AI: Practical UX Patterns For Control, Consent, And Accountability (累计阅读 2)
- Using CSS corner-shape For Folded Corners (累计阅读 2)
- A Scrollytelling Gift for Mum on Mother’s Day 2026 (累计阅读 4)