Skip to content

Style guide

One design system, a look for every academy

The tokens, components and theme presets every ULAMS site is built from.

Everything on this page is read from the code: the stylesheet tokens, the preset list of the admin theme screen, the contrast report that refuses a failing accent and the component catalogue that page documents are checked against.

Design tokens

The custom properties of the platform theme, as the stylesheet defines them. Tenant themes set the same names with their own values.

Colour

  • Primary · navy--ulams-color-primary#0f2b4614.07:1 on the page
  • Accent · terracotta--ulams-color-accent#b44a1f5.2:1 on the page
  • Headings--ulams-color-header#10283b14.74:1 on the page
  • Body text--ulams-color-text#23364712.11:1 on the page
  • Secondary text--ulams-color-muted#52657a5.85:1 on the page
  • Page--ulams-color-bg#fdfcf9
  • Surface · grid paper--ulams-color-surface#f8f6f0
  • Card--ulams-color-card-bg#fff
  • Border--ulams-color-border#e2e0da
  • Accent wash--ulams-color-accent-bg#fff0e7
  • Positive--ulams-color-positive#176b466.34:1 on the page
  • Warning--ulams-color-warn#8a4b086.62:1 on the page
  • Error--ulams-color-error#a932266.45:1 on the page
  • Information--ulams-color-info#1d4ed86.53:1 on the page

Type scale

Libre Baskerville for headings, Plus Jakarta Sans for text, JetBrains Mono for labels and code. Sizes are fluid: the value is the CSS that sets them.

  • Display.u-hero--product .u-hero__titleclamp(2.05rem, 8.4vw, 3rem)

    Courses built from your docs

  • Section heading.u-h2clamp(2rem, 3.5vw, 3rem)

    Every claim cited

  • Lead.u-leadclamp(1rem, 0.95rem + 0.3vw, 1.125rem)

    A cited draft in minutes, reviewed by you.

  • Bodybody1rem

    Learners keep their progress when a lesson is updated.

  • Eyebrow.u-eyebrow0.68rem

    Living course

Radius

  • --ulams-radius-button6px
  • --ulams-radius-input6px
  • --ulams-radius8px
  • --ulams-radius-card12px
  • --ulams-radius-modal16px

Spacing and layout

  • --ulams-gutterclamp(16px, 3vw, 32px)
  • --ulams-block-gap22px
  • --ulams-section-spaceclamp(64px, 8vw, 104px)
  • --ulams-container1280px

Font families

  • Libre Baskerville--ulams-font-family
  • Plus Jakarta Sans--ulams-font-family-body
  • JetBrains Mono--ulams-font-mono

Component catalogue

Pages and lessons are documents of catalogue components, validated against their JSON schemas before they render. Each name opens its live playground in the documentation.

PlaygroundProps reference

Live examples

Rendered here by the catalogue itself, from the same documents an agent or the Course Builder writes.

  • AiLabel

    AI-generated, based on this course's sources

  • CitationList

    Sources

    • Privacy policy § 4 Customer data
    • Onboarding guide § 2 Returns
  • Callout

  • Chips

    Status

    Labelled honestly

    • Theme presets
    • Brand import as a diff
    • Branding per course inside one academyComing
  • Steps

    Brand an academy in three steps

    1. Step 1

      Pick a preset

      Six presets, light and dark.

    2. Step 2

      Set the accent

      Checked against WCAG 2.2 AA before saving.

    3. Step 3

      Upload the logo

      PNG or SVG, with alt text.

Theme presets

The six presets of the admin theme screen, from the one list the admin, the Studio, the sites and the API share. Each card shows the preset's own colours and its text contrast.

  • The Coffee AtlasWarm, editorial, paper-likeLight
    • Page#f6f1e9
    • Card#ede5d8
    • Text#2b1d14
    • Primary#a84521
    • Accent#c2552d
    Body text
    14.49:1Passes
    Secondary text
    7.38:1Passes
  • On-CallDense, dark, technicalDark
    • Page#0b0f14
    • Card#121821
    • Text#e6edf3
    • Primary#58a6ff
    • Accent#58a6ff
    Body text
    16.27:1Passes
    Secondary text
    7.83:1Passes
  • Night Sky ExplorersPlayful, night-blueDark
    • Page#13153a
    • Card#1f2257
    • Text#f2f0ff
    • Primary#ffd23f
    • Accent#ffd23f
    Body text
    15.62:1Passes
    Secondary text
    10.08:1Passes
  • Gravity LabDark space, calm starfieldDark
    • Page#05070f
    • Card#0e1424
    • Text#e8ecf5
    • Primary#3dd6f5
    • Accent#3dd6f5
    Body text
    17:1Passes
    Secondary text
    9.66:1Passes
  • Poland, MeasuredCartographic paper, graticuleLight
    • Page#f4efe6
    • Card#fbf8f2
    • Text#1b2a3a
    • Primary#c8102e
    • Accent#c8102e
    Body text
    12.74:1Passes
    Secondary text
    5.89:1Passes
  • The Scottish BookArchival notebook, squared paperLight
    • Page#f7f3e8
    • Card#fffdf7
    • Text#1e2230
    • Primary#1d3b8f
    • Accent#1d3b8f
    Body text
    14.28:1Passes
    Secondary text
    7.35:1Passes

An accent that fails AA is not saved

The admin measures an accent on the preset's own backgrounds. While any of the four checks fails, the Save button stays off and the nearest passing shade is offered. Two accents on The Coffee Atlas:

  • Accent #a84521Can be saved

    • As text on the page5.28:1Passesneeds 4.5:1
    • As text on a card4.75:1Passesneeds 4.5:1
    • As a border or icon5.28:1Passesneeds 3:1
    • Text on an accent button5.94:1Passesneeds 4.5:1
  • Accent #ff7a2eBlocked: cannot be saved

    • As text on the page2.31:1Failsneeds 4.5:1
    • As text on a card2.08:1Failsneeds 4.5:1
    • As a border or icon2.31:1Failsneeds 3:1
    • Text on an accent button8.08:1Passesneeds 4.5:1

    Nearest shade that passes: #a34e1d

Brand import arrives as a diff

Paste brand colours (JSON, CSS variables or hex codes). The importer picks the closest preset, keeps the brand colour as the accent and measures it. An admin approves the change; nothing is applied before that.

Pasted brand colours

{ "primary": "#1d6f42", "background": "#ffffff", "text": "#1b1b1b" }
Proposed theme change
Proposed theme changeNowProposed
Theme presetcoffeeulam
Accent#c2552d#1d6f42
  • Brand accent on the preset background5.56:1Passesneeds 5:1
  • Accent as it will render5.56:1Passesneeds 4.5:1
  • Brand text on the brand background17.22:1Passesneeds 4.5:1

Approved in Settings, Theme. The preset keeps its own page colours: the brand background only chooses light or dark.

White label per academy

Each academy is a tenant with its own subdomain, data and look, on one ULAMS installation.

  • Own theme and logo

    A preset, an AA-checked accent and a logo with alt text, set per academy.

  • Own web identity

    A web manifest with the academy's name, colour and logo, and schema.org Course data on course pages.

  • Own templates

    E-mail, SMS and PDF templates, certificates included, edited per academy.

In the documentation