Small library for customizing checkboxes and radios built in sass and using Material Symbols icons as source, can be extended to other icon sources.
The Dev Container now installs the preview dependency automatically and starts the local server on boot.
Open the forwarded port 3000, or run the preview manually with:
npm run devThen open http://localhost:3000.
For this repo, the most efficient workflow is to keep style.scss as the source of truth and let Dart Sass watch it:
npm run watch:cssUse this for daily development. When you want the distributable files, run:
npm run build:css
npm run build:css:minThat keeps rebuilds incremental and avoids recompiling more than the single source file.
- Put
acr,acr-fill, and optionallyacr-{icon}on theinput. - Wrap the
inputin alabelso the text stays clickable and accessible. acr-filldraws the frame and checked background, whileacr-md-{icon}injects the icon glyph from the Material Symbols font.- The icon itself is rendered with
::before,content, andfont-familyoninput.acr::before. - The current map is intentionally small and can be expanded later with other prefixes for other icon sets.