Skip to content

feat(linter): add oklch color support#35

Open
seonghobae wants to merge 1 commit intogoogle-labs-code:mainfrom
seonghobae:oklch-support-20260423
Open

feat(linter): add oklch color support#35
seonghobae wants to merge 1 commit intogoogle-labs-code:mainfrom
seonghobae:oklch-support-20260423

Conversation

@seonghobae
Copy link
Copy Markdown

This PR adds support for the OKLCH color model, allowing color values to be used in DESIGN.md files. The parsing logic is updated to handle this format, and the internal type is updated to preserve the original value.

Fixes #27
Related to #29

This commit adds support for the OKLCH color model, allowing  color values to be used in DESIGN.md files.

- The  function in the model spec is updated to recognize  syntax.
- The  function in the model handler is updated to use the  library to parse  strings and convert them to the internal  format, including the sRGB hex fallback and raw RGB values.
- The  type now includes an optional  field to preserve the original value.
- The  library has been added as a dependency.
- A TypeScript declaration file for  is added to resolve type errors during the build.
- Tests for color validation and parsing have been updated to include OKLCH cases.
- The  field was also added to the root  to unblock the build process in the clean worktree.

Fixes google-labs-code#27
Related to google-labs-code#29
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 23, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@seonghobae
Copy link
Copy Markdown
Author

The implementation for OKLCH color support is complete and has been fully verified locally with passing builds and tests.

The PR is currently blocked by the check, which requires manual intervention. The code itself is ready for review and merge.

@seonghobae seonghobae marked this pull request as ready for review April 23, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support OKLCH colors

1 participant