SlideShare une entreprise Scribd logo
1  sur  57
Télécharger pour lire hors ligne
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

Contenu connexe

Plus 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
 

Plus 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
 

Dernier

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
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
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

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