undocs icon indicating copy to clipboard operation
undocs copied to clipboard

allow passing theme colours that aren't tailwind defaults

Open danielroe opened this issue 1 year ago • 5 comments

Describe the feature

it would be nice to allow customising colours - maybe passing in a hex value and auto-generating a colour palette?

Additional information

  • [x] Would you be willing to help implement this feature?

danielroe avatar Mar 22 '24 18:03 danielroe

We use nuxt ui colors. Do you find a simple method to allow overriding it with custom hex?

pi0 avatar Mar 22 '24 18:03 pi0

Thinking of something like https://github.com/bobthered/tailwindcss-palette-generator or https://github.com/dantzjs/tw-shades.

danielroe avatar Mar 25 '24 09:03 danielroe

Actually we have unjs/theme-colors and it was used in previous versions of undocs until we adopted nuxt UI color pallets 😅 Ideas welcome how we can add it back optionally.

pi0 avatar Mar 25 '24 10:03 pi0

Nice! I think maybe if the colour provided is a hex value? That seems a clear indication to create a palette.

danielroe avatar Mar 25 '24 10:03 danielroe

Feel free to try adding it 👍🏼

pi0 avatar Mar 25 '24 10:03 pi0