Indietro

#css

8 APIs con questa etichetta

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

Color Name API

Name any colour. The nearest endpoint takes a colour as a hex, an rgb() value, an r,g,b triple or another name and returns the closest of the 140+ CSS named colours — matched perceptually with CIE76 Lab distance, not naive RGB, so the name actually looks right — along with the distance and whether it is an exact match. The name endpoint resolves a CSS colour keyword (e.g. rebeccapurple, cornflowerblue) to its hex and RGB, and list returns the whole named-colour set. Perfect for design tools and pickers, accessibility and theming, turning brand hex codes into human labels, and naming colours in generated palettes. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. Distinct from colour conversion / palette / contrast tooling, which does not name colours.

api.oanor.com/colorname-api

Data URI API

Codifica contenido en un data: URI y decodifica un data: URI de vuelta a su contenido (RFC 2397). Los data: URI incrustan un archivo directamente en HTML, CSS, JSON o correo electrónico, perfecto para imágenes pequeñas, SVG, fuentes e iconos que deseas incrustar sin una solicitud HTTP separada. El endpoint de codificación envuelve tu contenido (dado como texto UTF-8, base64 o hex para binario) con un tipo de medio y juego de caracteres elegidos, en codificación base64 o URL (porcentaje); el endpoint de decodificación analiza cualquier data: URI y devuelve su tipo de medio, juego de caracteres, si era base64, el tamaño en bytes y la carga útil como texto y/o base64. Cálculo puramente local — sin clave, sin servicio de terceros, instantáneo; hasta 4 MB vía POST. En vivo, nada almacenado. 3 endpoints. Distinto de un codificador base64/hex simple y de herramientas específicas para SVG.

api.oanor.com/dataurl-api

Gradient API

Generate colour gradients and colour scales programmatically. Produce an evenly-spaced scale of N colours between two or more stops (interpolated in a perceptually smooth colour space — lab, lch, oklab, oklch — or plain rgb/hsl), get a single interpolated colour at any position between two colours, and build a ready-to-paste CSS gradient string (linear with any angle, or radial) from a list of stops. Colours accept hex (#f00, #ff0000) or CSS names (red, steelblue). Perfect for data-visualisation colour ramps, heatmaps, chart palettes, theme generation and UI backgrounds. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. Distinct from colour conversion / harmonious palettes (one base colour) and image palette extraction.

api.oanor.com/gradient-api

Prettier API

Formate e embeleze o código-fonte com Prettier, o formatador de código de facto. Passe código e um idioma e obtenha-o consistentemente reformatado: JavaScript, JSX, TypeScript, TSX, CSS, SCSS, LESS, GraphQL e Vue. Ajuste a saída com largura de impressão, largura de tabulação / tabs, ponto e vírgula, aspas simples vs duplas e estilo de vírgula final. Erros de sintaxe retornam com uma mensagem clara. O inverso de um minificador. Processamento local puro — sem chave, sem serviço de terceiros, instantâneo. Ao vivo. 3 endpoints. Construído para editores de código e playgrounds, ferramentas de colar e formatar, embelezamento de snippets, documentação e verificações de formatação CI. Complementa o formatador SQL e as ferramentas JSON/YAML/Markdown (que cobrem seus próprios idiomas).

api.oanor.com/prettier-api

Minify API

Shrink your web assets. Minify CSS, JavaScript and HTML through one simple API and get back the compact output plus how many bytes (and what percent) you saved. CSS is minified with clean-css, JavaScript with Terser (with optional name-mangling and compression toggles), and HTML with html-minifier-terser (collapsing whitespace, dropping comments and redundant attributes, and minifying inline CSS and JS). Pass the source as a parameter or in the request body (up to 5 MB). Pure local processing — no key, no third-party service, instant. Live. 4 endpoints. Built for build pipelines, on-the-fly asset optimisation, email-HTML slimming, CMS and CDN tooling, and page-speed work.

api.oanor.com/minify-api

Can I Use API

Browser-feature compatibility data as an API — the "Can I Use" support tables for over 550 web platform features across 19 browsers (Chrome, Edge, Firefox, Safari, iOS Safari, Samsung Internet, Opera, IE and more). Look up any feature (flexbox, css-grid, webp, fetch, websockets, …) for its full support matrix: per-browser current support, the first version that shipped full support, partial/prefixed/disabled flags and notes, the spec status, categories, keywords, global usage share and reference links. Ask a single feature×browser question, list or filter features by category, search features by keyword, and get the browser/agent list with version histories and the category/status legend. Backed by the public caniuse-db dataset (refreshed every 12 hours); query results are computed live. 7 endpoints. Built for build tooling, polyfill decisions, compatibility dashboards, linters and documentation. No upstream key.

api.oanor.com/caniuse-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