Admin Kit is a small JavaScript and CSS package for operator controls: dropdowns, checkboxes, toggles, growing text areas, modals, toasts, and date/time fields.
It shares behavior, not branding. The package defines control behavior and CSS token names; each service supplies its own colors, type, spacing, and emphasis. That keeps separate products visually independent while avoiding a new modal or dropdown implementation in every repository.
Current use
The Programs Calendar consumes admin-kit version 1.1.0 from the public package repository. Its admin interface uses the kit for custom controls and dialogs.
The Pub repository has related local AdminKit controls, but does not currently declare the shared package as a dependency. Treat those as separate implementations until the Pub source says otherwise.
Contract
- No framework or build step is required by a consumer.
- Static hosts can copy the built CSS, JavaScript, and HTML from the package.
- Worker-rendered applications can import string exports.
- Real form elements stay in the document for progressive enhancement.
- A neutrality check rejects color and font literals in the shared source.
- Consumers pin a version and upgrade on their own schedule.
Maintainer checks
From the Admin Kit repository:
npm run build
npm testThe test command runs the control tests and the brand-neutrality guard.
Sources
- dghauri0/admin-kit
ihnyc-rc-cal-landing/package.jsonihnyc-rc-cal-landing/eleventy.config.jsihnyc-rc-cal-landing/src/admin/admin.css