@effective/css-reset
v3.2.0
Published
Effective CSS Reset
Downloads
56
Maintainers
Readme
Effective/CSS Reset
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.
Demo
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.
Usage
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, ...
Acknowledgements
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
Technical Highlights
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.
License
Apache License; Version 2.0, January 2004
Copyright
Copyright 2023-2024Sebastian Software GmbH