swisspost / design-system

The Swiss Post Design System - for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
124 stars 14 forks source link

[helpers]: Palettes #3432

Open alizedebray opened 2 months ago

alizedebray commented 2 months ago

Description

Classes to allow user to set a color set on any HTML section.

Design

There is no design for the helpers.

Token proposal

Tasks

### 💻 Tasks
- [x] HTML/CSS implementation
- [x] Documentation in Storybook
- [x] Visual regression tests
gfellerph commented 2 months ago

Already in Design (called Surface), tokens are easy to add.

oliverschuerch commented 1 month ago

Depends on #3557

gfellerph commented 1 month ago

Does a specific surface also hold information if it's on a light or dark background? I think this needs some more discussion with Design and a better strategy on how we want to implement it.

alizedebray commented 1 week ago

@Vandapanda can you please rename "palette" to "palettes" to align with other sets and also add tokens for all theme/schemes (post-light, post-dark, cargo-light, cargo-dark)? Even if the colors are not correct for now, otherwise I get missing token errors. Thanks!

PS: the token names also still contain "helper" which is probably not what we want: Image

Vandapanda commented 1 week ago

@alizedebray Changed the namings accordingly and will get pushed in a few hours. For the 2nd request I'm kind of missing some context. As it is right now the colors automatically change based on what canvas is used as they are rooted through scheme and theme. Do you need them hardcoded?

alizedebray commented 1 week ago

@Vandapanda Currently we have this tokens: Image

And we would need to have this: Image

alizedebray commented 4 days ago

Latest state, some tokens are still missing for Cargo: Image