• Stars
    star
    679
  • Rank 66,532 (Top 2 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Basic.css - Classless CSS Starter File

License MIT Gzip Size

Basic.css

Classless CSS Starter File


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.

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.

Demo: https://vladocar.github.io/Basic.css/

This project uses the best elements from my previous projects:

https://github.com/vladocar/Basic-CSS-Typography-Reset
https://github.com/vladocar/infinity-css-grid
https://github.com/vladocar/Simple-Button

You can change root css variables with your color palette:
:root {
  --c1:#0074d9;
  --c2:#eee;
  --c3:#fff;
  --c4:#000;
  --c5:#fff;
}
Or adjust the round corners

By default are 8px, use --rc: 0px; if you don't like round corners.

:root {
  --rc: 8px;
}
Override the colors in the dark mode:
@media (prefers-color-scheme: dark) {
	:root {
	  --c2:#333;
	  --c3:#1e1f20;
	  --c4:#fff;
	}
}
How you can use the infinity flex grid?

Use the HTML5 tags section and nested section to make flex grid.

<section>
	<section> 1 </section>
	<section> 2 </section>
	<section> 3 </section>
</section>
<section>
	<section> 1 </section>
	<section> 2 </section>
	<section> 3 </section>
	<section> 4 </section>
</section>

Demo: https://vladocar.github.io/Basic.css/grid.html

Use the HTML5 tags selection and article to make cards.

<section>
    <article> 1 </article>
    <article> 2 </article>
    <article> 3 </article>
</section>

Demo: https://vladocar.github.io/Basic.css/cards.html

How to use this project?

Simply download and personalize the basic.css file.

Or

npm i @vladocar/basic.css

Why should you use this project?

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.

You can also check up some other Classless CSS Frameworks.

Bonus comic:

Comic xkcd style

Modified text from the original https://xkcd.com/2309/

More Repositories

1

screenshoteer

Make website screenshots and mobile emulations from the command line.
JavaScript
1,675
star
2

nanoJS

Minimal standalone JS library for DOM manipulation
JavaScript
653
star
3

Hartija---CSS-Print-Framework

Universal CSS for web printing
HTML
529
star
4

CSS-Micro-Reset

Minimal barebone CSS Reset
CSS
357
star
5

SMART-CSS-GRID

SMART CSS GRID - CSS Framework
HTML
307
star
6

femtoJS

femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
JavaScript
141
star
7

Box-CSS-Framework

Box - CSS Framework
HTML
138
star
8

Minimal-Notes

Minimal Notes web app build with Vue.js
HTML
127
star
9

infinity-css-grid

Fluid Flex Solution for making infinite grid columns.
HTML
120
star
10

flexy

Flexy is minimal CSS framework made with Flex
HTML
115
star
11

1-line-CSS-Framework

One Line CSS Framework
HTML
69
star
12

picoCSS

picoCSS - really small JavaScript Framework
HTML
67
star
13

60gs

60GS - 60 Columns Grid System based on CSS Grid Layout
HTML
65
star
14

ramd.js

ramd.js JavaScript library for making web applications.
HTML
63
star
15

Katana

Katana is CSS Layout System made with Flexbox
HTML
58
star
16

keywordsextract

keywords-extract - Command line tool extract keywords from any web page.
JavaScript
55
star
17

CSS-Mini-Reset

CSS Mini Reset
CSS
52
star
18

AutoObjectDocumentation

Auto Object Documentation - JavaScript
JavaScript
51
star
19

Flex-One

1 CSS Class Layout System made with Flex
HTML
49
star
20

Basic-CSS-Typography-Reset

Essential CSS Typography Set
HTML
47
star
21

Scribble-Font

Scribble Font for Prototyping & Wireframing
HTML
47
star
22

PDFSave

Convert websites into readable PDFs
JavaScript
46
star
23

CSS-Mobile-Reset

36
star
24

boilerplate-readme-template

Boilerplate README.md Template for GitHub or GitLab use.
36
star
25

floaty

CSS Float Based Layout System
HTML
35
star
26

HTML-Lorem-Ipsum-Crash-Test

HTML Lorem Ipsum Crash Test for testing your CSS
HTML
35
star
27

HTML5-Mini-Template

HTML5 Mini Template
35
star
28

o---JS-Library-for-Object-Manipulation

o - JS Library for Object Manipulation
JavaScript
31
star
29

CSS3-Fancy-Box

CSS3 Fancy Box
HTML
27
star
30

Two-Lines-CSS-Framework

Two Lines CSS Framework
17
star
31

Foxy-CSS-Framework

Foxy CSS Framework
16
star
32

CSS3-Chat-Bubble

CSS3 Chat Bubble
9
star
33

Font-Pairing-Glyph-Comparison-Tool

Web Template for Glyph Comparison
HTML
7
star
34

Simple-Button

Simple CSS Button - Starter Kit for CSS Buttons
HTML
4
star
35

Spacestone

CLI for tesseract.js
JavaScript
2
star
36

emastic---css-framework--beta3--0.8

Emastic is small, fluid, em based CSS Framework
2
star
37

npm-I-love-you-too

npm love us. we love it back.
2
star
38

foam-template

CSS
1
star
39

Pangram-Proveruvac-Makedonski

Панграм проверувач
HTML
1
star
40

font-pairing

Font Pairing
HTML
1
star
41

Child-Selector-System-CSS_Framework

Child Selector System is experimental CSS Framework that use child selectors for making multiple simple (column) grid.
HTML
1
star