fun with css frameworks

23
Fun with CSS Frameworks Or, everything you wanted to know about CSS frameworks but were afraid to ask... Image Source Http://9circuits.com/blog/wp-content/uploads/hamstermachine.jpg

Upload: mario-noble

Post on 11-Apr-2017

402 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Fun with css frameworks

Fun with CSS FrameworksOr, everything you wanted to know about CSS frameworks but were afraid to ask...

Image Source Http://9circuits.com/blog/wp-content/uploads/hamstermachine.jpg

Page 2: Fun with css frameworks

Who the heck are you? I’m Mario NobleWeb DesignerFront end developerUX DesignerLos Angeles cliche

Page 3: Fun with css frameworks

What we’ll be covering

What is a CSS Framework?

Why use one?

Pros and Cons of using frameworks.

What’s usually in a framework

Let’s dive into a little hands on

Choosing the right one for you and a bit of theory background

Q&A

Image Source Http://media-cdn.tripadvisor.com/media/photo-s/02/fa/13/9c/campo-rico-ziplining.jpg

Page 4: Fun with css frameworks

What the heck is a CSS Framework?

CSS - It’s a starting CSS (Cascading Style Sheet) structure that’s meant to be extended by someone else.

JS - It may also have additional components, graphics and browser compatibility fixes.

Docs - It has documentation that others can refer to when working with it. Image Source Https://www.youtube.com/watch?v=8h4Hr1e2IP4

Page 5: Fun with css frameworks

Basically, it’s a DIY kitGet ready to unbox!

Page 6: Fun with css frameworks

Why the heck should I use one?

It gets you up and running quickly.

Enhanced teamwork

Scalability and flexibility

Real world tested

Feature goodies

Page 7: Fun with css frameworks

Luke, feel the Force Do not turn to the inline css side.

Page 8: Fun with css frameworks

What are the Pros and Cons?Help or hinder your process?

Page 9: Fun with css frameworks

ProsBetter team member on boarding

Documentation written (so you don’t have to)

Increased capabilities

Consistent naming and conventions

Community bugfixes

Page 10: Fun with css frameworks

ConsCan be a “cookie cutter” look and feel.

Sometimes a steep learning curve

Bloated code offering more than you need.

Might be wrong

You didn’t do it!

Page 11: Fun with css frameworks

What’s in a typical CSS Framework?Let’s pop the hood

Page 12: Fun with css frameworks

CSS (of course)Basic CSS files

May include “browser fixes” like normalize.css, reset.css, etc.

SASS/SCSS or LESS authoring files

Minified CSS

A particular structure and aesthetic choices out-of-the-box

Grid system, Responsive styling, Utility classes

Page 13: Fun with css frameworks

Modules / Components / Patterns

Pieces of CSS that are meant to work together to create a web component or interface like a nav bar, side bar, carousel, etc.

JavaScript that enhances or enables many patterns

Task runner files like Grunt/Gulp to auto compile or setup new projects

JavaScript libraries like jQuery, Respond.js and Modernizr that enable behaviors or provide fallbacks for unsupported features across browsers

Resources such as web icons and animations

Page 14: Fun with css frameworks

Documentation and Community

Extensive documentation

Community forums

“Wisdom of the crowds”

Collaborative environment

New team members Image Source Http://www.science20.com/alpha_meme/democracy_and_wisdom_crowds-83550

Page 15: Fun with css frameworks

A few frameworks

Twitter Bootstrap

Zurb Foundation

Skeleton

Pure

Ink

Semantic UI

Page 16: Fun with css frameworks

If you use pre-made themes, you may be using a framework... now.but just don’t know it.

Page 17: Fun with css frameworks

You could also make your own...The Joy of Crafting your own stuff to share.

Copyright Nick Offerman Aka “Ron Swanson”- Image Source - Https://wiggersfurniture.wordpress.com/

Page 18: Fun with css frameworks

Let’s get a little hands on!It’s demo time. Time to get down and dirty.

Image Source Http://www.unfinishedman.com/what-women-really-think-men-benefits-car-maintenance/

Page 19: Fun with css frameworks

How do you choose a framework?How fast, cheap and good does your project need to be?

How many people are on your team?

What are your skill sets?

How much time do you have to test?

How custom/bespoke does your project need to be?

How much does the project need to scale over time?

Page 20: Fun with css frameworks

Who took the Cascading out of my CSS! A short digression...

SMACSS

BEM

Docssa

Web Components

Angular.js, React.js and their kind...

Page 21: Fun with css frameworks

Next StepsDownload and try a simple CSS framework

Play around with it on a basic no pressure project

Learn some SASS/SCSS or LESS. Just the basics.

Get a CSS complier like Scout App or Codekit

Read some framework documentation a bit at a time

Learn a tiny bit of jQuery

Have fun!

Page 22: Fun with css frameworks

What we went overWhat is a CSS Framework and why would you use one

Some Pros and Cons

Some nitty gritty pieces

Got a little hands on

Some guidance on choosing the right one for a project

Some theory

Q&A

Page 23: Fun with css frameworks

Q&A“Yeah, well, you know, that’s just, like, your opinion, man.” — The Dude