/aem-edge-delivery-services:brand-setupfrom aem-edge-delivery-services
Extracts brand basics (colors, fonts, sizes, favicon, logo) from a source website and applies them to a fresh AEM Edge Delivery Services boilerplate project.
Ships in aem-edge-delivery-services. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fill the brand slots that the aem-boilerplate already defines with values measured on the source site, so every later migration step renders in the client's brand. The project you run in is the target; the source site URL comes from the user.
Measured, not guessed: every value you write comes from what a browser rendered on the source site. A slot you cannot source keeps its boilerplate value and is listed in the report.
Stop, with one line saying why, unless all of these hold at the project root:
:root blocks of styles/styles.css still holds its boilerplate
value. Top block: colors white, #f8f8f8, #505050, #131313, #3b63fb, #1d3ecf;
roboto body and roboto-condensed heading stacks; body sizes 22/19/17px; heading sizes
55/44/34/27/24/22px; --nav-height: 64px. Desktop block: body 18/16/14px; heading
45/36/28/22/20/18px.styles/fonts.css exists and declares only the roboto and roboto-condensed faces.A project that fails this check was already styled; this skill only overwrites defaults.
Use a real browser that renders the page and runs its scripts. Reading HTML or CSS files over plain HTTP is not a substitute: it yields stylesheet source and variable fallbacks, not what the page shows, and bot-managed sites answer it with a block or maintenance page. If no browser is available, stop and say so. Start the browser from a directory outside the project.
document.elementFromPoint at the
viewport centre isn't a fixed overlay. Report what you closed, or "no overlay".Run JavaScript in the page and read browser data, not stylesheet text (stylesheet text is used only to locate font files, below):
getComputedStyle() on body, paragraphs, inline links and h1–h6 inside the main content
(main, else [role=main], else body minus the page's header, nav and footer; say which),
buttons,
the header/nav bar, footer and section backgrounds. Skip elements that are hidden
(display: none, zero size, clipped, visibility: hidden) — many sites ship hidden SEO
headings.<a>
styled as a button), confirm the hover applied (:hover matches the element), then read
the computed colors again. A hover you couldn't perform is unmeasured, not "no change".getComputedStyle(document.documentElement) custom properties: if the site exposes tokens
like --color-primary, use their names as hints for which color plays which role.document.fonts entries with status loaded, and the font file URLs from the
performance resource entries (.woff2, .woff, .ttf, .otf) of the first page in a fresh
browser session or after a cache-bypassing reload; later pages can be served from cache and
not list them. For a loaded face still without a file, find its @font-face rule: in the
page if the stylesheet allows it, else fetch that stylesheet's text (its URL is in the
network list) and resolve src against the stylesheet URL. Use the rule only to locate
files, never to choose fonts, weights or any other value.Ignore fully transparent colors (transparent, alpha 0) — they mean "inherits the parent".
Write values exactly as measured (convert rgb() to hex). Don't round, darken, derive or
estimate: a value you did not measure keeps its boilerplate value and goes in the report.
| Slot | Source on the rendered page |
|---|---|
--background-color | the innermost opaque background on main or its ancestors (a full-width wrapper can paint over body); body/html only if none is opaque. Bands inside main are for --light-color |
--text-color | most common color of paragraphs in the main content |
--link-color | color of inline links inside main-content paragraphs (not nav, footer, buttons) |
--link-hover-color | the same link's color while hovered; if a confirmed hover doesn't change the color, use --link-color and say so; if no hover could be performed, keep the boilerplate value and list it as unmeasured |
--light-color | most common light, non-white surface: alternating sections, footer, cards. Boilerplate uses it for light sections, the footer and disabled buttons |
--dark-color | primary button hover background if dark; else a dark section/footer background; else secondary text color. Boilerplate uses it for primary-button hover |
--body-font-family | family of main-content paragraphs (the first family that actually loaded) |
--heading-font-family | family of the visible h1/h2 |
--body-font-size-m / -s / -xs | paragraph text / smaller supporting text (captions, nav links) / smallest legible text in the body font (legal, fine print), not labels set in the heading font |
--heading-font-size-xxl … -xs | h1 … h6 |
--nav-height | rendered height of the logo's nearest ancestor that also holds the main links (not an inner links element, utility or promo bars, nor a logo or menu that overflows it); when the logo and main links sit on separate rows, use the total of those rows. Report each row's height |
"Most common" and visible-element counts are taken over all main-content elements of every page read (at that width for sizes, at both widths for colors), not a sample.
Sizes:
:root; desktop values (1440 px) go in the existing
@media (width >= 900px) { :root { … } } block. Keep both blocks and all nine size slots in
each. If --nav-height differs between widths, add the desktop value to the media block too.size × weight × number of visible main-content elements. Headings in the page's header,
nav, footer and asides don't count (a <header> inside the main content does); a level
found only there is unmeasured.xxl to xs; equal is allowed),
because authors pick levels by meaning. Each measured size stays on its own level. Only if
measured levels are out of order (an h3 larger than the h2), re-sort the measured sizes
in descending order over those same measured levels, and report the per-level values.h1). Report it as filled, not
measured. The same order and fill-in rules apply to the body sizes
m, s, xs.Only the families used by body text and headings, and every face of them that document.fonts
reports as loaded on the pages you read (italics, bold and one-off weights included). Don't
skip a loaded face as "unused". Declare each face with the weight and style the browser
reports for it; treat a file as a variable font only if the browser reports a weight range for
it. Copy every
file the browser loaded for those faces, not just the Latin one: a face split into subsets
(Latin, Cyrillic, Greek, …) keeps one @font-face per file with its unicode-range.
fonts/. Proprietary families are copied too, for fidelity, with a licensing
warning (below).woff2 files the browser
loaded into fonts/ and self-host them, as the boilerplate does for Roboto.Wiring — the boilerplate's loading mechanism stays as is:
styles/fonts.css: replace the Roboto @font-face rules with the brand ones in the same
shape (font-display: swap, src: url('../fonts/<file>') format('woff2'), or 'truetype'/
'opentype' for .ttf/.otf files, which you don't convert; report any file over 100 KB).
Delete the Roboto files from fonts/. Keep loadFonts() in scripts/scripts.js untouched.styles/fonts.css with a comment
/* FONT LICENSING REQUIRED BEFORE GOING LIVE: <family> (<foundry if known>) */ per family.styles/styles.css: replace the two Roboto fallback faces with one per brand family, named
<family>-fallback, src: local('Arial') for sans-serif or local('Times New Roman') for
serif, and a size-adjust measured in the browser: render the same sample sentence in the
brand font and in the local font at one size; size-adjust = brand width ÷ local width,
as a percentage.--body-font-family: <family>, <family>-fallback, sans-serif; (or serif). One
family for both roles means one set of faces and one fallback face.<link>, <style> or preload lines to head.html.Per references/lookup-rules.md:
favicon.ico. No head.html
change.favicon.svg/favicon.png and add exactly
one line to head.html: <link rel="icon" href="/favicon.<ext>">. This is the only
head.html edit this skill makes. Then, for the root favicon.ico: if the source serves
/favicon.ico, that file replaces it; if not, delete it, so the boilerplate icon doesn't leak.favicon.ico and report it.icons/logo.svg for SVG; a raster logo is saved as icons/logo.<ext>. Don't wire it
into the header — the nav document does that. A raster logo can't be used with the :logo:
icon syntax; say so in the report.If a file download is refused outside the browser, fetch it from inside the page instead.
styles/styles.css (the two :root blocks and the fallback faces), styles/fonts.css,
fonts/*, root favicon file(s), the one head.html favicon line, icons/logo.<ext>.
Don't add custom properties, change other rules, edit blocks or scripts. Delete anything your
browser or other tools left in the project (session folders, screenshots, downloads).
Run all six checks on the files you wrote, not from memory. The report lists each one with pass or fail and the output that shows it; a report missing a check or its output is incomplete. If you edit a file after the checks, run them all again. Fix any failure before reporting; a failure you can't fix needs a stated reason:
@font-face in styles/fonts.css or is listed as commercial-hosted or system in the
report; a <family>-fallback has its @font-face in styles/styles.css.url() in styles/fonts.css points to a file in fonts/.head.html differs from the boilerplate by at most the favicon line.:root blocks still define all nine size slots, and in each no heading or body size is
larger than the one above it.git status --short, run after the last write and pasted verbatim in the report, shows
changes only in the files listed in step 7 (plus any file the user asked for, named in the
report).Give the report in your final reply. Write it to a file only when the user asks for one.
theme-color.This skill doesn't render the result. To review it, serve a page with the aem-cli skill; tell
the user how to stop any server you leave running, and don't hide files with
.git/info/exclude.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub adobe/skills --plugin aem-edge-delivery-services26 skills in this plugin
/aem-block-libraryUse when a new or changed AEM Edge Delivery Services block needs an entry in the block library that authors use to find and insert it: the Experience Workspace (formerly DA, Document Authoring) library or the Sidekick Library for Word and Google Docs projects. Covers finding the project's library, the block page, variants, the sheet row, library metadata and the steps that happen outside the repo. For tests that run against the library page use testing-blocks./aem-cliUse this when running or troubleshooting the local Edge Delivery dev server or the Adobe AEM CLI (@adobe/aem-cli, formerly helix-cli; `aem up`, `aem content`, `aem import`). Covers starting `aem up` and its port (git worktrees, a port already in use), serving local test pages from `./content/`, cloning da.live content locally with `aem content clone` to preview, inspect or edit it and pushing edits back, `aem up` failures (cert errors, proxy 404s, local pages not found), .env / AEM_* configuration, HTTPS, installing or upgrading the CLI, and the importer server. For da.live content-format rules or the DA Source API use da-content; for writing EDS block code use content-driven-development./aem-layout-viewUse when block or site code of an AEM Edge Delivery Services project authored in Experience Workspace (EW, formerly DA, Document Authoring) must stay editable in layout view, the WYSIWYG page editor that renders the page with the site's own code: authors can't edit a block's text or images, blocks duplicate or misbehave after edits, a request fails only in layout view, or a branch needs testing there. Not for the Universal Editor (ue-component-model) or projects authored in Word or Google Docs./authoring-analysisUse this when the page-import pipeline needs to determine the authoring approach (default content vs blocks) for scraped content before generating import HTML for AEM Edge Delivery Services. Covers validating block selection and section styling for import/migration. Do not invoke directly — called by page-import as a pipeline step./block-collection-and-partyUse this when you are starting AEM Edge Delivery Services (EDS, Franklin, Helix) development and want an existing reference to build from, such as a block, build tool, code snippet, integration pattern, or plugin. Searches the Block Collection and Block Party repositories, matches candidates against the need, and returns a suitable starting point to clone or adapt./building-blocksUse this before writing or changing AEM Edge Delivery Services (EDS, Franklin, Helix) block or site code: a block's `decorate(block)`, block CSS and variants, `scripts.js` loading phases (eager, lazy, delayed), images, fragments, and LCP or performance fixes. EDS conventions don't always match standard front-end practice because of its architecture and page-loading model, and the boilerplate keeps evolving past model training cutoffs, so check here rather than relying on memory. For new blocks or changes to the authored structure, start with content-driven-development.Other plugins' skills for the same job