Skip to content

Select custom color for theme creation for #7545 #7588

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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

learnwithsatyam
Copy link

@learnwithsatyam learnwithsatyam commented Jun 11, 2025

@shadcn and @Jacksonmills I worked on providing custom theme generation support directly in the website. Now just like we have predefined themes like "green", "rose", "violet", "orange" , etc we also have a "custom" theme tab where the user can select a color from color picker and then below he can also see in real time how the theme or shadcn components will look for that color.

Related to #7545
Ref #7545
See #7545

He can then click on copy button to copy theme for tailwind v3 and v4 both. Please let me know if you have any questions.

You can directly message me on twitter : https://x.com/sattyshivhare

I really worked a lot for this. I thought this will be easy because I thought all I need to do is change the colors but man this really took grunt work and a lot of time to work 😂

Here is a working demo for the changes. The video quality is bad because GitHub won't let me upload more than 10 mb size :

Custom.Theme.PR.Request.video.mp4

…ary-foreground color based on the give primary color for v3
…e primary-foreground color based on the give primary color for v4
… copy button to copy the generated theme he get shown the correct theme
…copying the generated theme to clipboard will function correctly for the custom themes
Copy link

vercel bot commented Jun 11, 2025

@learnwithsatyam is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@learnwithsatyam learnwithsatyam changed the title Select custom color for theme creation Select custom color for theme creation for #7545 Jun 11, 2025
@learnwithsatyam
Copy link
Author

@shadcn now the custom themes tab is also support on mobile devices. I have uploaded a demo on twitter because GitHub is not allowing more than 10 mb video file :

https://x.com/sattyshivhare/status/1933347830611214463

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