There were two tokens in Wikit that perform a division in the token's value field. This caused some log spam in the query builder build step due to a difference in SASS versions with a change in the division syntax. Ideally we want this division (or any expression or arithmetic function) to be calculated during the build step to maximize compatibility.
Unfortunately it looks like style-dictionary does not intend to ever support this, so we need to figure out a different way to deal with it. The suggested solution appears to be calculating the value in JS, but this might be more difficult with values that contain units.
Acceptance Criteria: 🏕️🌟(July 2021)
- All build artifacts of @wmde/wikit-tokens contain only values for all tokens (instead of calculations), when there are expressions in the token definition.
- Tests or linting to ensure that no calculations are present
-
There is a clear and documented way to do simple token arithmetic for wikit-tokens