SlideShare uma empresa Scribd logo
1 de 57
Baixar para ler offline
Get Ready ...
To prepare for this seminar you should download a copy of the
following themes:
●   http://drupal.org/project/ninesixty
●   http://drupal.org/project/domicile


If you need to leave:
●   This session is recorded. If the recording fails, this is a similar
    presentation to the one I gave at DrupalCon London.
●   The information is available in: Drupal User's Guide or workbooks
    at Designtotheme.com.
●   Slides are available from: slideshare.net/emmajane
Drupal Trainer




 www.sitebuildingextravaganza.com
Workbook Author
            www.designtotheme.com
Discount code available at the end of the webinar.
Book (Co)Author
Agenda
Theme Building                Summary
●   Theming philosophy        ●   Questions/Answers
●   Process                   ●   Discount Coupons
●   Case study: Domicile      20 minutes
35 minutes
Theming Philosophy
Lazy Front End Developer
Working With Others
Produces More Honey
Theming by tpl.php Files
                  Wastes Your Time
node.tpl.php

                                              field.tpl.php


jplayer.tpl.php




                             page.tpl.php
Take Only Pictures, Leave Only Footprints
Theme Only What You Need To
   UX
                                       UX




             Minimum Viable Theme

        UX




                       UX
Budget-Appropriate Web Design
●
    Know your Drupal toolkit. Know your budget.
●
    Focus on the biggest elements first.
●   Work closely with your designer and your client to
    make sure you get the important things right.
●
    Theme with the markup you have, not the markup
    you'd like to have.
●
    Pixel perfect design is for print. Get over it.
Accessible Web Design
“Accessible web design refers to the philosophy and
practice of designing web pages so that they can be
navigated and read by everyone, regardless of location,
experience, or the type of computer technology used.”
Australian Human Rights Commission

 ●   Know your guidelines (508 or WAI).
 ●   Use a checklist.
 ●   Use an automated testing suite.
 ●   Test with users.
http://www.designtotheme.com/tutorials/automated-accessibility-testing
Responsive Web Design
“Any approach that delivers elegant visual
experiences regardless of the size of the user’s
display and the limitations or capabilities of the
device” zeldman.
●
    Read: http://tinyurl.com/responsive-article
●
    Buy (and read): http://tinyurl.com/responsive-book
●
    Watch: http://tinyurl.com/pathtomobile
●
    Use: http://drupal.org/project/omega

(Eventually “all” base themes will be responsive.)
Theming Goals
●
    Budget-appropriate.
●   Accessible.
●   Responsive.
Process
Steps to Making a Theme
1. Communicate with your whole team.
2. Plan your data structure.
3. Use wire frames to prove what you're saying about how the
   site ought to be built.
4.Build the site (ignore the theme).
5. Convert your wire frame to its grid layout.
6.Build out the HTML fragments in the relevant tpl.php files.
  Substitute CSS effects for PSD effects where possible.
7. Apply your theme to the site.
8.Refine as necessary based on the UX.
Data Model




    http://www.flickr.com/photos/alan-dean/3513723498
Wire Frames
Begin Site Building
(This may affect site design decisions based on the
theming goals of budget-appropriate, accessible and
responsive.)
Grid Framework




http://960.gs/
CSS (Grid) Framework
Base Theme




●   drupal.org/project/ninesixty
●   drupal.org/project/fusion
●   drupal.org/project/zen
To Build a Successful Theme
You must:
●   Know your data model.
●   Create wire frames describing page elements.
●   Identify the modules, templates and configuration
    responsible for every element described in your wire
    frames.
●   Use a grid framework in both your design files and
    Drupal templates.
●   Use a base theme that meets your web design goals.
Case Study
Build me a theme!
Steps to MVT
1. Prepare design.
2. Create theme shell (text files for Drupal).
3. Create regions.
4.Extract and embed images.
5. Launch MVT.
Domicile
●
    Designed by Betty
    Biesenthal.
●   Themed by Emma
    Jane Hogbin (and the
    base theme
    NineSixty).
●   Code available from
    http://drupal.org/project/domicile
Domicile Theme
Grid Overlay
Wire Frame for NineSixty Sub-Theme
Create a Theme Shell

sites/example.com/themes/theme_name
   theme_name.info
   page.tpl.php



Also: sites/all/themes/base_theme
Take a peek
1. Download the theme:
   http://drupal.org/project/domicile
2. Unzip the package.
3. Look at the files inside.
domicile.info
name = D7SBE - Domicile
description = A three-column design by Design House (www.design-
house.ca) and themed by Design to Theme.
screenshot = screenshot.png
core = 7.x
engine = phptemplate
base theme = ninesixty


; Stylesheets.
; Regions
; Features
Build page.tpl.php from NineSixty
Identify These
  Shapes in
   Domicile
Define Regions and Blocks
Extract Images from the PSD
Hard Code Fixed Images
Minimum Viable Theme
Steps to MVT Summary
1. Prepare design.
2. Create theme shell (text files for Drupal).
3. Create regions.
4.Extract and embed images.
5. Launch MVT.
What's Wrong?
Pink sherbert photography http://www.flickr.com/photos/pinksherbet/3372060864/
Theme by UX
Locate “problem” areas and fix with:
●   The administrative interface.
●   CSS enhancements.
And if you need more control add:
●   Helper modules.
●   Theme template files.
●   Theme functions.
Administrative Interface
CSS Enhancements




Relevant HTML      Page element    CSS styles
source
Apply Generic Styles
Apply Build-Specific Styles
Site Building/Theming Helpers
Themer Tools             Site Building
●   Devel                ●   Views
●   Theme Developer      ●   Nodes in Block
●   Firebug for Drupal   ●   Menu Block
Layout                   ●   Entity View Mode
●   Panels               ●   Media
●   Context              ●   jPlayer
●   Display Suite        ●   etc
tpl.php
●
    page.tpl.php
●   node.tpl.php
●   page-front.tpl.php
●   block.tpl.php
●   Error pages: 403, 404, 500
Theme Functions
Finally...and only if you really must:
●   Preprocess functions.
●   Form altering functions.
●   Functionality-based PHP snippets.
●   (etc)
Domicile: the theme
Theme Building Summary
Minimum Viable Theme                 Theme by UX
1. Prepare design.                   6. Administrative interface
2. Create required theme files.      7. CSS enhancements
3. Create regions in page.tpl.php.   8. Module helpers
4. Extract and embed images.         9. tpl.php files
5. Launch MVT.                       10.Theme functions
PSD to Theme Summary
●   Plan your theme from the data model out, not the template files in.
●   Use relevant Drupal modules to break up content and display it in
    relevant locations.
●   Extract only the images and colours you need from your PSD file.
●   Using your grid, rebuild your design as a minimum viable theme in the
    fewest possible tpl.php files.
●   Fix any outstanding problems according to the expected user
    experience with the site.
●   Test your site using automated testing suites for cross-browser and
    accessibility issues. Then test again using as much real content and as
    many real people as you can afford.
●   Cross your fingers and launch.
Discounts on Practical Drupal Guides



                                     www.designtotheme.com
                                       Save 35% on all titles.
                                   Discount Code: ACQUIA-P2T
                                      1. PSD to Drupal Theme
                                      2. SBE Guide: Micro Site




      www.informit.com
SAVE 35% on Drupal User's Guide.
                                     www.drupalwatchdog.com/read
Discount Code: DRUPALUSER
                                   Issue 1: Free PSD to Theme article.
Stay in Touch
●
    @emmajanedotnet
●   emma@designtotheme.com
●   www.designtotheme.com

Mais conteúdo relacionado

Mais de Emma Jane Hogbin Westby

Was It Something I Said? The Art of Giving (and getting) A Critique
Was It Something I Said? The Art of Giving (and getting) A CritiqueWas It Something I Said? The Art of Giving (and getting) A Critique
Was It Something I Said? The Art of Giving (and getting) A CritiqueEmma Jane Hogbin Westby
 
Work Flow for Solo Developers and Small Teams
Work Flow for Solo Developers and Small TeamsWork Flow for Solo Developers and Small Teams
Work Flow for Solo Developers and Small TeamsEmma Jane Hogbin Westby
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoEmma Jane Hogbin Westby
 
Selling Hopes and Dreams - DrupalCamp Toronto
Selling Hopes and Dreams - DrupalCamp TorontoSelling Hopes and Dreams - DrupalCamp Toronto
Selling Hopes and Dreams - DrupalCamp TorontoEmma Jane Hogbin Westby
 
There's a Module for That, MIMA Summit 2010
There's a Module for That, MIMA Summit 2010There's a Module for That, MIMA Summit 2010
There's a Module for That, MIMA Summit 2010Emma Jane Hogbin Westby
 
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Intro to Theming Drupal, FOSSLC Summer Camp 2010Intro to Theming Drupal, FOSSLC Summer Camp 2010
Intro to Theming Drupal, FOSSLC Summer Camp 2010Emma Jane Hogbin Westby
 

Mais de Emma Jane Hogbin Westby (20)

Git Makes Me Angry Inside
Git Makes Me Angry InsideGit Makes Me Angry Inside
Git Makes Me Angry Inside
 
Was It Something I Said? The Art of Giving (and getting) A Critique
Was It Something I Said? The Art of Giving (and getting) A CritiqueWas It Something I Said? The Art of Giving (and getting) A Critique
Was It Something I Said? The Art of Giving (and getting) A Critique
 
Beyond the Bikeshed
Beyond the BikeshedBeyond the Bikeshed
Beyond the Bikeshed
 
Gamestorming Meets Quiet
Gamestorming Meets QuietGamestorming Meets Quiet
Gamestorming Meets Quiet
 
Git Makes Me Angry Inside
Git Makes Me Angry InsideGit Makes Me Angry Inside
Git Makes Me Angry Inside
 
Work Flow for Solo Developers and Small Teams
Work Flow for Solo Developers and Small TeamsWork Flow for Solo Developers and Small Teams
Work Flow for Solo Developers and Small Teams
 
Evaluating Base Themes
Evaluating Base ThemesEvaluating Base Themes
Evaluating Base Themes
 
Speaker Check-in - 3 - Munich
Speaker Check-in - 3 - MunichSpeaker Check-in - 3 - Munich
Speaker Check-in - 3 - Munich
 
Drupal Flyover, CMS Expo
Drupal Flyover, CMS ExpoDrupal Flyover, CMS Expo
Drupal Flyover, CMS Expo
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS Expo
 
Selling Hopes and Dreams - DrupalCamp Toronto
Selling Hopes and Dreams - DrupalCamp TorontoSelling Hopes and Dreams - DrupalCamp Toronto
Selling Hopes and Dreams - DrupalCamp Toronto
 
Forensic Theming - DrupalCon London
Forensic Theming - DrupalCon LondonForensic Theming - DrupalCon London
Forensic Theming - DrupalCon London
 
Forensic Theming for Drupal
Forensic Theming for DrupalForensic Theming for Drupal
Forensic Theming for Drupal
 
There's a Module for That, MIMA Summit 2010
There's a Module for That, MIMA Summit 2010There's a Module for That, MIMA Summit 2010
There's a Module for That, MIMA Summit 2010
 
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Intro to Theming Drupal, FOSSLC Summer Camp 2010Intro to Theming Drupal, FOSSLC Summer Camp 2010
Intro to Theming Drupal, FOSSLC Summer Camp 2010
 
Advanced Layout Techniques @ CMSExpo
Advanced Layout Techniques @ CMSExpoAdvanced Layout Techniques @ CMSExpo
Advanced Layout Techniques @ CMSExpo
 
Design to Theme @ CMSExpo
Design to Theme @ CMSExpoDesign to Theme @ CMSExpo
Design to Theme @ CMSExpo
 
Drupal Help System
Drupal Help SystemDrupal Help System
Drupal Help System
 
Lessons from Life Coaching for Linux
Lessons from Life Coaching for LinuxLessons from Life Coaching for Linux
Lessons from Life Coaching for Linux
 
Beautiful In Print
Beautiful In PrintBeautiful In Print
Beautiful In Print
 

Último

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

Último (20)

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

PSD to Theme - Acquia Webinar

  • 1. Get Ready ... To prepare for this seminar you should download a copy of the following themes: ● http://drupal.org/project/ninesixty ● http://drupal.org/project/domicile If you need to leave: ● This session is recorded. If the recording fails, this is a similar presentation to the one I gave at DrupalCon London. ● The information is available in: Drupal User's Guide or workbooks at Designtotheme.com. ● Slides are available from: slideshare.net/emmajane
  • 3. Workbook Author www.designtotheme.com Discount code available at the end of the webinar.
  • 5. Agenda Theme Building Summary ● Theming philosophy ● Questions/Answers ● Process ● Discount Coupons ● Case study: Domicile 20 minutes 35 minutes
  • 7. Lazy Front End Developer
  • 9. Theming by tpl.php Files Wastes Your Time node.tpl.php field.tpl.php jplayer.tpl.php page.tpl.php
  • 10. Take Only Pictures, Leave Only Footprints Theme Only What You Need To UX UX Minimum Viable Theme UX UX
  • 11. Budget-Appropriate Web Design ● Know your Drupal toolkit. Know your budget. ● Focus on the biggest elements first. ● Work closely with your designer and your client to make sure you get the important things right. ● Theme with the markup you have, not the markup you'd like to have. ● Pixel perfect design is for print. Get over it.
  • 12. Accessible Web Design “Accessible web design refers to the philosophy and practice of designing web pages so that they can be navigated and read by everyone, regardless of location, experience, or the type of computer technology used.” Australian Human Rights Commission ● Know your guidelines (508 or WAI). ● Use a checklist. ● Use an automated testing suite. ● Test with users. http://www.designtotheme.com/tutorials/automated-accessibility-testing
  • 13. Responsive Web Design “Any approach that delivers elegant visual experiences regardless of the size of the user’s display and the limitations or capabilities of the device” zeldman. ● Read: http://tinyurl.com/responsive-article ● Buy (and read): http://tinyurl.com/responsive-book ● Watch: http://tinyurl.com/pathtomobile ● Use: http://drupal.org/project/omega (Eventually “all” base themes will be responsive.)
  • 14. Theming Goals ● Budget-appropriate. ● Accessible. ● Responsive.
  • 16. Steps to Making a Theme 1. Communicate with your whole team. 2. Plan your data structure. 3. Use wire frames to prove what you're saying about how the site ought to be built. 4.Build the site (ignore the theme). 5. Convert your wire frame to its grid layout. 6.Build out the HTML fragments in the relevant tpl.php files. Substitute CSS effects for PSD effects where possible. 7. Apply your theme to the site. 8.Refine as necessary based on the UX.
  • 17. Data Model http://www.flickr.com/photos/alan-dean/3513723498
  • 19.
  • 20.
  • 21. Begin Site Building (This may affect site design decisions based on the theming goals of budget-appropriate, accessible and responsive.)
  • 24. Base Theme ● drupal.org/project/ninesixty ● drupal.org/project/fusion ● drupal.org/project/zen
  • 25. To Build a Successful Theme You must: ● Know your data model. ● Create wire frames describing page elements. ● Identify the modules, templates and configuration responsible for every element described in your wire frames. ● Use a grid framework in both your design files and Drupal templates. ● Use a base theme that meets your web design goals.
  • 27. Steps to MVT 1. Prepare design. 2. Create theme shell (text files for Drupal). 3. Create regions. 4.Extract and embed images. 5. Launch MVT.
  • 28. Domicile ● Designed by Betty Biesenthal. ● Themed by Emma Jane Hogbin (and the base theme NineSixty). ● Code available from http://drupal.org/project/domicile
  • 31. Wire Frame for NineSixty Sub-Theme
  • 32. Create a Theme Shell sites/example.com/themes/theme_name    theme_name.info    page.tpl.php Also: sites/all/themes/base_theme
  • 33. Take a peek 1. Download the theme: http://drupal.org/project/domicile 2. Unzip the package. 3. Look at the files inside.
  • 34. domicile.info name = D7SBE - Domicile description = A three-column design by Design House (www.design- house.ca) and themed by Design to Theme. screenshot = screenshot.png core = 7.x engine = phptemplate base theme = ninesixty ; Stylesheets. ; Regions ; Features
  • 36. Identify These Shapes in Domicile
  • 39.
  • 40.
  • 41. Hard Code Fixed Images
  • 43. Steps to MVT Summary 1. Prepare design. 2. Create theme shell (text files for Drupal). 3. Create regions. 4.Extract and embed images. 5. Launch MVT.
  • 44. What's Wrong? Pink sherbert photography http://www.flickr.com/photos/pinksherbet/3372060864/
  • 45. Theme by UX Locate “problem” areas and fix with: ● The administrative interface. ● CSS enhancements. And if you need more control add: ● Helper modules. ● Theme template files. ● Theme functions.
  • 47. CSS Enhancements Relevant HTML Page element CSS styles source
  • 50. Site Building/Theming Helpers Themer Tools Site Building ● Devel ● Views ● Theme Developer ● Nodes in Block ● Firebug for Drupal ● Menu Block Layout ● Entity View Mode ● Panels ● Media ● Context ● jPlayer ● Display Suite ● etc
  • 51. tpl.php ● page.tpl.php ● node.tpl.php ● page-front.tpl.php ● block.tpl.php ● Error pages: 403, 404, 500
  • 52. Theme Functions Finally...and only if you really must: ● Preprocess functions. ● Form altering functions. ● Functionality-based PHP snippets. ● (etc)
  • 54. Theme Building Summary Minimum Viable Theme Theme by UX 1. Prepare design. 6. Administrative interface 2. Create required theme files. 7. CSS enhancements 3. Create regions in page.tpl.php. 8. Module helpers 4. Extract and embed images. 9. tpl.php files 5. Launch MVT. 10.Theme functions
  • 55. PSD to Theme Summary ● Plan your theme from the data model out, not the template files in. ● Use relevant Drupal modules to break up content and display it in relevant locations. ● Extract only the images and colours you need from your PSD file. ● Using your grid, rebuild your design as a minimum viable theme in the fewest possible tpl.php files. ● Fix any outstanding problems according to the expected user experience with the site. ● Test your site using automated testing suites for cross-browser and accessibility issues. Then test again using as much real content and as many real people as you can afford. ● Cross your fingers and launch.
  • 56. Discounts on Practical Drupal Guides www.designtotheme.com Save 35% on all titles. Discount Code: ACQUIA-P2T 1. PSD to Drupal Theme 2. SBE Guide: Micro Site www.informit.com SAVE 35% on Drupal User's Guide. www.drupalwatchdog.com/read Discount Code: DRUPALUSER Issue 1: Free PSD to Theme article.
  • 57. Stay in Touch ● @emmajanedotnet ● emma@designtotheme.com ● www.designtotheme.com