Consider a generic typescale
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css
- Domain
- design
Research direction
Start with the typography page and the existing fs-headline1 and fs-display2 type-size names, then compare them with the width and padding naming conventions mentioned in the issue. Done requires an agreed generic scale or literal naming scheme and updated type-size documentation and classes to match it.
Written by the indexing model from the issue text.
Description
Now that Stacks has matured and adoption has grown, I find myself visiting the documentation most for our type size. I just can't seem to internalize if something is a fs-headline1 or a fs-display2.
I find the motivations for doing so were to be a bit more prescriptive in our type scale, but in practice, if someone knows their type is at 21px, they're going to go to our typography page and choose the size that matches 21px. I don't know what it is without looking.
Here's what I propose.
Our font sizes should be literal. We should alias / rename our current type sizes with fs-[xx]. This could be more in line with how we represent width and padding, eg fs-11 meaning font-size: 11px or we could setup our typescale from 1–9, 1 being the smallest, and 9 being the largest.
Either way, it will be much easier to step through the type scale as we're implementing designs than constantly trying to figure out what class name 21px is.
- Dominant language
- TypeScript
- Stars
- 672
- Forks
- 107
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from StackExchange/Stacks
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
StackExchange/Stacks#1030 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
StackExchange/Stacks#1842 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
StackExchange/Stacks#1413 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
StackExchange/Stacks#1242 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
StackExchange/Stacks#1224 ·
All issues in StackExchange/Stacks
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·