Indietro

#typography

3 APIs con questa etichetta

Golden Ratio & Scale API

Design-proportion maths as an API, computed locally and deterministically. The divide endpoint splits a length by the golden section, the division beloved of artists and designers in which the whole is to the longer part as the longer is to the shorter, both ratios equal to φ = (1+√5)/2 ≈ 1.618 — so 100 splits into a 61.8 longer segment and a 38.2 shorter one — and can also extend a single segment to its larger or smaller golden partner. The rectangle endpoint gives the other side and the area of a golden rectangle from either side, the shape that leaves a smaller golden rectangle when you remove a square. The scale endpoint builds a modular (typographic) scale — base · ratio^step across a range of steps up and down — for harmonious type sizes and spacing, taking a numeric ratio or a named musical one such as minor-third (1.2), major-third (1.25), perfect-fourth (1.333) or golden (φ); a 16-base major-third scale gives 16, 20, 25, 31.25 and so on. Lengths are unit-agnostic. Everything is computed locally and deterministically, so it is instant and private. Ideal for graphic-design, web-design, UI, typography, layout and architecture app developers, type-scale and proportion tools, and design systems. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is proportion and scale; for pixel-density and print sizing use a PPI/DPI API.

api.oanor.com/goldenratio-api

Modular Scale API

Generate a modular (geometric) scale for typography and spacing. Pick a base size and a ratio — a named musical interval (minor-second, major-second, minor-third, major-third, perfect-fourth, augmented-fourth, perfect-fifth, minor-sixth, golden, major-sixth, minor-seventh, major-seventh, octave and more), a plain number like 1.25, or an interval written as 3:2 — and the scale endpoint returns a harmonious set of sizes stepping up and down from the base, where each value is base × ratio^step (step 0 is the base). Choose how many steps above and below, the rounding, and an optional unit suffix (px, rem, em) so the values come back ready to paste into CSS or design tokens. The ratios endpoint lists every named ratio with its decimal value. A modular scale gives type, spacing and layout a consistent rhythm instead of arbitrary pixel values. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This produces a numeric size scale; for colour scales and gradients use the Gradient API.

api.oanor.com/modularscale-api

Fonts API

El catálogo de Google Fonts como API: más de 1900 familias de fuentes de código abierto con todo lo necesario para elegir e incrustar un tipo de letra. Busque una familia (por ejemplo, Roboto → categoría, pesos disponibles, ejes de fuentes variables, subconjuntos y una URL de incrustación CSS lista para usar); busque por nombre, categoría (Sans Serif, Serif, Display, Handwriting, Monospace), subconjunto, peso o compatibilidad con fuentes variables; o enumere las familias más populares. Cada registro incluye los pesos/estilos, ejes variables (wght, wdth, …), subconjuntos de idiomas, diseñadores, rango de popularidad y una URL de incrustación CSS2 de Google Fonts. Ideal para herramientas de diseño, creadores de sitios web, selectores de fuentes y sistemas de tematización.

api.oanor.com/fonts-api