How can I customize the default spacing between components in shadcn to fit my design? #6049
-
I am using shadcn in my project and I want to tweak the spacing between components globally to align with my design. Is there a way to do this without overriding every component manually? |
Beta Was this translation helpful? Give feedback.
Answered by
georgeeburt
Dec 12, 2024
Replies: 1 comment 1 reply
-
You can customise the default spacing globally in shadcn by extending the tailwind CSS configuration file ( Here is a simple example:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
desiah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can customise the default spacing globally in shadcn by extending the tailwind CSS configuration file (
tailwind.config.js
) since shadcn is built on tailwind.Here is a simple example:
Hope this helps.