Skip to content

Conversation

marklawlor
Copy link
Contributor

@marklawlor marklawlor commented Oct 2, 2025

Fix #207

@Copilot Copilot AI review requested due to automatic review settings October 2, 2025 13:13
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds runtime support for the CSS color-mix() function, enabling mixing of colors in different color spaces during runtime. The implementation includes parsing of color-mix() syntax, runtime color mixing functionality using the colorjs.io library, and support detection for TailwindCSS compatibility.

  • Adds color-mix() CSS function parsing and compilation support
  • Implements runtime color mixing with colorjs.io library supporting multiple color spaces
  • Adds TailwindCSS compatibility through @supports detection

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/native/styles/functions/index.ts Exports the new color-mix function module
src/native/styles/functions/color-mix.ts Implements runtime color mixing functionality using colorjs.io
src/compiler/supports.ts Adds @supports detection for color-mix syntax compatibility
src/compiler/declarations.ts Adds color-mix parsing logic to handle CSS color-mix() function syntax
src/tests/native/color-mix.test.tsx Adds test coverage for color-mix functionality with different color formats

marklawlor and others added 2 commits October 2, 2025 23:15
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@marklawlor marklawlor enabled auto-merge (squash) October 11, 2025 04:56
@marklawlor marklawlor merged commit bb13c29 into main Oct 11, 2025
7 checks passed
@marklawlor marklawlor deleted the 10-02-feat_add_runtime_color-mix_ branch October 11, 2025 04:57
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.

Variables without opacity

1 participant