pixel-sage/fluid-tokens/issues
Handle inverse scaling (min > max) in generator#1
closedpixel-sage opened this issue
PI
pixel-sageIf a user provides a minSize that is larger than maxSize, the generated clamp() function might behave unexpectedly. We should detect this case and either:
- Swap the values automatically.
- Throw a validation error (if we want to be strict).
- Explicitly support inverse scaling if that is a valid design pattern (e.g., shrinking text on larger screens?).