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

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.
| Property | Minimum | Maximum |
|---|---|---|
--school-body-size | 0.875 | 1.5 |
--school-title-size | 1.5 | 4 |
--school-heading-size | 1 | 2.5 |
--school-panel-radius | 0 | 2 |
--school-button-radius | 0 | 2 |
--school-field-radius | 0 | 1.5 |
--school-pad | 0.75 | 3 |
--school-gap | 0.25 | 2.5 |
--school-content-width | 38 | 90 |
--school-rail-width | 12 | 22 |
Import, export and restore
Open the Safety First developer guideOpen the saved theme JSONSign in to Safety First
These links require a school owner or administrator session and the appearance release.
- 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 Read the current document with
GET /api/v1/organization/appearance.json. It containsrevisionandtheme. When copying between schools, use the destination’s current revision alongside the incoming theme. - 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
PUTto the same path, from the authorized session, withContent-Type: application/json. - 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 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.