Skip to content
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

Propose collapsing dimensions/lengths into sizes key #2

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

jxnblk
Copy link
Member

@jxnblk jxnblk commented Mar 31, 2019

A thought occurred to me the other day that it might make more sense to collapse width and height properties into a single field, similar to how space is currently treated. It seems like the same values could be reused for different properties. This is similar to something @ianstormtaylor proposed on twitter with lengths.

Possible, alternative names to consider:

  • sizes
  • dimensions
  • lengths
  • Other? Please comment

It's worth noting that <length> has a specific meaning in CSS that is slightly different than the possible values here (e.g. percentages), which is part of the reason for using sizes in this PR

@jxnblk jxnblk mentioned this pull request Mar 31, 2019
@ianstormtaylor
Copy link

sizes is a great word for it. Used it originally myself too, and had to switch for unimportant internal reasons, but was using sizes before that and liking it.

@fk
Copy link

fk commented Apr 4, 2019

+1 for sizes: I spontaneously picked dimensions recently during a minor "spring cleaning" binge for gatsbyjs.org, but in hindsight it feels a bit too "vague" next to space.

fk added a commit to gatsbyjs/gatsby that referenced this pull request Apr 4, 2019
KyleAMathews pushed a commit to gatsbyjs/gatsby that referenced this pull request Apr 4, 2019
…tSizes, dimensions -> sizes) (#13107)

* Rename presets.scale to .fontSizes

https://system-ui.com/theme

* Rename presets.dimensions to .sizes

Ref. system-ui/theme-specification#2
@jxnblk
Copy link
Member Author

jxnblk commented Apr 10, 2019

Merging this in because it seems like generally a good direction based on feedback

@jxnblk jxnblk merged commit fa34752 into master Apr 10, 2019
@jxnblk jxnblk deleted the sizes-alternative branch April 10, 2019 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants