2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

64
No CSS Needed: A Sitebuilders' Guide to Theming @sparklingrobots

description

Talk by Tara King

Transcript of 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Page 1: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

No CSS Needed: A Sitebuilders' Guide to

Theming

@sparklingrobots

Page 2: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Hi, I'm Tara.

Tara King

@sparklingrobots

Sparkling Robots Design

Cruiskeen Consulting

Page 3: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Our journey:

1) Why is theming so hard, and how are modules easier?2) Which modules can help with theming?3) How can you start learning more?4) How can Drupal help people like us, and how can we help Drupal?

Page 4: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Our journey:

1) Why is theming so hard, and how are modules easier?2) Which modules can help with theming?3) How can you start learning more?4) How can Drupal help people like us, and how can we help Drupal?

Page 5: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Why is theming so hard?

php, CSS, HTML, SASS, SMACSS, jQuery, mobile-friendly ...and more

Page 6: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

How are modules easier?

CHEAP, FAST, OR GOOD:CHOOSE TWO.

It's fast! It's cheap! It's not terrible!

Page 7: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Why are modules easier?

Modules get you 90% of the way toward a theme much faster than learning front-end development gets you 100% of the way.

Page 8: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Why is this better?

● It's the Drupal way! You take advantage of contributed code, it's easier to maintain, and it's free.

Page 9: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Why Drupal?

● Views● Time-sensitive content● Media handling● ...Overall flexibility!

Page 10: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Our journey:

1) Why is theming so hard, and how are modules better?

2) Which modules can help with theming?3) How can you start learning more?4) How can Drupal help people like us, and how can we help Drupal?

Page 11: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Modules are easy.1) Color2) Font-your-face 3) Background Images4) Display Suite5) Gallery Formatter/

Lightbox2

Page 12: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Elements of Design

1) Color2) Typography3) Texture

source: some DrupalConPDX session

Page 13: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color

"The Color module allows you to easily change the color of links,

backgrounds, text, and other theme elements."

source: https://drupal.org/documentation/modules/color

Page 14: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color

"I have tried for weeks to make garland just be black. I am new also but I tried many things. I have seen others looking for the same. I can tell you that there is not likely an easy answer.... I kept thinking I was very close, but I give up. Too much wasted time. "

-darrellleerogers on drupal.org

Page 15: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Let's recolor Bartik!

Page 16: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Let's recolor Bartik!

The old way: Use search and replace in the

subtheme to put your new colors in the theme files. Grow

frustrated when you realize you missed a slight variant.

Or....learn SASS.

Page 17: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color: the new way.

Page 18: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color!

Page 19: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color?

Page 20: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color help!

www.colorschemedesigner.com

Page 21: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Color-enabled themes.

-Bartik (D7 default)-Tej (Omega subtheme) drupal.org/project/tej

-Sky drupal.org/project/sky

-Corporate Clean drupal.org/project/corporateclean

-Gratis drupal.org/project/gratis

-Mix and Match drupal.org/project/mix_and_match

Page 22: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Elements of Design

1) Color2) Typography3) Texture

source: some DrupalConPDX session

Page 23: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face

Typography

"@font-your-face provides an administrative interface for browsing and applying web fonts from a variety of sources."

source: https://drupal.org/project/fontyourface

Page 25: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

The old way: Use the CSS @font-face

rule.

Let's use a new typeface!

Page 26: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face

Page 27: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face

Page 28: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face:Group selectors

Page 29: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face

Page 30: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face: Custom Selectors

Page 31: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face: Custom Selectors

Page 32: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

@font-your-face

Page 33: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Where we started:

Page 34: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Where we are now:

Page 35: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Elements of Design

1) Color2) Typography3) Texture

source: some DrupalConPDX session

Page 36: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Background Images

Texture

"Background images allows users to add background images to html elements on pages of the site."

source: https://drupal.org/project/bg_image

Page 37: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Elements of Drupal Design

1) Color2) Typography3) Texture4) Layout

source: some DrupalConPDX session and me

Page 38: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Layout

1) Display Suite2) Gallery Formatter/ Lightbox2

Page 39: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Layout

1) Display Suite2) Gallery Formatter/ Lightbox2

Page 40: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Display Suite

"Display Suite allows you to take full control

over how your content is displayed using a

drag and drop interface. Arrange your

nodes, views, comments, user data etc. the

way you want without having to work your

way through dozens of template files. "

source: https://drupal.org/project/ds

Page 41: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Default Layout.

Page 42: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Default Display Options.

Page 43: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Display Suite.Pick your layout:

Page 44: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Display Suite. New options in "Manage display":

Page 45: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Display Suite.

Page 46: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Display Suite.

Free intro to Display Suite!

drupalize.me/series/display-suite-drupal-7

Kristof De Jaeger

Page 47: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Layout

1) Display Suite2) Gallery Formatter/ Lightbox2

Page 48: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Gallery Formatter

"Gallery formatter will turn any

image field into a jQuery Gallery."

source: https://drupal.org/project/galleryformatter

Page 49: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Gallery Formatter

Page 50: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Gallery Formatter

Page 51: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Lightbox2

"The Lightbox2 module overlays

images on the current page."

source: https://drupal.org/project/lightbox2

Page 52: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Gallery Formatter + Lightbox2

Page 53: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Our journey:

1) Why is theming so hard, and why do I think modules are better?2) Which modules can help with theming?

3) How can you start learning more?4) How can Drupal help people like us, and how can we help Drupal?

Page 54: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Advanced Beginner Tools

● Omega

● Panels

● Context

Page 55: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Advanced Beginner Tools

Omega - "Omega 3 is best suited to those who

like to build their themes through the user

interface. The theme’s layout can be modified

through the theme settings and then

contextually changed (different layouts/settings

for various portions of a site)."

source: https://drupal.org/project/omega

Page 56: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Advanced Beginner Tools

Panels - "The Panels module allows a site

administrator to create customized layouts for

multiple uses. At its core it is a drag and drop

content manager that lets you visually design a

layout and place content within that layout."

source: https://drupal.org/project/panels

Page 57: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Advanced Beginner Tools

Context - "Context allows you to manage contextual

conditions and reactions for different portions of your

site. For each context, you can choose the conditions

that trigger this context to be active and choose

different aspects of Drupal that should react to this

active context."

source: https://drupal.org/project/context

Page 58: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Our journey:

1) Why is theming so hard, and why do I think modules are better?2) Which modules can help with theming?3) How can you start learning more?

4) How can Drupal help people like us, and how can we help Drupal?

Page 59: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Drupal is pretty

confusing...

Page 60: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

...but it's also pretty great.

source: me

Page 61: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Drupal has 27,782 developers.

Let them help you!

source: drupal.org

Page 62: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Confession time.

Page 63: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

??

Page 64: 2013 Twin Cities Drupal Camp - No CSS Needed: A Sitebuilders' Guide to Theming

Thank you.@sparklingrobots

[email protected]