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

Cascading T-Shirt Sizes (DX) #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alolalo
Copy link

@alolalo alolalo commented May 3, 2022

Hi George!

My name is justgu.us and I'm an indie dev that loves to create systematical naming conventions that spark the narrative of code in a more semantical way.

I implemented my model for cascading t-shirt sizes on your spaceSteps and spacePairs naming convention, that used to be -2xl etc. It might look fresh at first, but you will soon spot the cascading pattern of the sizing I use; XX, XS, SS, SM, MM, ML, LL, LD, DD, ZZ

It's a way to make fluid scales have a better relationship to each other as tokens using the t-shirt sizes that we know, plus Display. And as a refactoring-bonus; they are just "imaginary" numbers anyway, steps on a scale. So exchange the D with anything you see fit after Large.

I believe the semantics will improve the user experience of end-users to create their own customPairs like I did, plus it makes for a programmatical pattern to step up or down the scales & sizes if you wish to take it further in procedural coding.

As a reading experience bonus for both humans and computers, it cleans up the tokens quite nicely and makes them all stick to using the same amount of characters per token. Optimized for reduction.

I added one step that was missing in the current spacePairs btw; the use of 3XL (-ZZ) as a pair at the end. Should you choose not to use these tokens, then at least the notice of a missing pair was of value ;)

Thanks for reviewing and take care!

Hi George!

My name is justgu.us and I'm an indie dev that loves to create systematical naming conventions that spark the narrative of code in a more semantical way.

I implemented my model for cascading t-shirt sizes on your spaceSteps and spacePairs naming convention, that used to be -2xl etc. It might look fresh at first, but you will soon spot the cascading pattern of the sizing I use; XX, XS, SS, SM, MM, ML, LL, LD, DD, ZZ

It's a way to make fluid scales have a better relationship to each other as tokens. I believe that will improve the user experience of end-users to create their own customPairs like I did, plus it makes for a programmatical pattern to step up or down the scales & sizes if you wish to take it further.

As a bonus, it cleans up the tokens quite nicely and makes them all stick to using the same amount of characters per token.

I added one step that was missing in the current spacePairs; the use of 3XL (-ZZ) as a pair at the end.

Thanks for reviewing and take care!
@netlify
Copy link

netlify bot commented May 3, 2022

Deploy Preview for fluid-design-system ready!

Name Link
🔨 Latest commit 375918b
🔍 Latest deploy log https://app.netlify.com/sites/fluid-design-system/deploys/62716035678eaf00093d2c77
😎 Deploy Preview https://deploy-preview-1--fluid-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@alolalo
Copy link
Author

alolalo commented May 16, 2022

Cool to see it working!

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.

None yet

1 participant