Type Scale
by CSS Design Calc in Other
Modular type scale: sizes in px and rem for steps below and above a base size, by named ratio (major third, golden) or number.
https://css-design-calc.x402tookit.com/type-scale- Price
- $0.02
- per call in USDC
- Uptime
- 53.9%
- last 30 days
- Response time
- 486 ms
- 2.2 s slowest 5%
- Last check
- Failed
- 19 h ago, next in 3 h
Reliability
Latest check failed 19 h ago: Expected HTTP 402, got 530
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://css-design-calc.x402tookit.com/type-scale
Each call costs $0.02 in USDC on Polygon, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://css-design-calc.x402tookit.com/type-scale?base=16&down=2&ratio=major-third&up=5Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
base | number | Yes | Base font size in px (step 0), for example 16 |
down | integer | No | Steps below the base, 0 to 6 (default 2) |
ratio | string | No | Ratio name (minor-second, major-second, minor-third, major-third, perfect-fourth, augmented-fourth, perfect-fifth, minor-sixth, golden, major-sixth, minor-seventh, major-seventh, octave) or a number above 1 (default major-third = 1.25) |
rootPx | number | No | Root font size in px for rem output (default 16) |
up | integer | No | Steps above the base, 0 to 12 (default 6) |
Example response
The provider's example. We can't check it without paying.
Example response, 38 lines
{
"asOf": "2026-10-11T14:32:45.228Z",
"base": 16,
"customProperties": "--step-5: 3.0518rem; --step-4: 2.4414rem; --step-3: 1.9531rem; --step-2: 1.5625rem; --step-1: 1.25rem; --step-0: 1rem; --step-n1: 0.8rem; --step-n2: 0.64rem;",
"degraded": false,
"disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.",
"notChecked": [
"rounding to whole pixels (sizes are exact; browsers may round text rendering)",
"whether a step is legible on screens or readable at your line length",
"…1 more"
],
"ratio": 1.25,
"ratioName": "major-third",
"reasons": [
"Each step multiplies by 1.25; step 0 is the base 16px.",
"Steps are exact; round for production if needed."
],
"rootPx": 16,
"source": "Modular scale: size(n) = base x ratio^n (Tim Brown); ratios are the musical-interval values used by common scale tools, computed locally",
"steps": [
{
"css": "3.0518rem",
"px": 48.8281,
"rem": 3.05176,
"step": 5
},
{
"css": "2.4414rem",
"px": 39.0625,
"rem": 2.44141,
"step": 4
}
],
"stepsAbove": 5,
"stepsBelow": 2,
"summary": "8 steps from 10.24px to 48.8281px at ratio 1.25 (major-third) from a 16px base.",
"verdict": "COMPUTED"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://css-design-calc.x402tookit.com/type-scale?base=16&down=2&ratio=major-third&up=5'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://css-design-calc.x402tookit.com/type-scale?base=16&down=2&ratio=major-third&up=5' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcss-design-calc.x402tookit.com%2Ftype-scale
const res = await pay("https://css-design-calc.x402tookit.com/type-scale?base=16&down=2&ratio=major-third&up=5");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://css-design-calc.x402tookit.com/type-scale?base=16&down=2&ratio=major-third&up=5")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 19 h ago | Expected HTTP 402, got 530 | 530 | 139 ms | - |
| 2 days ago | Expected HTTP 402, got 530 | 530 | 97 ms | - |
| 3 days ago | Expected HTTP 402, got 530 | 530 | 114 ms | - |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 86 ms | - |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 193 ms | - |
Show 8 older checks
| 5 days ago | Expected HTTP 402, got 530 | 530 | 154 ms | - |
| 5 days ago | Passed | 402 | 226 ms | $0.02 |
| 5 days ago | Passed | 402 | 534 ms | $0.02 |
| 6 days ago | Passed | 402 | 195 ms | $0.02 |
| 6 days ago | Passed | 402 | 525 ms | $0.02 |
| 6 days ago | Passed | 402 | 2.2 s | $0.02 |
| 6 days ago | Passed | 402 | 482 ms | $0.02 |
| 7 days ago | Passed | 402 | 486 ms | $0.02 |