-
Notifications
You must be signed in to change notification settings - Fork 26
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
Introduce standard spacing to the theme #425
Conversation
e58e0b8
to
26b12ad
Compare
I'm surprised by how few changes there are here? |
This PR just creates the theme, #424 will apply it to all the components in the repo.
That constant is still being used in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
src/theme/spacings.js
Outdated
import { forEach } from 'lodash'; | ||
|
||
export const spacing = { | ||
none: '0px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this? and if so would it be better as just 0 seeing as unit is irrelevant and often times you want to explicitly have no border with border: 0
as opposed to a border of 0px
width. Semantics ¯\(ツ)/¯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need this?
I put it there just in case, so that if we ever decided to enforce the linting rules, we don't have come back to this just to add the zero :)
...would it be better as just 0 seeing as unit...
Agree, will make the change.
4fc9665
to
716d1a9
Compare
Resolves #400.