Skip to content

Salesforce Lightning (preview)

The Salesforce renderer draws any Mateu UI with the Lightning Design System (SLDS, @salesforce-ux/design-system, code under BSD-3-Clause): the Global Header and Context Bar shell, record-home page headers, cards, the data table, the combobox, the datepicker and timepicker, Path, modals, docked panels, toasts and SLDS’s utility icons. SLDS publishes blueprints — markup plus CSS — and Salesforce’s own Lightning Base Components are not open source outside the platform, so the interaction (keyboard, focus, ARIA) is Mateu’s, written to each blueprint’s documented behaviour.

It is a preview: it draws the whole wire catalogue and passes the Core, Standard and Full conformance fixtures, but its API surface may still change. Available since 3.0.8.

The space demo's missions list in the Salesforce Lightning renderer

An astronaut's record page in the Salesforce Lightning renderer

Both screens are demo/demo-space, an app authored entirely in YAML; the same app is drawn by every renderer, with nothing changed but the renderer dependency.

The shell is Lightning Experience’s: the global header with its search, the app launcher grid and the app’s navigation bar; a listing is a list view (its object icon, title and actions in the header, with the list’s search and its Filter, Views and Columns controls under them) and a record page a record-home header.

Use it instead of mateu-vaadin:

<dependency>
<groupId>io.mateu</groupId>
<artifactId>mateu-slds</artifactId>
<version>3.0.14</version>
</dependency>

and say so in the project descriptor, so the visual editor, Play and a static bundle agree with the served app (the server warns at startup when they differ):

src/main/resources/specs/ui/project.yaml
type: Project
renderer: slds

The served page is the usual Mateu page; the renderer’s files are served from /assets/ like any web renderer’s — under a context path or a proxy prefix too. A C# server serves it with MATEU_UI pointing at the jar (or its static/ folder), a Python one with add_mateu(ui=…).

To serve it from a CDN or any static host instead of the backend, upload the jar’s static/ folder — it carries a deployable index.html (since 3.0.9) — and see The renderer on a CDN.

  • SLDS’s code is BSD-3-Clause. Its icons and images are CC BY-ND 4.0: the jar ships them unmodified (the utility sprite as the package publishes it), with the attribution and the licence in its THIRD-PARTY-LICENSES.txt and META-INF/NOTICE.
  • Salesforce Sans is not shipped: the page uses the system font stack, which SLDS 2 allows. If you have the right to use Salesforce Sans, add it to your page yourself.
  • SLDS’s logo class is never used: its default image is Salesforce’s own mark.

The same screens as every Mateu web renderer — the app shell in every menu variant, the full page header, listings in every layout with filters, saved views and the column chooser, dashboards, wizards, boards, overlays, built-in sign-in and static bundles — in SLDS’s markup. Its own texts are in English, Spanish, French, German, Portuguese and Italian.

  • Light only: SLDS 2 publishes no dark theme, so themeToggle draws nothing.
  • The visual editor’s canvas previews an slds project with Vaadin for now.
  • A lookup opens a search popover rather than SLDS’s inline lookup; a multi-select is the multi-selection combobox, not the dueling picklist; rich text, file upload, slider and colour fields keep the renderer’s own widgets inside an SLDS form element.
  • Bpmn is read-only (as on Vaadin).

Salesforce and Lightning are trademarks of Salesforce, Inc. Mateu is not affiliated with or endorsed by Salesforce; the renderer uses the open-source Lightning Design System under its licences (above).