- From: Daniel Hruška via GitHub <sysbot+gh@w3.org>
- Date: Thu, 30 May 2024 11:59:52 +0000
- To: public-design-tokens-log@w3.org
Tools could just ignore types that they don't know. I would like to have a `string` type. Use case? In our design system we determine whether darken or lighten button background based on text color. - On darker background we prefer to lighten it - On lighter background we prefer to darken it ![Frame 1](https://github.com/design-tokens/community-group/assets/45754114/2e3cfabc-02c1-4a5e-9427-dfe6720e1719) We need to store the information somewhere because colors for `:hover` are not computed up until text colors are computed. We generate whole system from few params because of automation and flexible tweaking. In our example we use `"$bgInteractionMode" : "lighten"` or `"$bgInteractionMode" : "darken"`, which is a `string`. -- GitHub Notification of comment by danosek Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/234#issuecomment-2139400698 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 30 May 2024 11:59:53 UTC