chloeam.bsky.social
@chloeam.bsky.social
Ah ok, that makes sense to me as well, especially for whitelabels. Where would you store light and dark modes, or high contrast?
June 11, 2025 at 1:24 PM
Yes, I remember the Config '22 talk where you gave us a peek! We keep primitives in light/dark modes and semantics are 1 mode. That makes the most sense to my brain but I know it's not best practice. And I couldn't find any examples of how to implement this using variables. What are your thoughts?
June 11, 2025 at 12:28 PM
This is how it’s always made the most sense to me as well! It also allows you to easily have separate color ramps for light and dark mode, which typically have different saturation needs. I find this system gives better results than forcing all color tokens to pull from the same ramp.
June 7, 2025 at 11:29 PM