- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Fri, 27 Dec 2024 03:01:28 +0000
- To: public-css-archive@w3.org
Thinking about this a bit more, I’m …not actually sure this is the right solution for the use cases at hand. Nearly every use case I've stumbled on that needs snapping to a scale of design tokens, is actually about getting the next/previous token in the scale (or ±N steps, if larger contrast is desired). While this seems like it would get us close, I worry that the arbitrariness of ending up with a token that could be any number of steps from the base one (or even none!) will render this useless for most designers. Instead, the use case I keep coming back to is around finding the current item in a scale and then getting another value N steps from it (e.g. the next or previous value). And these values are not necessarily dimensions or numbers, e.g. possibly the most common use case is around colors. It's possible that the use cases I've encountered do not represent the entire range of use cases for this feature, and there are some for which this is genuinely a realistic solution. However, I think we should spend some time articulating _actual_ specific use cases and ideally getting feedback from designers. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11067#issuecomment-2563263812 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 27 December 2024 03:01:29 UTC