-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tailwind Tokens: Additional gaps and space #325
Comments
We've aligned on this again and will change it to 4px steps, like this:
|
But why adding these additional options instead of just using the numbers that already exist? |
Valid aspect. To give you some context on these tokens, they have been initially developed out of an older guidelines version, so both keys and values are retrieved out of this older pattern. It would be perfectly valid to use the default What do you suggest how we should proceed on this? As |
Thanks for the explanation, now I understand why these tokens exist. For me both would be ok, because we will use only the numbers in our application. Terms like "md" are known as breakpoints and could lead to confusion if they are also used for gaps at the same time. I guess for this reason numbers were chosen for TailwindCSS defaults. But of course you can completely customize it. Finally, a good documentation with recommendations is certainly what shows us developers the right way. |
Currently the TailwindCSS tokens are adding custom gaps and space values:
base/tokens/tailwind/spacing.json
Lines 28 to 41 in 1b6bbf4
Why do we set them? Why is there no
16px
? Why are they duplicated? Is there any relation to the breakpoints?Mostly you are using the default gap values (e.g.
gap-1
instead ofgap-md
); see https://tailwindcss.com/docs/gapThe text was updated successfully, but these errors were encountered: