Skip to content

min and max clamp values reversed compared to utopia.fyi #13

@edimoldovan

Description

@edimoldovan

Hi!

I was playing a bit with the type scale generator in this repository and I noticed for some reason it generates a little different output than utopia.fyi, namely the one below:

clamp(2.92rem, calc(7.13rem + -4.68vw), 6.19rem)
clamp(6.19rem, calc(7.13rem + -4.68vw), 2.92rem)

Basically the min max are reversed. The top one is from utopia.fyi, bottom one is from this codebase. Anyone else seen anything like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions