Skip to content

Conversation

@itsmartashub
Copy link
Owner

No description provided.

…tions

- slice() > substr() (deprecated and slower)
- Multiplication instead of division where possible
- Bitwise OR (| 0) for faster float-to-int conversion
- padStart() instead of manual zero-padding logic
- Reduced conditional branches in HSL conversion
…and clean up watchers to prevent mem leak

- Refactor custom colors logic by encapsulating the color picker into a dedicated, reusable component
- Clean up color watchers when the component is unmounted to prevent memory leaks and improve performance
- Improve code modularity and maintainability by isolating color picker functionality

Changes summary:
- Refactored the custom colors implementation by wrapping the color picker into a separate component. This improves code organization and reusability. Additionally, color watchers are now cleaned up when the component is unmounted, ensuring better performance and preventing potential memory leaks.
@itsmartashub itsmartashub self-assigned this Sep 9, 2025
@itsmartashub itsmartashub merged commit 268e84c into v3 Sep 9, 2025
1 check passed
@itsmartashub itsmartashub deleted the refactor/accent-color branch September 9, 2025 19:41
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.

1 participant