Agencies & network · Advanced · 0:52 min
Your own kit with the start kit
kit:create copies the start kit “starter” – then adjust, build, test.
Goal
You create your own kit for a project, based on the smallest complete kit, and know which steps follow.
Prerequisites
- Access to the command line and the
themes/folder (locally or on the server). - Node/pnpm for the build (local only).
Step by step
Transcript: every step matches one subtitle in the video.
- Your own kit for a project: “kit:create” copies the start kit and renames everything.
- The output lists the new folders and the next steps: adjust, build, test, check.
- The start kit is the smallest complete kit: six example blocks, light and dark, one accent colour.
- You set colours, fonts and navigation under Design as usual – the values are design tokens of the kit.
- theme.php is divided into sections § 1–11. The guide: technical documentation › kits & design.
Commands & configuration
php bin/console kit:create kanzlei # Kopie von themes/starter, Präfix starter_ → kanzlei_
cd tools && pnpm run build
php bin/console site:create kunde www.kunde.de kanzlei
php bin/console health --site=kunde
php themes/kanzlei/tools/contrast.php
Tips & pitfalls
Tip
kit:create name --from=basis uses another kit as the template.
Tip
Check the home-page budget: CSS < 30 KB, JS < 8 KB (start kit ≈ 15.7 KB / 0.4 KB).
Watch out
Rebuild after changes to assets/ – public/themes/{name}/ only contains the built files.
Watch out
Do not change the start kit itself – it is the template for kit:create and is replaced by updates.