- JavaScript 33.7%
- HTML 31.4%
- CSS 29.4%
- Shell 5.5%
| presentations | ||
| .gitignore | ||
| amsterdam.css | ||
| beeldmerk.svg | ||
| bronnen-presentatie-templates.md | ||
| export-pdf.mjs | ||
| fundament.drawio.png | ||
| index.html | ||
| LICENSE | ||
| merge-pdf.mjs | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| render-pdf.js | ||
| render-potx-lo.sh | ||
| render-potx.js | ||
| screenshot.js | ||
reveal-ams
A reveal.js theme styled with the Amsterdam Design System. It keeps the existing 16:9 slide layouts and their class names.
beeldmerk.svg contains the official Amsterdam logo from the
Design System assets
for decks that need it; the theme does not insert it automatically. Use City
of Amsterdam branding only when authorized. The PowerPoint comparison tools
are legacy-only.
Use
Load the Amsterdam Design System font, CSS and tokens before the theme:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@5/dist/reveal.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@5/dist/reset.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@amsterdam/design-system-assets@2.7.0/font/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@amsterdam/design-system-css@4.5.0/dist/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@amsterdam/design-system-tokens@4.4.0/dist/index.css">
<link rel="stylesheet" href="amsterdam.css">
Add class="ams-body" to the document body. Official Amsterdam branding assets
are subject to the City of Amsterdam's usage conditions; only use them when
you are authorized to do so.
index.html is a demo deck that shows every layout. Open it in a browser,
or serve the folder with python3 -m http.server.
Presentations live in presentations/, including
the Fundament presentation.
A slide picks its layout with a class on the <section>, for example
title-white, chapter or quote-photo. The demo deck lists them all.
Export to PDF
npm install
node export-pdf.mjs <deck.html> <empty-outdir> # one vector PDF per slide
node merge-pdf.mjs <outdir> <deck.pdf> "<title>" ["<author>"]
Run export-pdf.mjs from the folder that holds the deck. It renders the
screen view, so the PDF matches the slides. Use a fresh, empty output folder:
merge-pdf.mjs merges every PDF it finds there. Set
PUPPETEER_EXECUTABLE_PATH to use a system Chrome or Chromium.
render-pdf.js is the simpler alternative through reveal's own print mode.
Legacy Rijksoverheid comparison tools
render-potx.js and render-potx-lo.sh render the layouts of a .potx
template to PNG. These scripts and
bronnen-presentatie-templates.md relate to the theme's former
Rijksoverheid styling; they do not compare against the current Amsterdam
Design System theme. The templates are distributed through rijkshuisstijl.nl
(login required).
Licence
EUPL-1.2. The licence covers the code in this repository, not third-party assets or branding.