Welcome to the Effective/CSS Reset, a cutting-edge CSS reset infused with sensible enhancements and a keen focus on utilizing system fonts. Our project draws inspiration from the remarkable work of numerous pioneers in the field, incorporating best practices and innovative techniques to offer a streamlined and effective CSS foundation.
Explore our Storybook Demo, hosted on Vercel, to see the various resetted elements in action. This interactive demo provides a firsthand look at how our CSS reset performs across different elements and browsers.
Install the package using your normal package manager e.g.
npm install @effective/css-reset
Integrate the CSS using an import
statement which should work fine in Vite/Remix/NextJS:
import "@effective/css-reset"
Alternatively you can cherry pick the individual files by choosing any number of the exported entry points:
import "@effective/css-reset/reset.css"
: Resetting all core elementsimport "@effective/css-reset/typography.css"
: Enhance typography with better defaultsimport "@effective/css-reset/enhancement.css"
: Further enhancements to form fields, buttons, ...
This project builds upon the contributions of several key resources in the web development community. We extend our gratitude to the authors and maintainers of these works for their insights and innovations:
- The New CSS Reset by Elad Shechter
- Modern Normalize by Sindre Sorhus
- Custom CSS Reset by Josh W Comeau
- A Modern CSS Reset by Piccalilli
- System Font Stack Snippet by CSS-Tricks
- Tailwind CSS Preflight alongside its implementation
- Childish Font Sizes by Cloud Four
Our CSS reset is designed with several key principles in mind to ensure maximum compatibility, usability, and flexibility:
- Reduced Specificity: Utilizes the
:where
selector to minimize selector specificity, facilitating easier theme customization and overrides. - System Fonts: Prioritizes cross-browser sans-serif system fonts (
system-ui
), complemented by a selection of compatible legacy font families. This approach is applied to both body text and pre-formatted code to ensure readability and consistency across platforms. - Enhanced Form Fields: Offers comprehensive support for native form fields, including search fields, date pickers, color selectors, and more. Each element is meticulously reset to enhance cross-browser compatibility, ensuring a uniform appearance and functionality across different environments.
Our mission with the Effective/CSS Reset is to provide developers with a robust starting point that incorporates the latest web standards and design philosophies. By building on the collective wisdom of the web development community, we aim to deliver a CSS reset that stands at the forefront of modern web design.
Apache License; Version 2.0, January 2004
Copyright 2023-2024
Sebastian Software GmbH