• Stars
    star
    8,047
  • Rank 4,592 (Top 0.1 %)
  • Language MDX
  • License
    MIT License
  • Created almost 5 years ago
  • Updated 11 months ago

Reviews

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

Repository Details

A collection of popular layouts and patterns made with CSS. Now it has 100+ patterns and continues growing!

CSS Layout

A collection of popular layouts and patterns made with CSS:

  • ๐ŸŽ‰ Zero dependencies
  • ๐ŸŽ‰ No frameworks
  • ๐ŸŽ‰ No CSS hacks
  • ๐ŸŽ‰ Real use cases
  • Good practices (coming soon)
  • Accessibility Support (coming soon)

Why

Being a front-end engineer, I have to deal with a lot of layouts and components. There are a lot of CSS frameworks out there that provide popular layouts/components but I usually don't want to include all of them in my project.

So I collect most popular layouts and components that can be built with pure CSS. They are powered by modern CSS features such as flexbox and grid.

They are great starting points to be picked and customized easily for each specific need. By composing them, you can have any possible layout that exists in the real life.

Running it on local

  • Clone the project:
$ git clone https://github.com/phuocng/csslayout
  • Install the dependencies:
$ cd csslayout
$ npm install
  • Run it on the local:
$ npm run start

Visit http://localhost:8081 to see it in action.

Contributing

PRs are welcomed. If you think there are any missing useful layouts or patterns, please create an issue or submit a PR.

It's important to note that you should run the following command to lint the code:

$ npm run lint

If there is any issue, it will be logged in the tslint.log file.

About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge.

Be my friend on

More Repositories

1

1loc

What's your favorite JavaScript single LOC (line of code)?
MDX
6,756
star
2

html-dom

Common tasks of managing HTML DOM with vanilla JavaScript. Give me 1 โญif itโ€™s useful.
MDX
6,512
star
3

this-vs-that

Understanding the difference between หหห and หหห in front-end development
MDX
1,470
star
4

frontend-tips

Super tiny, quick tips, tricks and best practices of front-end development
MDX
619
star
5

css-animation

Popular CSS animation showcases. You don't need a CSS animation library for them.
MDX
99
star
6

react-drag-drop

Master the art of drag and drop in React
TypeScript
71
star
7

responsive-page

Collection of patterns to create a responsive website
TypeScript
63
star
8

mirror-a-text-area

Enhancing user experience through text area mirroring
HTML
62
star
9

fake-numbers

Generate fake, valid numbers. Check if a number is valid. Support a lot of different numbers: Credit card, EAN, ISBN, RTN, VIN, etc.
TypeScript
60
star
10

cross-browser

Techinques to deal with cross browser issues on the front-end side
MDX
31
star
11

placeholders

SVG-based placeholders in web components
TypeScript
28
star
12

master-of-react-ref

Your complete guide to mastering the use of "ref" in React
TypeScript
22
star
13

intersection-observer-examples

Practical, real world examples of Intersection Observer
15
star
14

frame

An iframe wrapper that resizes based on its content automatically
TypeScript
12
star
15

get-svg

A Chrome extension to download SVG from a webpage
JavaScript
12
star
16

javascript-proxy

Practical examples of using JavaScript Proxy
MDX
11
star
17

css-grid

Discover how to use CSS grid layout with real-life examples
9
star
18

phuocng

7
star
19

lit-web-component-aha

Aha moments when working with the Lit library
3
star