A better CSS foundation
- Helpful utility classes
- Typography and spacing custom variables
- Responsive class-name suffixes (eg.
.hide@md
) - Lightweight reset (based on Eric Meyer's CSS reset v2)
- Disables animations based on
prefers-reduced-motion
- Dispatches single taps without delay
<link
rel="stylesheet"
href="https://unpkg.com/@shwilliam/basesheet@latest"
/>
- Add this package as a dependency (
npm i @shwilliam/basesheet
) - Import it in your JavaScript file
import '@shwilliam/basesheet'
This stylesheet loosely follows the BEM conventions with several exceptions.
- Modifier classes can be used on their own
- Classes prefixed with a hyphen (eg.
-success
) modify a style and should not be used on their own
body {
font-size: 13px;
}
This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the issues. If you wish to work on this project:
- Fork this project
- Create a branch (
git checkout -b new-branch
) - Commit your changes (
git commit -am 'add new feature'
) - Push to the branch (
git push origin new-branch
) - Submit a pull request!