ROADCOACH

Portal theme reference

Use this contract to move an appearance between schools or maintain a reviewed theme file.

Accent color field for the school theme.
The Accent color field corresponds to accent in the theme JSON.Open the Safety First theme editorEnlarge screenshotLink to step

Theme fields

schemaVersion
Integer 1.
mark, tagline
Public single-line text. The school mark accepts up to 12 characters. The welcome line accepts up to 90. Leave either empty to hide it.
accent
Six-digit hex color starting with #. Sets the accent on buttons and the school mark.
palette
paper, midnight or coast. Sets the base colors.
layout
centered or rail. The rail sits beside content at widths of 52rem and above. Both stack on smaller screens.
typography
humanist, editorial or technical. Sets the heading family.
density
comfortable or compact. Sets panel padding and row spacing.
panels
cards or ledger. Chooses separated panels or open rows with dividers.
workspaceOrder
profile-first or roster-first. Changes both the reading and keyboard order.
overrides
Optional object. Keys are the supported CSS custom properties listed below. Omit a key to inherit its theme value.

Style overrides

Colors. Use #RRGGBB for --school-bg, --school-surface, --school-ink, --school-muted, --school-line, --school-field, --school-field-ink, --school-button, --school-button-ink, --school-link, --school-focus, --school-heading-ink. Text and button color pairs need at least 4.5:1 contrast. The focus color needs at least 3:1 against the canvas and panel surfaces.

Fonts. --school-body-font, --school-heading accept system-ui, sans-serif, serif or monospace.

Sizes. Enter a nonnegative number and the unit rem, with up to two decimal places, such as 0.75rem.

Allowed sizes, in rem
PropertyMinimumMaximum
--school-body-size0.8751.5
--school-title-size1.54
--school-heading-size12.5
--school-panel-radius02
--school-button-radius02
--school-field-radius01.5
--school-pad0.753
--school-gap0.252.5
--school-content-width3890
--school-rail-width1222

Import, export and restore

These links require a school owner or administrator session and the appearance release.

  1. 1 On the destination school’s address, sign in as an owner or administrator. Open Workspace → Portal appearance → Developer configuration. Export your current configuration before trying changes.
  2. 2 Read the current document with GET /api/v1/organization/appearance.json. It contains revision and theme. When copying between schools, use the destination’s current revision alongside the incoming theme.
  3. 3 For a visual check, paste the document and select Preview JSON. Select Save JSON to publish. For a programmatic update, send the same envelope in a same-origin PUT to the same path, from the authorized session, with Content-Type: application/json.
  4. 4 Read the returned revision. A 409 means another change was saved first. Fetch the current configuration, compare the changes and retry with the new revision. A 400 means a value, color combination or property was rejected. Read the response and correct the affected field.
  5. 5 To return to standard, preview the standard theme on Safety First and select Save appearance. The Night Dispatch preview uses ?sample=dispatch.

Example files

The sample revision is a placeholder. Copy the theme into the destination school’s current document before saving.