2020-05-27 02:54:29 +02:00
[![License MIT ](https://img.shields.io/badge/licence-MIT-blue.svg )](https://choosealicense.com/licenses/mit/)
2020-06-02 00:18:36 +02:00
[![Gzip Size ](https://img.badgesize.io/https://unpkg.com/@vladocar/basic.css@1.0.2/css/basic.min.css?compression=gzip )](https://unpkg.com/@vladocar/basic.css@1.0.2/css/basic.min.css)
2020-05-27 02:54:29 +02:00
2020-05-27 01:55:05 +02:00
Basic.css
=======================================
Classless CSS Starter File
* * *
2020-05-27 12:23:26 +02:00
Basic.css gives you basic CSS formatting and ability to make basic grids with only HTML5 syntax. You can use this project to Set your default styling.
2020-05-27 01:55:05 +02:00
### List of features
* Lightweight 1kb minified and gzipped.
2020-05-27 23:15:41 +02:00
* Basic typography.
* Basic forms.
2020-05-27 01:55:05 +02:00
* Custom colors.
* Dark theme.
* Round corners.
* Flex Grid without classes.
* Flex Grid cards.
2020-05-27 12:23:26 +02:00
Demo: https://vladocar.github.io/Basic.css/
2020-05-27 02:09:56 +02:00
2020-05-27 23:15:41 +02:00
This project uses the best elements from my previous projects:
2020-05-27 02:09:56 +02:00
2020-05-27 12:25:51 +02:00
https://github.com/vladocar/Basic-CSS-Typography-Reset
https://github.com/vladocar/infinity-css-grid
https://github.com/vladocar/Simple-Button
2020-05-27 01:55:05 +02:00
2020-05-27 23:15:41 +02:00
##### You can change root css variables with your color palette:
2020-05-27 01:55:05 +02:00
```css
:root{
--c1:#0074d9;
--c2:#eee;
--c3:#fff;
--c4:#000;
--c5:#fff;
}
```
2020-05-27 23:15:41 +02:00
##### Or adjust the round corners
2020-05-27 01:55:05 +02:00
By default are 8px, use --rc: 0px; if you don't like round corners.
```css
:root{
--rc: 8px;
}
```
##### Override the colors in the dark mode:
```css
@media (prefers-color-scheme: dark) {
:root {
--c2:#333;
--c3:#1e1f20;
--c4:#fff;
}
}
```
##### How you can use the infinity flex grid?
2020-06-01 14:25:56 +02:00
Use the HTML5 tags section and nested section to make flex grid.
2020-05-27 01:55:05 +02:00
```html
< section >
2020-06-01 14:25:56 +02:00
< section > 1 < / section >
< section > 2 < / section >
< section > 3 < / section >
2020-05-27 01:55:05 +02:00
< / section >
< section >
2020-06-01 14:25:56 +02:00
< section > 1 < / section >
< section > 2 < / section >
< section > 3 < / section >
< section > 4 < / section >
2020-05-27 01:55:05 +02:00
< / section >
```
2020-05-27 12:23:26 +02:00
Demo: https://vladocar.github.io/Basic.css/grid.html
2020-05-27 01:55:05 +02:00
Use the HTML5 tags selection and article to make cards.
```html
< section >
< article > 1 < / article >
< article > 2 < / article >
< article > 3 < / article >
< / section >
```
2020-05-27 12:23:26 +02:00
Demo: https://vladocar.github.io/Basic.css/cards.html
#### How to use this project?
Simply download and personalize the **basic.css** file.
Or
```sh
npm i @vladocar/basic .css
```
2020-05-27 23:15:41 +02:00
#### Why should you use this project?
2020-05-27 12:23:26 +02:00
2020-05-27 23:15:41 +02:00
Instead of using CSS Reset you could just Set the basic css formatting and styling. You could even make some grids with the HTML5 tags. Naturally if you want to build something more complex you should use CSS classes and this project works great in combination with other CSS frameworks.
2020-05-27 12:23:26 +02:00
2020-06-03 15:59:39 +02:00
### Bonus comic:
![Comic xkcd style ](comic.png )
Modified text from the original [https://xkcd.com/2309/ ](https://xkcd.com/2309/ )