Skip to content

Conversation

MatiPl01
Copy link
Member

@MatiPl01 MatiPl01 commented Oct 16, 2025

Summary

This PR implements a separate CSS value type - SVGBrush for the SVG colors and removes SVG-specific code from the CSSColor implementation.

I named the new type SVGBrush (instead of SVGColor) as react-native-svg uses the RNSVGBrush type to represent color-like values. I also need to add support for other brush values like context-fill and context-stroke (currently only currentColor is supported). I will add support for then in a separate PR.

@MatiPl01 MatiPl01 self-assigned this Oct 16, 2025
@MatiPl01 MatiPl01 changed the title Move SVG color to a separate SVGBrush struct chore: Move SVG color to a separate SVGBrush struct Oct 16, 2025
@MatiPl01 MatiPl01 requested a review from piaskowyk October 16, 2025 21:45
@MatiPl01 MatiPl01 force-pushed the @matipl01/svg-brush-css-value branch from 34183be to ef2ae7c Compare October 17, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant