- From: James Nash via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 Nov 2023 13:18:11 +0000
- To: public-design-tokens-log@w3.org
@jimmymorris Would you like to be able to express a default text alignment as a design token along the lines that @TravisSpomer outlined above? Or did you have something else in mind? While my gut reaction is to agree with Travis & @mryechkin - text alignment doesn't _feel_ like something that would be useful to codify as a design token - I suppose it's conceivable that folks might want text alignments like center or justify to be linked to certain styles or components and be something they can alter at the system level. Perhaps a multi-brand design system uses left-aligned text for pull quotes in one theme and right-alignment in another. If there are any folks doing stuff like that, please share. If there are concrete use-cases, it may be worth considering adding a type for this after all. In that case, for i18n use-cases, I wonder whether having logical values like CSS's `start` and `end` rather than (or in addition to?) explicit `left` or `right` one might make sense - those would resolve to left or right depending on the app's/user's locale settings). Out of curiosity, I just checked Figma and text alignment is _not_ something it includes as part of a typography style. So, it looks like they reached a similar conclusion to Travis & Mykhaylo. Haven't checked other tools, so if someone knows of ones that _do_ let you store text alignment as part of something design-token-esque like a typography style or variable, then please do share. -- GitHub Notification of comment by c1rrus Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/232#issuecomment-1820910790 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 21 November 2023 13:18:13 UTC