Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 1.06 KB

README.md

File metadata and controls

71 lines (56 loc) · 1.06 KB

BEM-Design-System

This repository is a collection of vanilla HTML/CSS components written using the BEM methodology for Hactoberfest.

How to participate

Initial Setup

Fork this repository

First Pull Request

  1. Write a comment and <section> tag in the index.html file:
<!-- 
  Username 
  Description of component
  Available modifiers
-->
<section class="my-block">
   ...
</section>
  1. Create a pull request for your HTML!

Second Pull Request

  1. Write your CSS block ruleset in style.css:
/* ====================
   My Component
======================*/

/* Block */
.my-block{
  ...
}
  1. Create a pull request for your CSS!

Third Pull Request

  1. Write your CSS __elements in style.css:
/* Elements */
.my-block__elem1{
  ...
}

.my-block__elem2{
  ...
}

...
  1. Create a pull request for your CSS!

Fourth Pull Request

  1. Write your CSS --modifiers in style.css:
/* Modifier one */
.my-block--mod1{
  ...
}

.my-block--mod1 .my-block__elem1{
  ...
}

...
  1. Create a pull request for your CSS!