Using style guides
- Andy Clark
Pattern Lab
Component Guide
Modular Design Guide
Front-End Design Guide
+ consistency
+ easier to test
+ better workflows
+ reference / documentation over time
- time consuming
- too abstract
- no best practices established
+ look at the methodology of Atomic Design
by Brad Frost
Atomic Design by Brad Frost
Styleguide
The smallest possible element
Label
Button
Input Field
A combination of atoms
A combination of atoms and molecules
Aa Bb Cc
Aa Bb Cc Dd
" I really like the color, but can you change it? "
"Please just use Comic Sans. We need it look 'fun'."
"Can you move the heading 10px down?"
Create Atoms an Molecules in HTML and CSS
by reference to the wireframes and the design sheet
What to use:
.button {
padding: 13px 20px;
width:100%;
border:none;
font-family: $main-font;
border-radius: $border-radius;
box-shadow: 0 2px 3px rgba($color-darkgrey, 0.4);
@include base_button($white, $color-primary);
}
.button--secondary {
@include base_button($color-darkgrey, $color-lightgrey);
}
Stylesheet: _button.scss
Buttons //Markdown file for buttons
=======
```
<button class="button">Button</button>
```
```
<button class="button button--secondary">Button</button>
```
Markdown: _button.md
Workflow Summary
Styleguide File structure Cropster Hub
New to code?
Thanks for listening.