-
Notifications
You must be signed in to change notification settings - Fork 59
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
Type sizing #62
Comments
Not sure on this one – but I think it depends on how you think changing them would be useful. Most of the time, the I’m unsure if this is a good thing or not – personally, I would rather people use the Not sure if I’m missing something that makes more of a case for the pros in changing them though? |
Agreed, I think we should try to enforce more rules on good typography and sizing. Allowing helper classes like this would perhaps mean lot's of shoe-horning of the design and weird font-sizing? I like it is currently, just need to be more strict with them personally. |
@ashleynolan isn't this the case already? These would replace the I like the idea of being able to give an element the font-size of an |
It’s the case for headers, for sure, but it would then become a larger issue with type-specific classes being used potentially for anything. I think having header classes like I think it is making the markup more tightly coupled to a styling variable that is prone to change and could potentially cause issues down the line. Changing the size of one of my type variables would require me to hunt down uses throughout the markup and possibly JS (if people added classes/markup in there too). Again, this would happen with the heading helper classes currently but at least by it’s definition it’s implied to be limited to use with headers. I just think font-size, like colour, is too vulnerable to change from my experience – having helper layout classes is more robust and makes sense – it would be like having a |
OK, you make a good case, I do not think this is a good idea, but should we remove the |
I don’t mind – I guess it’s weighing up the usefulness versus the fragility of them. I think they’re pretty useful just for header sizing, but if we think it’d be better to get rid of them – or at least one of them as I don’t think we need both in there – then that could be a good idea. |
OK, @CiaranPark, what do you think? |
I saw on Dropbox's Scooter framework, that they have helper classes for type size. We have kind of have this at the moment with our headings:
What do you think of removing the helper classes from the above and making more generi classes like below:
We could even have this so it is made perfectly clear what sizes each element uses:
Which would ultimately look something like this:
Would love some feedback on this please @munkychop @CiaranPark @ashleynolan @nicbell
The text was updated successfully, but these errors were encountered: