| name | nlds-new |
| description | Create a new NL Design System token set for an organisation — extracts branding from website/huisstijlhandboek via Playwright |
Create a new NL Design System token set for: $ARGUMENTS
Instructions
Gather required information
If $ARGUMENTS is empty or does not contain an organisation name, ask:
- "What is the name of the organisation?" (required — do not proceed until answered)
Once you have the name, ask:
- "Should I extract the design from the organisation's website, a huisstijlhandboek (style guide), or both?"
If the user says website or both, look up the most likely website URL (e.g. https://www.<name>.nl/) and ask:
- "Is this the correct website:
<url>? (or provide the right one)"
If the user says huisstijlhandboek, ask:
- "What is the URL of the huisstijlhandboek?"
If $ARGUMENTS already contains a name and URL, confirm both with the user before proceeding.
Derive identifiers
From the organisation name:
- slug: lowercase, spaces replaced with hyphens (e.g. "den-haag", "vng-realisatie")
- prefix: same as slug
- fullName: the proper name (e.g. "Den Haag", "VNG Realisatie")
- packageName:
@nl-design-system-unstable/<slug>-design-tokens
- folderName:
municipalities/<slug>-design-tokens
Allowed references
Use only these three sources:
- The organisation's website
- The organisation's huisstijlhandboek (style guide)
- The
conduction-design-tokens/ baseline files (for file structure and default values)
Do NOT look at other themes in municipalities/ for reference (e.g. to see how they chose values or mapped sizes). Other themes contain organisation-specific choices and mistakes that silently leak into the new theme — for example copying another theme's decision to map the body font-size to font-size.md instead of the website's actual <p> font-size.
Execute
Read the shared reference at conduction-theme/.claude/commands/nlds-reference.md and follow it from the top:
- Extract — follow the extraction procedure (website and/or huisstijlhandboek as the user requested)
- Create all files — follow the file creation procedure to create the full token set from scratch
- Update component tokens — follow the component update mapping to apply extracted values
- Build and test — follow the build procedure, fix any errors
- Summary — output the summary as described in the reference