A small personal design system for Helgerød gård – tokens, CSS components, print styles and an ECharts theme that work in both light and dark mode and meet WCAG 2.2 AA. Used for printable documents and smart-home dashboards alike.
- Pattern book: https://nerdesign.offline.no/
- Source:
src/· Built output:dist/(committed)
Vendor a pinned release – no build step needed in your project:
tools/copy-to.sh ../my-project --with-fonts --release v1.0.0This places nd.css, nd-echarts.js, nd-theme.js (and optionally
nd-fonts.css + fonts/) in my-project/nd/, taken from the release's signed git
tag in your clone (the copy stops if git verify-tag fails). Include them like any
static file:
<link rel="stylesheet" href="nd/nd-fonts.css">
<link rel="stylesheet" href="nd/nd.css">
<script type="module">
import * as nd from './nd/nd-echarts.js';
</script>Single-file documents paste dist/nd.css into their <style>. Never edit the
copied files – change this repo and copy again.
npm install && npx playwright install chromium
npm run build && npm testSee AGENTS.md for conventions.