Proposal for new title class names #2297
Unanswered
Aveline-art
asked this question in
Ideas
Replies: 1 comment 4 replies
-
@macho-catt @arghmatey This sounds insane, but how do we feel about the tentative feasibility of dynamically-created design system pages? I know that these pages are designed via collections or .yml files. Can the .yml files for title sizes (typography?) be dynamically created based on top 7 usage? The GHA will probably work as such:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At HackForLA website, we have seven title classes named .title-1 to title-7, each denoting a font size in descending order. This system works, for the most part, but what happens if we need a font size between .title-1 and .title-2? We can call it .title-1.5, but where does this decimal system end? 1.25? 1.125? This system will eventually break as we add more and more titles. Why does this break? Simply because adding titles is not a simple task. When a new title is added we need to:
These tasks requires not only the attention of the whole team, but would result in a massive increase in what is needless work.
To alleviate the above problem, I propose a new naming scheme for our title classes to more accurately reflect the font size, rather than an arbitrary descending list. For example, if we need a 40px font size which lies between .title-1 and .title-2, we will call it .title-40. If .title-1 is currently 50px, it will be renamed as .title-50.
Now, this proposal will does goes against the spirit of a design system, since it removes any standards whatsoever from the title sizes. This proposal, though, is made under the assumption that:
This proposal is made in order to satisfy these two needs at this pre-MVP stage of the project. This is by no means a permanent proposal. We can return to a more solid .title-1 to .title-7 system once we have a better understanding of what our top 7 sizes are. What we cannot do, however, is allow our design system to chain us to its standards and slow the team down--especially when the goal of a design system is to increase workflow by providing a quick and easy way to create and edit new pages.
Side observation: it is very simple to keep track of our usage of every new .title class we create. If we want some semblance of .title-1 to .title-7, we can create a counter that tracks our top used title sizes by raw usage and/or webpage usage. This allows us to see what the top used titles are, and encourages us to stick to those. At the same time, it also does not standardize the titles, and bind us to its inflexibility.
Beta Was this translation helpful? Give feedback.
All reactions