Closed Cian77 closed 1 month ago
Default label styles can be inherited from the body. Other label variants are used in specific contexts, so the context should provide the overrides. Do we even need specific label styles or is it pure overhead?
-> If we define default label styles using the tokens, we'd get style changes to the default label without any change from our side, but as long as the label has the same styles as default text, we'd ship code that does not do anything.
@oliverschuerch please add information about what's needed from token side
We will not create tokens to use in code for this. As @gfellerph described, these text styles are used in different contexts (buttons, inputs, etc.). and will be tokenized there, per component.
There might be some FigmaOnly typography tokens for this, to simplify things in Figma, but that's all.
@Cian77 we will also not provide the possibility to use those styles through utility css-classes, because we don't think this should be possible. Do you agree?
If @Cian77 agrees to the above question, we can close this issue.
@oliverschuerch @gfellerph @Cian77 Task unclear, can we close the ticket now or is there more needed? Ticket seems not ready for tokenization.
Closed according to discussion, no specific label tokens will exist. Instead each Component uses its own token.
Description
Open issues:
Design:
Tokens:
Design
https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=26-49
Tokens
DEVs proposal Base styles:
body
Token set name:Element/Label
post-label-font-weight
(Label large bold (default))post-label-gap-block-start
https://github.com/swisspost/design-system/labels/needs%3A%20discussionpost-label-gap-block-end
https://github.com/swisspost/design-system/labels/needs%3A%20discussionTasks