stylex
stylex copied to clipboard
@stylexjs/eslint-plugin: Better parsing to correctly validate various values.
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
- Create a style with color property
- Use value outside the type, for example
oklch(0 0 0)
. - Try linter
Test case
const styles = stylex.create({
example: {
color: "oklch(0 0 0)",
},
});
Additional comments
No response