Skip to content

32lngs-js/typeset

Repository files navigation

TypeSet

A browser tool for exploring typography in real time.

Open it alongside any page you're designing. Click a text element, drag the label chips to scrub values, and copy the resulting CSS when it feels right.

Launch TypeSet →


What it does

  • Scrubber controls for size, weight, line height, letter spacing, and position
  • Font library including Söhne, Newsreader, Inter, Space Grotesk, DM Serif Display, Cormorant Garamond, Geist Mono, and more
  • Minimizes to a floating T dial — stays out of your way until you need it
  • Light and dark panel modes
  • One-click CSS copy

Intent

Most typography decisions happen in code, not design tools. You set a value, reload the page, adjust, reload again. TypeSet shortens that loop — scrub directly on the live element, see the change, copy the CSS, move on.

Inspired by Dialkit and Agentation.

Usage

No install, no build step. Open index.html in a browser.

To use it on your own page, open both files side by side — TypeSet in one tab, your page in another. Use the Copy button to transfer values.

Use it on any page (overlay)

index.html is the standalone demo. To inspect a real project's typography, use the injectable overlay — typeset-overlay.js. It mounts inside a Shadow DOM (so the host page's CSS can't touch it and vice versa), lets you click any text element on the page to edit it live, and Copy CSS emits real selector { ... } blocks you can paste into that project's stylesheet.

  • Bookmarklet: see bookmarklet.txt — one bookmark, click to toggle on any page.
  • Console: paste the contents of typeset-overlay.js into DevTools on the target page.
  • Re-run to toggle it off. Edits are inline styles (they reset on reload — Copy CSS is how you keep them). Picked fonts must be web-loaded or they fall back. Some sites block injected scripts via CSP; console-paste is the fallback there.

Fonts

Includes a curated set of Google Fonts plus self-hosted Söhne (Klim Type Foundry). The Söhne files are not included in this repo — add your own licensed copies to fonts/sohne/ using the weight naming convention in index.html.

Stack

Vanilla HTML, CSS, and JavaScript. No dependencies, no framework, no build step. The entire tool is one file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages