Skip to content

feat: extend theme customizer with CSS variables section#1210

Closed
Railly wants to merge 0 commit intoshadcn-ui:mainfrom
Railly:main
Closed

feat: extend theme customizer with CSS variables section#1210
Railly wants to merge 0 commit intoshadcn-ui:mainfrom
Railly:main

Conversation

@Railly
Copy link
Contributor

@Railly Railly commented Aug 12, 2023

Description

Summary

This pull request introduces a new section named CSS Variables to the customize dropdown, allowing developers to modify each CSS Variable granularly. I have implemented this feature using input type color for simplicity, with plans to enhance the UX in the future.

Features

  • CSS Variables Customization: Enable detailed control over individual CSS Variables.
  • User Experience: Currently kept within a dropdown to maintain simplicity, but I have also explored a fixed sidebar approach in the demo.

Considerations

  • UI Complexity: With the extensive options available, there might be a risk of overloading the user. Suggestions to show/hide "advanced color options" are on the table.
  • Sidebar Implementation: Considering a sidebar approach similar to Radix Themes or like the demo. Open to feedback.

Demo

See the live demo here https://shadcn-ui-customizer.vercel.app

Future Work

  • Opt to use a color picker library.
  • Evaluate the possibility of implementing a sidebar.

Screenshots

image image

@vercel
Copy link
Contributor

vercel bot commented Aug 12, 2023

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

A member of the Team first needs to authorize it.

@shadcn shadcn added enhancement New feature or request area: themes labels Aug 17, 2023
@Codigo-Fuentes
Copy link

this is badass

@SilvianAchim
Copy link

Please add this!

@tan-ahmed
Copy link

bump

@nrjdalal
Copy link
Contributor

bruh this is some amazing work, make another pull request, to move it forward

@Railly
Copy link
Contributor Author

Railly commented Mar 22, 2025

hey @shadcn is this something you still want to be merged? I can update the branch if you confirm it!

I can even make the color pickers something like https://tinte.dev/shadcn.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: themes enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants