don’t get bootslapped: how to avoid common pitfalls with css frameworks

58
www.blueriver.com DON’T GET BOOTSLAPPED Ronnie Duke Blue River Interactive Group @ronnietheduke @brinteractive

Upload: webvisions

Post on 08-May-2015

369 views

Category:

Technology


4 download

DESCRIPTION

In the good ‘ol days, as a front end developer, we were handed a design and we would build our CSS layout and structure from scratch. Ah, how good it felt to reinvent the wheel every time! Enter the age of CSS frameworks. We started with grid systems such as 960 and Blueprint, which introduced developers to the column & grid format. Now, we have added full layout and UI into frameworks such as Foundation and Bootstrap; the options are endless. While frameworks are a powerful tool for developers, they are not an end-all-be-all guarantee of high-quality implementation. On the other hand, you may think frameworks are bloated, limiting, and difficult to extend; these too, are common misconceptions. Either way, without proper use and strategy, a CSS framework could result in non-scalable websites or applications, and extreme frustrations for the developer.

TRANSCRIPT

Page 1: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

DON’T GET BOOTSLAPPED Ronnie Duke

Blue River Interactive Group @ronnietheduke @brinteractive

Page 2: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Started with HTML in 1999 Started a business in 2006 – got acquired in 2014 Primarily Front End Developer

ABOUT

Page 3: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

WHO I AM NOT

Page 4: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 5: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

A brief history of CSS frameworks Why use frameworks? Common Myths/Misuses

WE WILL BE COVERING

Page 6: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

HOW DID WE GET HERE?

Page 7: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

CSS started from scratch Typically no grid to follow Cross-browser took 10x longer No standardization

PRE-FRAMEWORKS

Page 8: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

To name a few…

Rock HammerLess Framework

Responsive Grid System

Page 9: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

WHY FRAMEWORKS?

Page 10: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Navigation

Grid Layout

Responsive

UI Elements

Heading Hierarchy

Widgets

Page 11: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Rapidly architect your UI Semantic, reusable structure CMS themes

WHY FRAMEWORKS

Page 12: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 13: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 14: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 15: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTHS

Page 16: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTH: If I use a framework,

I have everything I’ll ever need.

Page 17: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 18: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Frameworks aren’t right for everything It’s okay to use your own markup and libraries!

FACT

Page 19: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 20: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTH: Frameworks are too bloated

Page 21: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

You don’t have to use the whole thing! GitHub has all separate LESS, SASS and JS files

FACT

Page 22: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 23: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTH: If I use a framework,

I don’t need to know CSS

Page 24: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 25: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum

Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum

Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum

col-lg-12

col-lg-4 col-lg-4 col-lg-4

Container

col-lg-12

Row

Row

Page 26: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

col-lg-12

Lorem Ipsum Lorem Ipsum Lorem Ipsum

Lorem Ipsum Lorem Ipsum Lorem Ipsum

Lorem Ipsum Lorem Ipsum Lorem Ipsum

col-lg-4 col-lg-4 col-lg-4

Container

Page 27: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 28: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

STOP. BREATHE.

Page 29: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Know the rules before you break the rules Read the documentation

Page 30: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Container

Use browser tools to inspect elements

Page 31: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Column

Page 32: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Container

Column

Page 33: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Row

Page 34: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 35: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

REMEMBER: It’s just CSS!

Page 36: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTH: Frameworks are not customizable

Page 37: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Frameworks are built to be customized!

Page 38: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 39: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

TIP: Use LESS or SASS

lesscss.org sass-lang.com

Page 40: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTH: Frameworks help design the site

Page 41: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 42: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 43: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 44: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Frameworks are not designed to design Start with an original design 80/20 rule

Page 45: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Bootstrap

Page 46: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Foundation

Page 47: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

Bootstrap

Page 48: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Don’t use theme rollers

Page 49: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 50: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 51: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

MYTH: Frameworks take care of

responsive for me

Page 52: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Just because content scales to mobile, doesn’t make it…

Page 53: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
Page 54: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Don’t leave mobile as an afterthought Use the Mobile First approach

Page 55: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

RECAP

Page 56: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Are to get us started, not do the work for us. Aren’t necessary for everything Can be customized Don’t exempt from knowing CSS Are not design Don’t create mobile strategies

Frameworks:

Page 57: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

What questions do you have?

Page 58: Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks

www.blueriver.com

Thank You.

Ronnie Duke Blue River Interactive Group

@ronnietheduke @brinteractive