shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
58.59k stars 3.19k forks source link

feat: merge existing tailwind config #3558

Open juliusmarminge opened 3 weeks ago

juliusmarminge commented 3 weeks ago

this merges the existing tailwind config to not remove any existing config when initializing the shadcn-ui config.

before (custom font settings was removed):

image

after (font config is preserved):

CleanShot 2024-04-20 at 23 18 05@2x

note that it's json-quoted but i don't think this is an issue as the previous solution also didn't produce an output that adhered to the user's formatting rules (use of single-quotes, semis etc etc). could ship prettier and run that on the file before writing, but with other formatters like biome getting popular i don't think this is worth it, and a manual save by the user is adequate)

vercel[bot] commented 3 weeks ago

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

A member of the Team first needs to authorize it.

Nsttt commented 3 weeks ago

That's looks good to me