stylex icon indicating copy to clipboard operation
stylex copied to clipboard

@stylexjs/eslint-plugin: Better parsing to correctly validate various values.

Open robinlahtinen opened this issue 4 months ago • 6 comments

Describe the issue

Stylex ESLint disallows oklch(0 0 0) or following color formats.

Expected behavior

Stylex ESLint allows all color formats supported by CSS Color Module Level 4 or higher.

Steps to reproduce

  1. Create a style with color property
  2. Use value outside the type, for example oklch(0 0 0).
  3. Try linter

Test case

const styles = stylex.create({
    example: {
        color: "oklch(0 0 0)",
    },
});

Additional comments

No response

robinlahtinen avatar Feb 04 '24 19:02 robinlahtinen