Table of Contents
This is an opinionated, and simple starter CSS file to use an alternative to a large framework.
To get started follow these simple example steps.
- Clone the repo
git clone https://github.com/mrbrianhinton/css-starter
- Update any CSS variables (color for instance)
:root { /* Before */ --color-white: #fff; /* Updated */ --color-white: #fafafa; }
- The import the stylesheet into your project
<link rel="stylesheet" src="styles.css">
To use the starter reference the variables when shaping the CSS for your layouts.
:root {
/* Spacing */
--space-eighth: 0.2rem;
/* Font Weights */
--weight-regular: 400;
}
.header {
padding: var(--space-eighth);
font-weight: var(--weight-regular);
}
The advantage of a simple starter is that it's all about mixing in your own styles, and you can take advantage of modern CSS without it having to be baked into the framework you are using.
@container sidebar (min-width: 400px){
.card {
display: grid;
grid-template-columns: 2fr 1fr;
padding: var(--space-quad);
}
}
Then you can keep adding, and growing when you see patterns emerge.
- Clean up default fonts, and set a new opinionated default font
- Add helpers for Flex and Grid
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'feat: add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Brian Hinton - @RealTinyPenguin