Skip to content

Instantly share code, notes, and snippets.

View rykala79's full-sized avatar

Rykala Tomasz rykala79

View GitHub Profile
@rykala79
rykala79 / index.html
Created May 19, 2022 10:16
Star Tunnel
<div id="sketch" class="relative w-screen h-screen bg-black"></div>
@rykala79
rykala79 / CSS-Best Practices.md
Created May 5, 2022 20:12 — forked from MWins/CSS-Best Practices.md
CSS best practices

What CSS best practices should I follow ?

HTML best practices Depends. How far down the rabbit hole do you want to go ?

Just need something to look good : use a frontend framework like foundation or bootstrap, won't learn much about CSS. Short list of Front End Frameworks

Surface level : work general to specific. Comment the sections of the CSS. Use a reset or normalizer. Work on patterns, use classes over IDs for reuse. CSS Resets - includes normalize.css Don't have links for the other parts. see below

Little bit deeper : Look into BEM or OOCSS. Those stand for Block Element Modifier and Object Oriented CSS. Two popular methodologies for CSS. Also SMACSS.