ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
90.41k stars 46.39k forks source link

Support for OKLCH color space #48698

Closed igakopi closed 1 week ago

igakopi commented 2 weeks ago

What problem does this feature solve?

Theming should support OKLCH format. In oklch lightness value is based on human perception, so moving through the hue always renders the same lightness comparatively. It will positively influence user experience and ease of controlling contrast ratios in terms of accessibility. Oklch can also display colors the newer Display P3 gamut.

What does the proposed API look like?

This regards Theming configuration.

github-actions[bot] commented 2 weeks ago

Hello @igakopi. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @igakopi,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?

afc163 commented 2 weeks ago

Could you provide reproduce about how cannot antd support OKLCH color space?