Upload font files, create/rename Bricks font families, and edit weight/style faces via MCP. Handles the full custom font lifecycle in Bricks builder.
Ships in bricks. 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.
None: SKILL.md is the whole skill.
For applying an existing font to headings or other site typography, use
bricks-design-systems. Font records describe available families and files;
Bricks typography controls reference a family as custom_font_<id>. Do not rename
or recreate the family merely to apply it.
Custom fonts in Bricks are three things bound together:
bricks_fonts custom post type: one post per font family.fontFaces postmeta map on that family. Keys are weight/style strings such as 400, 700, or 400italic.The MCP abilities mirror that model (includes/abilities/fonts.php).
bricks/list-custom-fonts: returns { items, total, page, perPage, hasMore }. Each row includes id, family, and faceCount.bricks/get-custom-font: body { fontId }. Returns { font: { id, family, fontFaces } }, plus font.ownership on Bricks 2.5+.bricks/create-custom-font: body { family, fontFaces? } on Bricks 2.4.3+. Earlier versions accept { family }; check the runtime schema before supplying initial faces. Creates the bricks_fonts post and returns { font }. There is no displayName parameter.bricks/upload-custom-font-file: body { filename, content }, where content is base64. Returns { attachmentId, url, format, bytes }.bricks/update-custom-font: body { fontId, expectedOwnership (2.5+), family?, fontFaces? }. If fontFaces is provided, it replaces the whole font-face map.bricks/delete-custom-font: body { fontId, expectedOwnership (2.5+) }. Deletes the font family post. It does not delete uploaded media attachments.Do not use bricks/upload-media for font files. The current font flow is:
bricks/upload-custom-font-file
filename: "inter-regular.woff2"
content: "<base64 bytes>"
-> { attachmentId: 500, url: ".../inter-regular.woff2", format: "woff2", bytes: 42112 }
bricks/create-custom-font { family: "Inter" }
-> { font: { id: 42, family: "Inter" } }
bricks/update-custom-font
fontId: 42
expectedOwnership: "<font.ownership from create-custom-font>" # Bricks 2.5+
fontFaces:
"400":
- { woff2: 500 }
The upload ability stores the font file as a WP attachment. update-custom-font references those attachment IDs inside fontFaces.
Enforced at upload time:
woff2, woff, ttf, otf, eot.wp_check_filetype_and_ext(): extension alone is not trusted.bricks/abilities/fonts/max_bytes.fontFaces shape{
"400": { "woff2": 500, "woff": 501 },
"400italic": [
{ "woff2": 502, "unicode-range": "U+0000-00FF" },
{ "woff2": 503, "unicode-range": "U+0100-017F" }
],
"700": { "woff2": 504 }
}
Rules:
400, 700, 400italic, etc.Fonts::validate_font_faces() accepts both and normalizes a single subset back to an object (includes/abilities/fonts.php).woff2, woff, ttf, otf, eot.bricks/upload-custom-font-file.unicode-range is optional and lets multiple subsets share one weight/style variant."font-weight-range": "300 900" for a variable font. The string must contain two numbers from 1 to 1000 with the minimum no greater than the maximum; decimals are accepted. This descriptor overrides the variant key’s weight in generated CSS (Custom_Fonts::sanitize_font_weight_range() in includes/custom-fonts.php). Check the runtime schema on older versions.unicode-range and font-weight-range are metadata, not file sources. Each subset still needs at least one file-format key. Read the existing map and preserve these descriptors when replacing fontFaces.Bricks generates @font-face rules from the fontFaces map and attachment URLs:
@font-face {
font-family: "Inter";
font-weight: 400;
font-style: normal;
font-display: swap;
src: url("/wp-content/uploads/.../inter-regular.woff2") format("woff2");
}
The family is then selectable in Bricks typography controls.
Frontend output currently emits font-display: swap in includes/custom-fonts.php:731. Bricks settings abilities do not expose a verified customFontsDisplay key, so do not claim font-display can be changed through MCP unless bricks/list-settings-schema shows that key on the target site.
If a
bricks/*ability is not available as a direct tool: first check whether it is outside the fast path and call it throughmcp-adapter-execute-abilitywithability_name: "bricks/<name>". If the dispatcher also rejects it, callbricks-list-ability-statusto check whether a site admin disabled it under Bricks > AI.
Adobe Fonts uses the admin setting adobeFontsProjectId; Google Fonts can be disabled in the admin UI through disableGoogleFonts. Do not assume either is writable through MCP. Inspect bricks/list-settings-schema on the target site before changing provider settings.
bricks/upload-custom-font-file.displayName, id, or faces; current schemas use family, fontId, and fontFaces.fontFaces object unless you intend to replace the whole map.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/bricks:bricks-custom-fontsfrom bricks
npx claudepluginhub codeerhq/bricks-skills --plugin bricks46 skills in this plugin
/bricks-agent-repositoryHandle complex existing-site Bricks edits through advertised repository/workspace workflows when focused abilities cannot express the change./bricks-ai-tabDiagnose Bricks AI connection setup, ability toggles, dispatcher availability and disabled actions. Use for connection/availability problems./bricks-audit-design-systemAudit Bricks classes, variables, palettes and components, or carry out requested cleanup. Report-only audits do not authorize fixes.Other plugins' skills for the same job