vercel / vercel/hyper

Condensed font family switching/setting for smaller viewports

Open
#1,331 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🛠 Type: Feature Request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.