tints.dev icon indicating copy to clipboard operation
tints.dev copied to clipboard

Error when outside lightness min/max bounds

Open courdek opened this issue 5 months ago • 0 comments

Got this error when narrowing the lightness range of a palette.

TypeError: Cannot read properties of null (reading 'toLocaleLowerCase')
    at https://www.tints.dev/assets/Generator-CDbKGS2Y.js:59:61477
    at Array.map (<anonymous>)
    at https://www.tints.dev/assets/Generator-CDbKGS2Y.js:59:61438
    at Array.map (<anonymous>)
    at lb (https://www.tints.dev/assets/Generator-CDbKGS2Y.js:59:61406)
    at ob (https://www.tints.dev/assets/Generator-CDbKGS2Y.js:59:60157)
    at du (https://www.tints.dev/assets/components-CGSmBamt.js:38:16994)
    at da (https://www.tints.dev/assets/components-CGSmBamt.js:40:3139)
    at Ad (https://www.tints.dev/assets/components-CGSmBamt.js:40:44692)
    at Id (https://www.tints.dev/assets/components-CGSmBamt.js:40:39699)

Reproduce this by performing the following steps in any order:

  • Set lightness maximum to any value over 106 OR minimum to any value below -6
  • Change Tailwind version to 4

courdek avatar Sep 06 '24 20:09 courdek