Paste-ready stylesheets
The same tokens in the format your project already uses.
The styleguide API takes a domain and returns how the site is designed: colours by role, the type scale, spacing, radius, shadows and button styles, with the same design as a CSS, Tailwind or shadcn stylesheet you can paste in. A styleguide costs 10 credits, and a site we cannot read costs nothing.
stripe.comLight mode · sohne-var
typography
{
"domain": "stripe.com",
"mode": "light",
"colors": [
{
"hex": "#000000",
"name": "Black",
"role": "text"
},
{
"hex": "#533afd",
"name": "Indigo",
"role": "accent"
}
],
"radius": {
"card": "6px",
"button": "4px",
"default": "6px"
}
}
linear.appDark mode · Inter, Berkeley Mono
typography
{
"domain": "linear.app",
"mode": "dark",
"colors": [
{
"hex": "#d0d6e0",
"name": "Light Blue",
"role": "text"
},
{
"hex": "#5e6ad2",
"name": "Blue",
"role": "accent"
}
],
"radius": {
"card": "9px",
"button": "full",
"default": "12px"
}
}01Tokens
curl "https://api.hydrafetch.com/v1/web/styleguide?domain=linear.app" \
-H "X-API-Key: $HYDRAFETCH_API_KEY"{
"data": {
"domain": "linear.app",
"mode": "dark",
"colors": [{ "hex": "#5e6ad2", "name": "Blue", "role": "accent" }],
"typography": [{ "role": "h1", "family": "Inter", "size": 64, "weight": "510" }],
"radius": { "card": "9px", "button": "full", "default": "12px" },
"contrast": { "meetsAA": true, "textOnBackground": 13.64 }
}
}02Handled
The same tokens in the format your project already uses.
Both palettes, when the site has both.
Contrast is checked, so the tokens are safe to put text on.
Read the home page, or a section that is styled differently.
03Connect
For agents
One MCP server. Every endpoint is a tool.
Add Hydrafetch from your terminal.
claude mcp add --scope user --transport http hydrafetch https://api.hydrafetch.com/mcpStart Claude Code, run /mcp, choose hydrafetch and then Authenticate. Your browser opens: sign in, pick a workspace and approve.
Open Hydrafetch in Claude's connector directory and choose Connect.
Open in ClaudeSign in to Hydrafetch and approve in the window that opens.
Open Hydrafetch in ChatGPT's apps and choose Connect.
Open in ChatGPTSign in to Hydrafetch and approve.
Add Hydrafetch to ~/.cursor/mcp.json. Create the file if it does not exist.
{
"mcpServers": {
"hydrafetch": { "url": "https://api.hydrafetch.com/mcp" }
}
}Open Cursor Settings, then MCP. Hydrafetch asks you to sign in: choose Connect and approve in your browser.
Add Hydrafetch to .vscode/mcp.json in your workspace.
{
"servers": {
"hydrafetch": { "type": "http", "url": "https://api.hydrafetch.com/mcp" }
}
}Choose Start above the server in that file, then sign in and approve when VS Code asks.
Add Hydrafetch from your terminal.
codex mcp add hydrafetch --url https://api.hydrafetch.com/mcpStart Codex. The first time it uses Hydrafetch, your browser opens to sign in.
Add Hydrafetch from your terminal.
gemini mcp add hydrafetch --url https://api.hydrafetch.com/mcp --scope userStart Gemini CLI. The first time it uses Hydrafetch, your browser opens to sign in.
Open the MCP Servers panel and choose Configure to open the settings file.
Add Hydrafetch to it. Replace hf_your_key with a key from the API keys page.
{
"mcpServers": {
"hydrafetch": {
"type": "streamableHttp",
"url": "https://api.hydrafetch.com/mcp",
"headers": { "Authorization": "Bearer hf_your_key" },
"disabled": false,
"autoApprove": []
}
}
}Add Hydrafetch to your global OpenCode config.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"hydrafetch": { "type": "remote", "url": "https://api.hydrafetch.com/mcp", "enabled": true }
}
}Start OpenCode. It sees that Hydrafetch needs a sign-in and opens your browser.
For your code
An official client in 6 languages, or plain HTTP.
curl "https://api.hydrafetch.com/v1/web/styleguide?domain=linear.app" \
-H "X-API-Key: $HYDRAFETCH_API_KEY"import { Hydrafetch } from "@hydrafetch/node-sdk";
const hf = new Hydrafetch(process.env.HYDRAFETCH_API_KEY);
const guide = await hf.styleguide("linear.app");
console.log(guide.colors, guide.typography);from hydrafetch import Hydrafetch
hf = Hydrafetch()
guide = hf.styleguide("linear.app")
print(guide["colors"], guide["typography"])Working in a coding agent? Hand it this.
04Price
05Questions
The design of a site as tokens: colours by role, the type scale, spacing, radius, shadows, button styles and a contrast check, with the same design as CSS, Tailwind and shadcn stylesheets.
10 credits a styleguide. A site we cannot read costs nothing, and a stored result is reused for up to 30 days unless you ask for a fresh read.
Theming your product for each customer. Give it their domain when they sign up and their workspace, emails or embedded widget can match their own site's colours and type.
Yes. It says whether the page loads light or dark, and returns the colours the site switches to when a visitor prefers a dark theme, when it has them.
Brand describes the company: its name, logo, palette and profiles. Styleguide describes how its site is built, in enough detail to reproduce the look.