Condensed font family switching/setting for smaller viewports
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
Until we have true variable open sourced mono spaced fonts and the spec that goes with it I think it would be nice if we have along with setting the font family and size, there could be a condensed font family setting for smaller viewports.
It is a bit related to: https://github.com/zeit/hyper/issues/175
This gives a source for some good options for condensed fonts: http://graphicdesign.stackexchange.com/questions/28456/a-good-monospace-condensed-and-open-source-typeface
This can currently be done with:
termCSS: '
@media (max-width: 600px) {
x-row {
font-family: 'm+ 1m';
}
}
`,
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by tracing the existing font-family and font-size settings, then review how termCSS and x-row apply media-query styling. Define how a separate condensed family setting should be exposed and applied for smaller viewports, while preserving the current termCSS approach. Done means the setting works at the requested viewport size and does not alter larger viewports.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100