Apply Dutch government design tokens (NL Design System) to your Nextcloud instance with open-source fonts and components.
-
Multiple Token Sets: Choose from various Dutch government design systems:
- Rijkshuisstijl (Dutch national government)
- Gemeente Utrecht
- Gemeente Amsterdam
- Gemeente Den Haag
- Gemeente Rotterdam
-
Open Source Fonts: Uses Fira Sans from
@fontsource/fira-sansas a professional alternative to proprietary government fonts -
Easy Configuration: Select your preferred token set via the admin settings panel
-
CSS Variables: Uses CSS custom properties for flexible theming that integrates with Nextcloud's existing theme system
-
No Build Required: Fonts loaded via CDN, tokens are pre-compiled CSS
-
Clone or download this app to your Nextcloud apps directory:
cd /path/to/nextcloud/apps git clone https://github.com/ConductionNL/nldesign.git -
Install npm dependencies (for fonts):
cd nldesign npm install -
Enable the app in Nextcloud:
occ app:enable nldesign
-
Configure the theme in Settings → Administration → Theming
If you're running in the provided Docker environment:
# From the server directory
docker exec -u 33 nextcloud php occ app:enable nldesignNavigate to Settings → Administration → Theming and find the "NL Design System Theme" section.
Select your preferred design token set and reload the page to see the changes.
This app uses Fira Sans as an open-source alternative to the proprietary government fonts:
- Source:
@fontsource/fira-sansnpm package - License: SIL Open Font License 1.1 (free to use)
- Weights: Regular (400) and Bold (700), plus italic variants
- Delivery: Loaded via CDN from jsdelivr.net
- No permission needed: Unlike RijksoverheidSansWebText, Fira Sans is freely available
- Designed by Carrois Apostrophe for readability
- Used by Mozilla and other organizations
- Excellent legibility for government services
- Similar characteristics to official government fonts
- Officially recommended by Rijkshuisstijl Community as open-source alternative
nldesign/
├── appinfo/
│ ├── info.xml # App metadata
│ └── routes.php # API routes
├── css/
│ ├── fonts.css # Fira Sans font declarations
│ ├── theme.css # Maps NL Design tokens to Nextcloud variables
│ ├── tokens/ # Token set files per organization
│ │ ├── rijkshuisstijl.css
│ │ ├── utrecht.css
│ │ ├── amsterdam.css
│ │ ├── denhaag.css
│ │ └── rotterdam.css
│ └── admin.css # Admin settings styles
├── js/
│ └── admin.js # Admin settings JavaScript
├── lib/
│ ├── AppInfo/
│ │ └── Application.php # Loads CSS files
│ ├── Controller/
│ │ └── SettingsController.php
│ └── Settings/
│ └── Admin.php
├── templates/
│ └── settings/
│ └── admin.php # Settings UI
├── package.json # NPM dependencies
└── node_modules/ # Fonts from npm
└── @fontsource/fira-sans/
-
Token Layer: Each organization has a token file (e.g.,
rijkshuisstijl.css) that defines design tokens as CSS variables::root { --nldesign-color-primary: #154273; --nldesign-font-family: 'Fira Sans', sans-serif; }
-
Mapping Layer: The
theme.cssfile maps these to Nextcloud's CSS variables:body { --color-primary: var(--nldesign-color-primary) !important; font-family: var(--nldesign-font-family) !important; }
-
Font Loading: The
fonts.cssfile loads Fira Sans from CDN:@font-face { font-family: 'Fira Sans'; src: url('https://cdn.jsdelivr.net/npm/@fontsource/fira-sans@5.0.0/...'); }
// In Application.php
\OCP\Util::addStyle(self::APP_ID, 'fonts'); // 1. Load Fira Sans
\OCP\Util::addStyle(self::APP_ID, 'tokens/utrecht'); // 2. Load token set
\OCP\Util::addStyle(self::APP_ID, 'theme'); // 3. Map to Nextcloud- Node.js 18+
- npm
cd nldesign
npm installThe fonts are loaded from CDN, so no build step is required. However, if you want to download fonts locally:
# Fonts are in node_modules/@fontsource/fira-sans/files/
cp node_modules/@fontsource/fira-sans/files/*.woff2 css/fonts/Then update css/fonts.css to use local paths instead of CDN.
To add a new municipality or organization:
- Create a new file in
css/tokens/(e.g.,tilburg.css) - Define the
--nldesign-*variables following the existing pattern - Add the option to
templates/settings/admin.php - Update
lib/Controller/SettingsController.phpto validate the new option
@fontsource/fira-sans(v5.0.0)- Open-source web fonts
- Self-hosted option for Fira Sans
- Includes all weights and styles
These packages inspired our token definitions but are not direct dependencies:
@rijkshuisstijl-community/design-tokens- Official Rijkshuisstijl tokens@rijkshuisstijl-community/font- Font package (includes Fira Sans)@utrecht/design-tokens- Utrecht municipality tokens
Note: We maintain manual CSS token files for better compatibility with Nextcloud's asset pipeline, but they're based on the official NL Design System specifications.
✅ What's Included (Free & Legal):
- Fira Sans fonts (SIL OFL 1.1 license)
- Design token values (colors, spacing, etc.)
- CSS mapping to Nextcloud variables
- All municipality color schemes
❌ What's NOT Included (Requires Permission):
- Official Rijkslogo (crown logo)
- RijksoverheidSansWebText proprietary fonts
- Official government imagery
This implementation is fully legal and open-source for:
- Demonstrations and prototypes
- Educational purposes
- Municipal websites (with their respective themes)
- Any organization using open-source alternatives
Permission Required for:
- Official Rijksoverheid organizations using the Rijkslogo
- Using proprietary RijksoverheidSansWebText fonts
- Official government communications
- NL Design System Community Slack - Join
#nl-design-system - GitHub Discussions
AGPL-3.0-or-later
- This App: AGPL-3.0-or-later
- Fira Sans Font: SIL Open Font License 1.1
- Design Tokens: Public domain (color values, measurements)
Contributions are welcome! Please feel free to submit a Pull Request.
- Research the official design system
- Create a new token file in
css/tokens/ - Follow the existing pattern with
--nldesign-*variables - Add to admin UI
- Test in Nextcloud
- Submit PR with documentation
- Initial release
- Support for 5 token sets (Rijkshuisstijl, Utrecht, Amsterdam, Den Haag, Rotterdam)
- Fira Sans font integration via @fontsource
- CDN-based font loading
- Full CSS variable mapping
- Admin settings panel
- Background image removal for clean Rijkshuisstijl compliance