-
Notifications
You must be signed in to change notification settings - Fork 118
update colors demo #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
update colors demo #177
Conversation
|
There was a problem hiding this 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 enhances the colors demo interface by replacing a single text input field with eight individual color picker inputs, providing a more user-friendly way to customize the color palette for LeetCode stats cards.
Key Changes:
- Replaced single text input for colors with 8 individual HTML5 color pickers (bg0, bg1, text0, text1, color0-color3)
- Added responsive grid layout with 8 columns on desktop and 2 columns on mobile devices
- Implemented
getColors()function to aggregate individual color values into a comma-separated string for the API
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
|
Thanks for your contribution! Maybe we could add a switch to toggle custom colors? That way it won't always override the preset ones. |
That's a great idea, I just added the toggle let me know what you think, thank you again for the help and letting me contribute to this project! :) |
Adds seperate input fields with color selectors for colors parameter.