Contributing

Table of Contents

Submitting Issues

Issues should be created when you find a bug with the project or when you have an enhancement idea you want us to consider implementing.

Contributing Code

Code should be added when you find a bug you want to fix yourself or when you have an enhancement idea that you want to code.

  1. Fork this repo into your local git
  2. Create your freature branch (git checkout -b my-branch)
  3. Make your changes
  4. Commit your changes (git commit -am "Adds a feature that does...")
  5. Push to the branch (git push origin my-branch)
  6. Create a new Pull Request with full remarks on your changes
  7. Pull requests will be reviewed and may be accepted by project maintainers

Framework Structure Guide

One folder per component

// component-name-one/_index.scss
    .main-component {
        background-color: white;
    }
// component-name-one/_index.scss
    .main-component {
        color: black;

        &--modifier {
            color: white;
        }
    }
// component-name-one/_index.scss
    .main-component {
        color: black;

        &--modifier {
            color: white;
        }

        // import component's element partials here
        @import "element-name-one";
        @import "element-name-two";
    }
// component-name-one/_element-name-one.scss
    &__element {
        color: black;
    }
// component-name-one/_element-name-one.scss
    &__element {
        color: black;

        &--modifier {
            color: white;
        }
    }
//_element.scss
&__element {
    color: white;

    .main-component--modified & {
        color: yellow;
    }
}
&__element {
    color: white;

    &--modified {
        color: blue;

        .main-component--modified & {
            color: red;
        }
    }
}