drupalcon austin 2014 implement foundation or other front-end frameworks in your theme

26
astonishdesign.com @astonish_design | #drupalcon Implement Foundation or Other Front-End Frameworks in Your Theme James Moughon LEAD DEVELOPER

Upload: james-moughon

Post on 05-Jul-2015

118 views

Category:

Software


0 download

DESCRIPTION

How do you get popular frameworks such as Foundation or Bootstrap to work with your theme? What about features that don't work right away? Are sub-themes a good approach? In this session we will cover an opinionated and tested approach to implementing themes with front-end frameworks. The talk will use Foundation for examples, but the principle can be applied to other frameworks, such as Bootstrap. KEY TAKEAWAYS: Understanding the purpose of front-end frameworks. How to go from prototype to theme. How to implement the framework's features. Overriding Drupal's defaults to work with the framework. You don't need the Kitchen Sink: Thoughts on features and performance. A note about sub-theming. ABOUT THE SPEAKER: James Moughon is a Developer at Astonish Design. James implements unique solutions with Drupal and other technologies. He has successfully implemented Foundation and other front-end frameworks on many projects.

TRANSCRIPT

Page 1: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Implement Foundation or Other Front-End Frameworks inYour Theme

James MoughonLEAD DEVELOPER

Page 2: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Key Points• Prototyping

• What is a front-end framework?

• What is Foundation?

• Performance matters

• Planning out the theme

• Using Foundation with Drupal

• Tools of the trade

• Handling updates

Page 3: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

The Problem

Page 4: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Prototyping Focus

Page 5: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Prototyping Outcome

Page 6: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Example Prototypes

[demo]

Page 7: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Framework

Page 8: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Framework

“Framework: the basic structure of something or a set of ideas or facts that provide support for something.”

– Merriam-Webster

Page 9: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Frameworks in the Wild

[bootstrap][foundation]

http://trends.builtwith.com/docinfo/Twitter-Bootstraphttp://trends.builtwith.com/docinfo/Foundation

46,000 Installations52,000 downloads on d.o

2,500,000 Installations154,000 downloads on d.o

Page 10: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Usage in Drupal

[bootstrap]

[foundation]

Page 11: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Foundation

Page 12: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

I have a story for you…

Page 13: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Mobile Latency

http://chimera.labs.oreilly.com/books/1230000000545/ch08.html#ELIMINATE_KEEP_ALIVES

Page 14: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Connection Persistence

http://chimera.labs.oreilly.com/books/1230000000545/ch07.html#MOBILE_POWER_REQUIREMENTS

Page 15: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Planning the Implementation

Page 16: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Used vs. Not UsedUsed

Alerts ✓Block Grid

Breadcrumbs

Buttons ✓Button Groups

Dropdown buttons

Split Buttons

Clearing

Forms ✓Dropdowns

Flex Video

Joyride

Keystroke

Labels

Used

Magellan

Orbit

Pagination ✓Panels

Pricing Tables

Progress Bars

Reveal

Sliders

Accordian ✓Tabs ✓Side Nav

Top Bar / Nav

Tables ✓Typography ✓

Page 17: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Foundation + Drupal

+

Page 18: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

DIY: Foundation + Drupal

+

Page 19: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Tools of the Trade

Page 20: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

OptionalSass

Page 21: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Grunt + Compass

Page 22: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Grunt + Uglify.js

Page 23: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Approach to Upgrades

Page 24: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Let’s Recap

Page 25: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme

astonishdesign.com@astonish_design | #drupalcon

Questions?Comments?

[email protected]

Implement Foundation or Other Front-End Frameworks inYour Theme

James MoughonLEAD DEVELOPER

@jmoughon

Page 26: DrupalCon Austin 2014 Implement Foundation or Other Front-End Frameworks in Your Theme