Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Design Systems When and how much? Diana Mounter | @broccolini
Slide 2
Slide 2 text
Design Systems at GitHub !
Slide 3
Slide 3 text
What is a design system?
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
Style guide, pattern library, CSS framework, or design system? ht @jonrohan
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
! Design Systems at GitHub
Slide 10
Slide 10 text
Rules, constraints, and principles, implemented in design and code.
Slide 11
Slide 11 text
Color Rule: must pass minimum color contrast ratio of 4.5:1 Constraint: number of colors in the palette Principle: color should be used in a meaningful way
Slide 12
Slide 12 text
No content
Slide 13
Slide 13 text
.utilities {…} .Components {…} .custom-styles {…} $foreground $background $border
Slide 14
Slide 14 text
Typography Spacing Color Parts of a system
Slide 15
Slide 15 text
Typography Spacing Color Components Page layouts Parts of a system
Slide 16
Slide 16 text
Typography Spacing Color Components Page layouts Interaction models Voice & tone, words, grammar & mechanics Parts of a system
Slide 17
Slide 17 text
Interrelated independent parts
Slide 18
Slide 18 text
Button Component Interaction model Component Page layout
Slide 19
Slide 19 text
GitHub Design System Documentation (style guide) Prototyping tool Primer CSS Sketch UI Kit
Slide 20
Slide 20 text
GitHub Design System Documentation (style guide) Prototyping tool Primer CSS JS code style Brand guidelines Sketch UI Kit Email toolkit Native UI kit
Slide 21
Slide 21 text
GitHub Design System Documentation (style guide) Prototyping tool Primer CSS JS code style Brand guidelines Sketch UI Kit Email toolkit Native UI kit
Slide 22
Slide 22 text
Why
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
primercss.io github.com GitHub app More CSS Primer modules No docs }
Slide 25
Slide 25 text
Systems weren’t clearly defined (in code or design)
Slide 26
Slide 26 text
2,449 hex values
Slide 27
Slide 27 text
Improve the workflow for designers who code & engineers who build UI
Slide 28
Slide 28 text
Introduce utilities based on systems
Slide 29
Slide 29 text
.p-1 { padding: $spacer-3; } $spacer-3: 16px;
Slide 30
Slide 30 text
8 breaks down, and adds up to whole numbers more easily 16 16 16 16 16 16 16 16 32 32 32 32 64 64 32
Slide 31
Slide 31 text
Typography
Slide 32
Slide 32 text
Behind every part of the system is a micro-system
Slide 33
Slide 33 text
7 different box styles
Slide 34
Slide 34 text
// block .Box {…} // elements .Box-header {…} .Box-body {…} .Box-footer {…} // modifiers .Box-header--blue {…} .Box--large {…}
Slide 35
Slide 35 text
"If I’m reading html, I want to know what the css is going to do.” Adam Morse, CSS and Scalability
Slide 36
Slide 36 text
Saved!
Slide 37
Slide 37 text
Documentation
Slide 38
Slide 38 text
Feedback loop HTML CSS I want to make a change!
Slide 39
Slide 39 text
Feedback loop HTML CSS I want to make a change!
Slide 40
Slide 40 text
A good system empowers designers to code, and empowers engineers to design.
Slide 41
Slide 41 text
• Highly reusable and flexible styles • A clear and consistent naming convention • Up-to-date and well written documentation
Slide 42
Slide 42 text
“I feel like I have super powers and don’t want everyone else to realize that I’m totally faking.”
Slide 43
Slide 43 text
Scaling the system
Slide 44
Slide 44 text
What if you didn’t have to write all that markup either?
Slide 45
Slide 45 text
Primer CSS New 38% .erb files using Primer on dotcom
Slide 46
Slide 46 text
GH
Slide 47
Slide 47 text
GH R J R J J J J R R R J J R R R J
Slide 48
Slide 48 text
GH R J ? J ? J J R ? R J J R R R J
Slide 49
Slide 49 text
System Code Design programs Documentation
Slide 50
Slide 50 text
Source of truth Code Design programs Documentation
Slide 51
Slide 51 text
Distill the system into it’s purest form
Slide 52
Slide 52 text
When and how much?
Slide 53
Slide 53 text
When? No System It really hurts not having one
Slide 54
Slide 54 text
No system Material Design We need a design system! Started to get painful
Slide 55
Slide 55 text
“…the inefficiencies that a medium [sized] team can roll with are catastrophically wasteful to a team of our size” Jon Gold, Painting with Code
Slide 56
Slide 56 text
This should be solved once Component Interaction model Component Page layout
Slide 57
Slide 57 text
You can start with systems
Slide 58
Slide 58 text
Design systems should be built for change.
Slide 59
Slide 59 text
When? Now! How much? As much as you need!
Slide 60
Slide 60 text
Thank you Diana Mounter | @broccolini