A customizable reset that makes it easy to choose your own opinionated styles!
This project takes inspiration from a blog article on bitsofcode that discusses the purpose of a CSS Reset. The article claims that a CSS Reset has 3 goals:
- Correct user agent style errors (Like IE)
- Undo inconsistent opinionated user agent styles
- Create a consistent opinionated style base
Heck Reset solves points 1 and 2 with a modified version of Normalize.css, Marx.css, and Sanitize.css.
To solve point 3, it uses customizable !default
SCSS variables.
To use this reset, you have several options.
- You can download the
dist/css/heck-reset.css
file and<link>
it in your HTML.- Cannot customize at all. This will only give you Heck-Reset's default styles.
<link rel="stylesheet" href="heck-reset.css">
- Cannot customize at all. This will only give you Heck-Reset's default styles.
- You can include the SCSS in your project.
- You can customize the reset by creating a variable override file and including it before Heck-Reset.
- Create a variable override file.
// variable overrides scss file $link-color: #7777ff; ...
- Include heck-reset.scss and variable-overrides in your project.
// Your Project's SCSS import 'variable-overrides'; import 'heck-reset.scss';
- Now you've got custom styles!
- You can customize the reset by creating a variable override file and including it before Heck-Reset.
Check out the default demo here (Test HTML page from jkorpela.fi)
- bitsofcode, the article that inspired this project
- Jukka Korpela, who made the test HTML document that shows how elements are rendered.