Basic.css/README.md

112 lines
2.4 KiB
Markdown
Raw Normal View History

2020-05-27 02:54:29 +02:00
[![License MIT](https://img.shields.io/badge/licence-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
[![Gzip Size](https://img.badgesize.io/https://unpkg.com/@vladocar/basic.css@1.0.0/css/basic.min.css?compression=gzip)](https://unpkg.com/@vladocar/basic.css@1.0.0/css/basic.min.css)
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.
* Basic Typography.
* Basic Forms.
* 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 12:23:26 +02:00
This project uses the best parts 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
##### Change root css variables with your color palette
```css
:root{
--c1:#0074d9;
--c2:#eee;
--c3:#fff;
--c4:#000;
--c5:#fff;
}
```
##### Adjust the round corners
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?
Use the HTML5 tags selection and aside to make flex grid.
```html
<section>
2020-05-27 12:25:51 +02:00
<aside> 1 </aside>
2020-05-27 01:55:05 +02:00
<aside> 2 </aside>
<aside> 3 </aside>
</section>
<section>
<aside> 1 </aside>
<aside> 2 </aside>
<aside> 3 </aside>
2020-05-27 02:09:56 +02:00
<aside> 4 </aside>
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
```
#### Why use this project?
Instead of using CSS Reset why not just Set the basic css formatting and styling. You can even make some grids with the HTML5 tags. Naturally if you want to build something more complex you should use CSS classes. This project works great in combination with other CSS frameworks.