Minimal reset variant
The minimal reset variant is a small Sass entrypoint for projects that need a basic visual baseline without the full browser normalization set. It keeps common layout and media defaults predictable while leaving form, text, and less common element behavior to the consumer or to the full reset.
Entry-point role
The minimal entrypoint is the direct Sass source at src/mini.scss. It is built as a separate CSS artifact from the main entrypoint, so consumers can choose a smaller starting point without changing the scope of the full reset.
Baseline purpose
The variant establishes a small set of shared defaults: border-box sizing, zero spacing on all elements, simpler heading metrics, unstyled unordered lists, responsive media, borderless iframes, and collapsed table borders. These rules form a neutral base for a site that plans to define its own broader design rules.
References: src/mini.scss• L1-34
Reset scope
The minimal variant covers the base elements that most directly affect page layout and common content flow. It does not aim to normalize every browser-facing element.
Included normalization groups
The main groups are:
- Box sizing and spacing: inherited box sizing with a border-box root and no default padding or margin.
- Headings and lists: normal heading weight with shared line height and no unordered-list markers.
- Media: width-safe images and videos with automatic height.
- Embedded content: no iframe border.
- Tables: collapsed borders with no extra border spacing.
References: src/mini.scss• L1-34
Excluded normalization groups
The minimal variant does not include the full reset’s root and paragraph defaults, inline text fixes, form-control rules, or browser behavior for elements such as dialogs, details, SVG, and hidden content. Those areas belong to the full reset and its related normalization topics: foundational element normalization, typography normalization, and form-control normalization.
References: src/mini.scss• L1-34 src/…/global.scss• L9-26 src/…/text.scss• L1-27 src/…/forms.scss• L1-92 src/…/other.scss• L1-77
Consumer selection
Consumers should select the minimal variant when they want the layout baseline but need to keep browser defaults for controls and less common elements. It fits sites with their own typography and form system, or sites that want a smaller reset surface to review and override.
Minimal variant use
Use the minimal artifact when the application owns the missing styles and does not depend on the full reset’s browser fixes. Add the application stylesheet after the reset so its rules define the final visual treatment.
Full reset use
Use the full reset when the project needs a broad cross-browser starting point for text, forms, media, and structural elements. The full Sass entrypoint combines the global, text, form, and other normalization areas rather than selecting only the minimal baseline.
References: src/mini.scss• L1-34 src/index.scss• L1-6 README.md• L94-111
Build artifacts
The minimal Sass source produces dist/mini.css and its minified counterpart. The normal package entrypoints and the css/reseter.css aliases represent the full reset, so consumers who need the smaller variant must select the mini artifact explicitly.
References: package.json• L38-47 scripts/copy-css-aliases.js• L6-18 dist/mini.css• L1-34 css/reseter.css• L1-225
Change checklist
When these files or sections are changed, remember to consider these:
- Keep src/mini.scss and its dist/mini.css and dist/mini.min.css outputs aligned.
- If a rule moves between the minimal and full entrypoints, update the scope guidance and the related normalization pages.
- If artifact names or package build steps change, verify that consumers can still distinguish the minimal artifact from the full reset.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A consumer loads the default full-reset alias when it expects the minimal variant | Extra typography, form, or element rules change the site baseline | Select the mini distribution artifact explicitly |
| A consumer assumes the minimal variant includes form normalization | Controls keep browser-specific behavior or styling | Use the full reset or define the form rules in the application |
| The Sass source changes without rebuilding the minimal artifacts | Published CSS does not match the documented scope | Treat the source and both mini build outputs as one release unit |
Key files
| File | Why to read it |
|---|---|
| src/mini.scss | Defines the minimal reset scope and its direct Sass entrypoint. |
| src/index.scss | Shows the full reset entrypoint and its broader assembly. |
| package.json | Shows how the two Sass entrypoints become CSS artifacts. |
| dist/mini.css | Shows the built minimal artifact consumed by package users. |
| css/reseter.css | Shows the full-reset alias, which is separate from the minimal artifact. |