Dev.to WebDev 🛠 Dev 👁 0 📖 5 min read

"Send Me Your Brand Guidelines" Is the Worst Email I Send

Full disclosure: I work on Spicrawl. This post is about a feature I wish I'd had in every client project before I joined. The right-click ritual Every new client project started the same way. Before any wiref

"Send Me Your Brand Guidelines" Is the Worst Email I Send

Full disclosure: I work on Spicrawl. This post is about a feature I wish I'd had in every client project before I joined.

The right-click ritual

Every new client project started the same way. Before any wireframe, before any moodboard, I opened their website and started taking it apart by hand.

Right-click the logo. "Save image as." It's a 180px PNG on a white background. Or it's a CSS background image, so there's nothing to right-click at all.

Frustrated at work

Then the colours. Open DevTools, dig through the styles, find six slightly different blues, and guess which one is the real brand blue. Then the fonts, with an extension. Then a screenshot of the hero, so I could copy the headline and button text into my mockup.

And then the email: "Hi! Could you send over your brand guidelines and logo files?"

A tired penguin, still waiting

Sometimes they came in a day. Sometimes they came after the pitch. Sometimes the "guidelines" were a JPEG of the logo, sent from someone's phone.

What I actually needed

I am a UI/UX designer, and I build websites with AI tools. For a pitch or a first mockup, I didn't need the full brand book. I needed:

  • The logo, ideally as an SVG
  • The real brand colours, not my eyedropper guesses
  • The fonts they use
  • The headline, subline and button text from their homepage
  • Their social links, for the footer

All of it was already on their website. I just had no way to get it out except clicking around for half an hour.

The endpoint that does it

Spicrawl's brand endpoint is one call, POST /v1/brand. You give it a URL. It loads the page once in a real browser, with JavaScript running, and reads the brand assets from that single load:

  • Identity: name, description, theme colour, and the hero text (headline, subline, call-to-action buttons)
  • Logos and favicons
  • Colours, each with a role like primary
  • Fonts, images, videos and social profiles

Two details I like as a designer. It uses no AI model, so the same page gives the same answer every time; no "creative interpretation" of the client's blue. And small logos come back as inline SVG, ready to paste into Figma.

Wide-eyed penguin: I want it

The first request

Get an API key from the Spicrawl dashboard and put it in SPICRAWL_API_KEY. Then:

curl https://api.spicrawl.com/v1/brand \
  -H "Authorization: Bearer $SPICRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "include": ["identity", "logos", "colors"]
  }'

Here is a shortened version of what comes back:

{
  "identity": {
    "name": "Example",
    "theme_color": "#1d4ed8",
    "tagline": "Widgets for every workshop",
    "subtitle": "Example makes widgets for home makers and professional shops alike.",
    "cta": [
      { "text": "Get started", "url": "https://example.com/signup" },
      { "text": "Watch the demo", "url": null }
    ]
  },
  "logos": [
    { "url": "https://example.com/logo.svg", "format": "svg",
      "source": "header", "theme": "light", "score": 0.92 }
  ],
  "colors": [
    { "hex": "#1d4ed8", "role": "primary", "source": "theme_color", "confidence": 0.9 }
  ],
  "credits": 8,
  "warnings": []
}

That tagline, subtitle and cta block is the hero I used to screenshot and retype. The score on each logo tells you which one it thinks is the main logo.

The requests I would have made

Each of these is a complete request body. Ask only for the sections you need; the response is smaller and faster.

"Just the logo, please":

{ "url": "https://client-site.com", "include": ["logos"] }

"Give me design tokens": colours and fonts, ready to drop into a style guide:

{ "url": "https://client-site.com", "include": ["colors", "fonts"] }

"Where are their socials?" These usually live in the footer or on the About and Contact pages, not on the homepage. pages also reads up to four more pages from the sitemap and merges the results:

{ "url": "https://client-site.com", "include": ["socials"], "pages": 5 }

"Copy for the mockup": the real headline and button text, so the first draft doesn't say lorem ipsum:

{ "url": "https://client-site.com", "include": ["identity"] }

"Show me the page too": add "screenshot": true to get a screenshot of the page in the same response.

Twenty lines that replace the ritual

I do not write code by hand, but this is small enough to build with an AI assistant. Give it a client's website, and it saves the main logo and writes the brand colours as CSS variables.

import os, requests

SITE = "https://client-site.com"

resp = requests.post(
    "https://api.spicrawl.com/v1/brand",
    headers={"Authorization": f"Bearer {os.environ['SPICRAWL_API_KEY']}"},
    json={"url": SITE, "include": ["identity", "logos", "colors"]},
    timeout=60,
)
resp.raise_for_status()
brand = resp.json()

# Brand colours as CSS variables
css = [":root {"]
for i, c in enumerate(brand.get("colors", []), start=1):
    css.append(f"  --brand-{i}-{c.get('role') or 'color'}: {c['hex']};")
css.append("}")
open("brand.css", "w").write("\n".join(css))

# The highest-scoring logo
logos = sorted(brand.get("logos", []), key=lambda l: l.get("score", 0), reverse=True)
if logos and logos[0].get("svg"):
    open("logo.svg", "w").write(logos[0]["svg"])
elif logos:
    print("Logo:", logos[0]["url"])

print(brand["identity"].get("name"), "-", brand["identity"].get("tagline"))

Run it once per client and you start the project with brand.css, logo.svg and their headline. Then the email to the client can be about the actual design.

Deal with it

What it will not do

Straight from the docs, so nobody is surprised:

  • Links, not files. Logos, icons, images and fonts come back as URLs. It doesn't download or rehost anything. The exception is small logos, which come back as inline SVG.
  • It reads what's on the site. If a brand's guidelines say "primary blue" but the website uses a slightly different one, you get the website's.
  • It takes a few seconds. Most requests take 5 to 20 seconds and give up at about 25. Set your timeout to at least 30 seconds, and ask for fewer sections if it times out.
  • Partial results are normal. If part of a page can't be read, that section comes back empty and is named in warnings; the rest still arrives.
  • Cost. A brand request costs 8 credits per page read on the standard network (32 on residential or mobile). With pages: 5, every page is billed. Failed requests cost nothing.
  • Limits per section, for example up to 10 logos, 12 colours, 10 fonts and 50 images.

One more thing, from one designer to another: finding a logo or a font file doesn't mean you have the right to use it. This is great for pitches, audits and mockups for a client who has asked you to work on their brand. For the final product, still get the official files and the font licences.

What it would have given me

It would have given me the first hour of every project back. That hour was never design. It was collecting things that already existed.

It would also have made my first mockups look real. Clients react very differently to a draft with their own logo, colours and headline than to a grey box that says "LOGO".

The brand guide has the full list of fields.

What's the most annoying thing you do by hand at the start of every design project? Tell me in the comments.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.