Design within the system
Call get_capabilities before designing. It returns the editor's live field definitions (design), layout IDs (layouts), coordinated presets (presets), typography pairings (typography), color palettes (palettes), content limits and workflow guidance. These come from the same files the visual editor uses, so the live response is authoritative.
Design changes need the design scope.
Begin with a coordinated design
| Preset | Character |
|---|---|
hall |
Museum lighting, framed portraits and wall text in your colors |
original |
The familiar school display |
museum |
Formal portraits, gold light and timeless type |
varsity |
Bold banners and a confident athletic feel |
editorial |
Airy stories and readable profiles |
gala |
Portrait circles and a dramatic awards stage |
modern |
A welcoming dashboard and clean directories |
archive |
A photographic collection made for exploring |
commencement |
Graduate recognition with a brief cap reveal |
hype-athletics |
Friday-night lights, sweeping beams and scoreboard records |
prestige |
A black-tie hall: a ring of portraits in ceremonial silk light |
modern-fun |
A sunlit photo mosaic, drifting color, photo cards and collector cards |
country-club |
Linen walls, framed champions and slow gallery light |
donor-wall |
An architectural wall of giving societies in slate and champagne light |
hospital |
A calm, luminous lobby with pioneer portraits and soft aurora |
high-school |
Hometown pride: honor cards, yearbooks and banners under starlight |
advancement |
An impact report: a magazine cover, honor rolls and soft gala light |
locker-room |
Rafter banners, retired numbers and moving spotlights |
The last nine are the setup themes' designs. Setup also applies a theme's collections and site settings; choosing its design here changes only the design.
A preset sets the home layout, collection layouts, default collection and profile layouts, typography, card finish, start button, motion effect, effect intensity and gallery tone together. Apply one with a targeted batch:
{
"revision": 3,
"idempotencyKey": "heritage-design-001",
"dryRun": true,
"changes": [{ "action": "design", "target": "site", "fields": {
"designPreset": "museum",
"brandPalette": "navy-gold",
"motionEffect": "none"
} }]
}
Replace the revision with the current value. The preset is applied first, then brandPalette, then every field you send explicitly, so motionEffect above overrides the preset's effect. Existing collection and profile design choices keep priority over the site preset. Text and photos are preserved.
School colors
Set brandPalette to a palette value from get_capabilities (for example crimson-gold, navy-gold, forest-ivory or monochrome). It sets primaryColor and secondaryColor together. Use original to remove color overrides and return to the site's own colors, or set primaryColor and secondaryColor directly. Colors accept #rgb, #rrggbb or opaque rgb() and are saved as lowercase #rrggbb.
Fine-tune supported fields
Each design change has a target:
| Target | id |
Common fields |
|---|---|---|
site |
None | designPreset, brandPalette, colors, title, brandName, primaryLogo, backgroundImage, homeLayout, categoriesLayout, defaultCategoryLayout, defaultEntryLayout, typography, cardFinish, startTreatment, galleryTone, motionEffect (the atmosphere), motion, and the clock, stats, year explorer and countdown widgets |
category |
Folder ID | layout, subcategoryLayout, cardBackground, background, filter labels (activityAlternativeName, typeAlternativeName, eventDateAlternativeName, graduationDateAlternativeName), filters on/off (filterActivity, filterType, filterEventDate, filterGraduationDate, filterLastName) and detail visibility (showActivity, showType) |
entry |
Entry ID | layout, headshot, cardBackground, background, photo framing (headshotFit, cardBackgroundFit, headshotFocus, cardBackgroundFocus) and eventDate |
Content is not a design setting: a story's name, text, details and year, and a collection's name and description, are written with the content tools and stored once, on the record.
motion: "still" keeps every display of the site in its lightest mode (still background, no video or motion effects); "auto" lets each screen adapt. Each atmosphere has one fixed strength; choosing it again replays it.
Use the exact field names and allowed values returned by get_capabilities. All values are strings, except null, which removes an override and restores the underlying value. Unknown fields return invalid-display-settings.
| Field kind | Accepted value |
|---|---|
| Enum (layouts, presets, effects, on/off) | One of the listed values |
| Text | Plain text up to the listed max |
| Color | #rgb, #rrggbb or opaque rgb() |
| Image | An image asset ID from this site's list_media or upload_media. Other IDs return asset-reference; external image URLs are rejected |
| Date | A year, YYYY-MM-DD date or YYYY–YYYY season |
Date and time (countdownDate) |
YYYY-MM-DDTHH:MM |
| Fit | cover (fill) or contain (fit) |
| Focus | Photo position as X% Y%, such as 50% 30%. The stored photo is never cropped |
{
"action": "design",
"target": "entry",
"id": "ENTRY_ID_FROM_SEARCH",
"fields": { "layout": "MuseumPlacardLayout" }
}
A folder's own layout is a content field. Set it with update_folder (fields.layout) or override it with a category design change; both use the category layout IDs.
Do not send CSS, JavaScript, HTML fragments, arbitrary components, unknown fonts or unsupported fields. To request functionality outside the available options, explain the limitation rather than pretending to implement it.
Preview and refine
Use preview_site after saving and open the read-only link without account login. Review the home page, a collection, a text-heavy story and a photo-heavy story at the intended display size and mobile width. Check nested scrolling areas, not just page width. Prefer legible text, restrained effects and layouts suited to the available content.
The API does not generate screenshots. A browser-capable agent can inspect and capture the preview itself. On an owned site the returned URL contains a short-lived preview capability, never the connection token. Treat the full link as a secret. It expires after 10 minutes, when the draft changes or when the connection is revoked; request a fresh preview after edits. Text-only profiles use a readable story layout instead of an empty portrait. Individual collection layout choices take precedence over the site preset.