SlideShare una empresa de Scribd logo
1 de 49
Design To Theme:
The Drupal Way
By Danté R. Taylor
Mediacurrent Senior Drupal Designer
Atlanta Drupal User Group (ADUG)
@thememaster
About Me
• Bachelor of Fine Arts (BFA) from Savannah College of
Art and Design
• Worked as a Designer for the past 10 years
• Have worked with Drupal since version 4.7 release
• Biggest project in Drupal is savannahnow.com
• Favorite project in Drupal is ymib.com
Who this presentation is for
`
• If you are new to Drupal and need a basic idea
of where to begin
• If you want to understand the process of turning
a design into a Drupal theme
• If you want to make improvements to an existing
theme or design
What we will cover
• Common tools to use to turn your design files
into a Drupal theme
• How to look at a design the Drupal way
• Common theme techniques and practices
Presentation Format
• Topic 1: Use The Right Tools
• Topic 2: Design-to-Theme Concepts
• Topic 3: Common Theme Techniques
Topic 1:
`
Use The Right Tools
The right tools
Photoshop
• Advanced Image/photo manipulation tool
• Can be used for web design layout
• Used to create bitmap and vector artwork
• Basic image slicing functionality
• Most designers will deliver finial creative
files in a Photoshop format
• Industry standard software
Fireworks
• Advanced Image/photo manipulation tool for
web design
• Built-in features for web design professionals
• Advanced image slicing functionality
• Firework is not as commonly used tool for non-
web designers & publishers
• Industry standard software for web designers
• Fireworks works well with Photoshop
The GIMP
• Its Open Source and powerful!
• Advanced Image/photo manipulation tool
• Basic image slicing functionality
• Most designers will not deliver final
creative files in a GIMP format
• Not an industry standard software
• Some Photoshop transparencies and
filters will cause issues when working
between tools
• Major differences in UI compared to
Photoshop and Fireworks
Illustrator
• Used primary to create vector based
artwork
• Basic image slicing features
• Good for logo and line artwork
• Use this tool for typography work
• Most designers will not deliver final
artwork in an illustrator format.
• This tool is ideally used for custom icon
work and site background artwork
Firebug
• Powerful tool and a must have for
anyone building web sites
• Inspect HTML structure
• Dynamically alter site CSS & HTML
inside web browser
• Debug Javascript code
• Easy determine layout (padding,
margin, border and positioning)
• Determine DOM hierarchy
Web Developer
• This is a Firefox plug-in that is a
very powerful way to debug
your themes
• This tool has validation tool that
will warn you when your code
does not validate
• Can set tool to resize browser
based on common browser
resolutions
Popular Browsers
• Firefox, Safari, Internet Explorer, and
Chrome are the top four major browser
operating on the Internet
• Learn the quarks and bugs associated
with all major browsers
• All four browsers have some from of
web development toolkit packaged with
browser
• Know your audience and their common
browser of choice
Color Pickers
`
• ColorZilla is a Firefox plug-in that will allow you to
pick colors right from a website
• DigitalColor Meter will allow you to pick colors from
anywhere on your OS (This is a Mac app)
• These tools come in handy when you need to
quickly grab colors from a web site design and
don’t have time to open Photoshop or search
through a style sheet
Theme Developer Module
• This is contributed module that is
used with Drupal to help
developers and themers identify
Drupal core code variables,
functions, and templates
• This is a great tool that will help
you save time
The Staging Site (MAMP)
• This tool will allow you to work locally on
your machine and is set up just like a
common web server
• Use this tool to set up local Drupal sites to
test module functionality
• Use WAMP if you are on a PC
Topic 2:
`
Design-to-Theme Concepts
Drupal Theme Terms
• Hooks
• Preprocess Functions
• Theme Functions
• Template Files
• Regions
• Nodes
• Blocks
`
• Content Types
• Taxonomy
• Settings.php
• Template.php
• Views
• CCK
• Menu System
Drupal Theme Anatomy 101
`
Granddaddy Garland
`
Drupal Theme: GMC Life
Drupal Theme: AutoTrader
`
Drupal Theme:
University of Georgia:
`
Drupal Theme: AdGiants
WARNING:
Stay away from Trends!
WARNING:
Stay away from Trends!
Getting started
• Install Drupal to experiment and learn how modules UI
functions work together, before you begin your design
project.
• Use built-in features of Drupal and modules to achieve
Design objectives. (Try not to reinvent)
• Think in terms of how your Design elements can be reused or
repeated throughout Web site.
• Work closely with specialist in Drupal Design or
Development to save on time and budget as you plan your
Drupal project.
`
Common Themes & Modules
Main considerations in a Drupal
design?
`
• What HTML/CSS does Drupal produce natively
• Consider the code that contributed modules will produce
and how that code will interface with your design goals
• Look for repeating elements in your design that can be
reused in your CSS file.
See it the Drupal way
• Break the design up into pieces
• Where are elements repeating
• What Drupal modules will
produce the ideal results with
theme work applied
• What will have to be custom built
on this page
• How heavy is this page in terms
of imagery and how can I
optimize it
Create a Drupal Theme
the easy way
1. Create Theme Name directory (mytheme) inside “/sites/all/themes/”
(create new directories if they do not exists)
2. Copy Garland theme from “/themes” and move it to “/sites/all/themes/”,
then rename it to mytheme directory.
3. Change the garland.info file to mytheme.info. Open new mytheme.info
file and change all names with garland to mytheme.
4. Change the screenshot.png file to match your new theme.
5. Clear system cache. (/admin/settings/performance)
6. Go to Themes list page and select mytheme, to start using or editing your
new theme. (/admin/build/themes)
`
Image Preparation
type-location-element-(state).file-type
• Type: Describe how the image is being used in HTML or CSS.
Examples: bg (background image), icon, button, inline, etc
• Location: Communicates where image is located within HTML
Examples: header, body, content, sidebar, footer, etc
• Element: Describe what the image object is in the HTML
Examples: gradient, shadow, search, book, etc
• State: (Optional) Describe the condition the image object is being used as in the HTML
Examples: rest, active, focus, etc
Good Image Name
bg-header-trim-active.png
Bad Image Name
header_trim.png
Ugly Image Name
headerTrim_01.png
Theme Considerations
• Comment where HTML code starts and ends
• Use a prefix for class and id selectors to reduce possible namespace conflicts
• Structure HTML so that elements can be reused (naming conventions)
• Think about what could go wrong and what the next person may need to add later
to support the project
• Use correct Doctype
• Wrap conditional statements around all HTML not just variables, especially for
regions and blocks.
• Use CSS to manage alternate page layouts when possible
• Use transparent (gif/png) for inline images and position images with CSS
• Only use inline CSS with dynamic scripts (jQuery, Javascript, LightBox, etc)
CSS Considerations
• CSS should be indented like any other programming language
• Your file should be organized in same workflow of the page that it
corresponds to.
• Each group of declaration blocks should have a brief comment or
description to described the section/page it belongs to
• Files should be named with project prefix
• Use “em” over “px” and “pt” for fonts and spacing
• Set fonts, link colors and shared elements once at top of CSS document
• Always use shorthand and alphabetize CSS attributes
CSS Considerations
prefix-(location)-element-(state) {
– Rarely place on one line
– Always use shorthand
– Always indent code
– Place in alphabetical order
}
Good CSS
Bad CSS
Ugly CSS
Topic 3:
Common Theme Techniques
CSS Reset
• This set all containers and html
attributes to basic standard
• This helps standardize you html/css
across all browsers
• Takeout the vertical-align: baseline
(cause some issues with type)
Reference: http://meyerweb.com/eric/tools/css/reset
Sliding Door Method
Reference: http://www.alistapart.com/articles/slidingdoors
• Drupal produces rectangular tabs by
default
• To add rounded corners use the <li>
and <a> tags to apply left and right
rounded background images to each
respectively. Make the left background
image much longer than you make the
right cap piece
• Use CSS to position them in place with
padding and line height
• This technique can be used for block
headers and form button graphics as
well
Load Menu Last
• SEO is a very important consideration
in any site development
• Robots crawl your site from top to
bottom and by placing the primary
navigation code at bottom you can
insure that the meta rich content gets
crawled first before the repetitive menu
content
• Place menu html in the code near
footer but absolutely position it at the
top of the page using CSS
• Support.com is a good example. Take
a look at the source code. The menu is
at bottom but appears to viewer at top
Where to Find Help?
• Mediacurrent.com/blogs
• Drupal.org
• Api.drupal.org
• Drupal.org/project/Themes
• AListApart.com
• Lynda.com
• Drupal.org/node/39451
• Drupal.org/books
`
Thank you!

Más contenido relacionado

La actualidad más candente

The Coding Designer's Survival Kit - Capital Camp
The Coding Designer's Survival Kit - Capital CampThe Coding Designer's Survival Kit - Capital Camp
The Coding Designer's Survival Kit - Capital Camp
canarymason
 
Anatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress ThemeAnatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress Theme
Julie Kuehl
 
Oxford DrupalCamp 2012 - The things we found in your website
Oxford DrupalCamp 2012 - The things we found in your websiteOxford DrupalCamp 2012 - The things we found in your website
Oxford DrupalCamp 2012 - The things we found in your website
hernanibf
 

La actualidad más candente (20)

Web Designing Online Training
Web Designing Online TrainingWeb Designing Online Training
Web Designing Online Training
 
Developing Complex WordPress Sites without Fear of Failure (with MVC)
Developing Complex WordPress Sites without Fear of Failure (with MVC)Developing Complex WordPress Sites without Fear of Failure (with MVC)
Developing Complex WordPress Sites without Fear of Failure (with MVC)
 
Spsbe using js-linkanddisplaytemplates
Spsbe   using js-linkanddisplaytemplatesSpsbe   using js-linkanddisplaytemplates
Spsbe using js-linkanddisplaytemplates
 
Drupal 7: Theming with Omega
Drupal 7: Theming with OmegaDrupal 7: Theming with Omega
Drupal 7: Theming with Omega
 
Down and Dirty EPUB 3
Down and Dirty EPUB 3Down and Dirty EPUB 3
Down and Dirty EPUB 3
 
The Coding Designer's Survival Kit - Capital Camp
The Coding Designer's Survival Kit - Capital CampThe Coding Designer's Survival Kit - Capital Camp
The Coding Designer's Survival Kit - Capital Camp
 
BDUG Responsive Web Theming - 7/23/12
BDUG Responsive Web Theming - 7/23/12BDUG Responsive Web Theming - 7/23/12
BDUG Responsive Web Theming - 7/23/12
 
Themes 101
Themes 101Themes 101
Themes 101
 
JSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday JerseyJSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday Jersey
 
Wordpress template hierarchy
Wordpress template hierarchyWordpress template hierarchy
Wordpress template hierarchy
 
Get the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEXGet the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEX
 
Face/Off: APEX Templates & Themes
Face/Off: APEX Templates & ThemesFace/Off: APEX Templates & Themes
Face/Off: APEX Templates & Themes
 
SUGUK Cambridge - Display Templates & JSLink for IT Pros
SUGUK Cambridge - Display Templates & JSLink for IT ProsSUGUK Cambridge - Display Templates & JSLink for IT Pros
SUGUK Cambridge - Display Templates & JSLink for IT Pros
 
Anatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress ThemeAnatomy and Architecture of a WordPress Theme
Anatomy and Architecture of a WordPress Theme
 
Working with WordPress themes
Working with WordPress themesWorking with WordPress themes
Working with WordPress themes
 
My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013My Site is slow - Drupal Camp London 2013
My Site is slow - Drupal Camp London 2013
 
Slides bootstrap-4
Slides bootstrap-4Slides bootstrap-4
Slides bootstrap-4
 
Oxford DrupalCamp 2012 - The things we found in your website
Oxford DrupalCamp 2012 - The things we found in your websiteOxford DrupalCamp 2012 - The things we found in your website
Oxford DrupalCamp 2012 - The things we found in your website
 
Default theme implementations: a guide for module developers that want sweet ...
Default theme implementations: a guide for module developers that want sweet ...Default theme implementations: a guide for module developers that want sweet ...
Default theme implementations: a guide for module developers that want sweet ...
 
Drupal for Non-Developers
Drupal for Non-DevelopersDrupal for Non-Developers
Drupal for Non-Developers
 

Destacado

Imoveis no Recreio av das Americas Joao Fortes
Imoveis no Recreio av das Americas Joao FortesImoveis no Recreio av das Americas Joao Fortes
Imoveis no Recreio av das Americas Joao Fortes
Lancamentosrj
 
Sunday Herald Ann Rep 2012.PDF
Sunday Herald Ann Rep 2012.PDFSunday Herald Ann Rep 2012.PDF
Sunday Herald Ann Rep 2012.PDF
Moi Ali
 
Akos Murber - Female endocrine functions - summary
Akos Murber - Female endocrine functions - summaryAkos Murber - Female endocrine functions - summary
Akos Murber - Female endocrine functions - summary
Katalin Cseh
 

Destacado (12)

Notice streetstepper fr
Notice streetstepper frNotice streetstepper fr
Notice streetstepper fr
 
Imoveis no Recreio av das Americas Joao Fortes
Imoveis no Recreio av das Americas Joao FortesImoveis no Recreio av das Americas Joao Fortes
Imoveis no Recreio av das Americas Joao Fortes
 
Centro Sociale Anziani Esquilino 1^ Municipio Centro Storico
Centro Sociale Anziani Esquilino 1^ Municipio Centro StoricoCentro Sociale Anziani Esquilino 1^ Municipio Centro Storico
Centro Sociale Anziani Esquilino 1^ Municipio Centro Storico
 
تفسير حلم الحرب عند ابن سيرين و ابن شاهين و النابلسي مجلة رقيقة
تفسير حلم الحرب عند ابن سيرين و ابن شاهين و النابلسي مجلة رقيقةتفسير حلم الحرب عند ابن سيرين و ابن شاهين و النابلسي مجلة رقيقة
تفسير حلم الحرب عند ابن سيرين و ابن شاهين و النابلسي مجلة رقيقة
 
Fundación Vivir más Feliz
Fundación Vivir más FelizFundación Vivir más Feliz
Fundación Vivir más Feliz
 
Proyecto moviles
Proyecto movilesProyecto moviles
Proyecto moviles
 
Social Media Tips and Tricks
Social Media Tips and TricksSocial Media Tips and Tricks
Social Media Tips and Tricks
 
Sunday Herald Ann Rep 2012.PDF
Sunday Herald Ann Rep 2012.PDFSunday Herald Ann Rep 2012.PDF
Sunday Herald Ann Rep 2012.PDF
 
Charla inducción carrera inf 20 ene 2016
Charla inducción carrera inf 20 ene 2016Charla inducción carrera inf 20 ene 2016
Charla inducción carrera inf 20 ene 2016
 
Visual communication and design
Visual communication and designVisual communication and design
Visual communication and design
 
Ux strategy - the secret sauce that defines the pixie dust
Ux strategy - the secret sauce that defines the pixie dustUx strategy - the secret sauce that defines the pixie dust
Ux strategy - the secret sauce that defines the pixie dust
 
Akos Murber - Female endocrine functions - summary
Akos Murber - Female endocrine functions - summaryAkos Murber - Female endocrine functions - summary
Akos Murber - Female endocrine functions - summary
 

Similar a Atlanta Drupal User Group (ADUG)

Drupalcamp Atlanta 2010 Design-to-Theme
Drupalcamp Atlanta 2010 Design-to-ThemeDrupalcamp Atlanta 2010 Design-to-Theme
Drupalcamp Atlanta 2010 Design-to-Theme
Mediacurrent
 
Forensic Theming - DrupalCon London
Forensic Theming - DrupalCon LondonForensic Theming - DrupalCon London
Forensic Theming - DrupalCon London
Emma Jane Hogbin Westby
 
Advanced Android Design Implementation
Advanced Android Design ImplementationAdvanced Android Design Implementation
Advanced Android Design Implementation
Tack Mobile
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
Peter Kaizer
 
Freelancer Weapons of mass productivity
Freelancer Weapons of mass productivityFreelancer Weapons of mass productivity
Freelancer Weapons of mass productivity
Gregg Coppen
 

Similar a Atlanta Drupal User Group (ADUG) (20)

Drupalcamp Atlanta 2010 Design-to-Theme
Drupalcamp Atlanta 2010 Design-to-ThemeDrupalcamp Atlanta 2010 Design-to-Theme
Drupalcamp Atlanta 2010 Design-to-Theme
 
Joomla! theming
Joomla! themingJoomla! theming
Joomla! theming
 
New Adventures in Drupal Theming
New Adventures in Drupal ThemingNew Adventures in Drupal Theming
New Adventures in Drupal Theming
 
Nanocon Taiwan
Nanocon TaiwanNanocon Taiwan
Nanocon Taiwan
 
WordPress Themes and Plugins
WordPress Themes and PluginsWordPress Themes and Plugins
WordPress Themes and Plugins
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014Making Your Site Printable: CSS Summit 2014
Making Your Site Printable: CSS Summit 2014
 
Forensic Theming - DrupalCon London
Forensic Theming - DrupalCon LondonForensic Theming - DrupalCon London
Forensic Theming - DrupalCon London
 
Developing Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsDeveloping Custom WordPress Themes for Clients
Developing Custom WordPress Themes for Clients
 
Consistent UI Across Android Devices
Consistent UI Across Android DevicesConsistent UI Across Android Devices
Consistent UI Across Android Devices
 
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
 
Design todevelop
Design todevelopDesign todevelop
Design todevelop
 
Efficient theming in Drupal
Efficient theming in DrupalEfficient theming in Drupal
Efficient theming in Drupal
 
Advanced Android Design Implementation
Advanced Android Design ImplementationAdvanced Android Design Implementation
Advanced Android Design Implementation
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
DITA Quick Start Webinar: Defining Your Style Sheet Requirements
DITA Quick Start Webinar: Defining Your Style Sheet RequirementsDITA Quick Start Webinar: Defining Your Style Sheet Requirements
DITA Quick Start Webinar: Defining Your Style Sheet Requirements
 
Jumpstart Your Web App
Jumpstart Your Web AppJumpstart Your Web App
Jumpstart Your Web App
 
WordPress Theme Basics
WordPress Theme BasicsWordPress Theme Basics
WordPress Theme Basics
 
Week 8 - Interactive News Editing and Producing
Week 8 - Interactive News Editing and ProducingWeek 8 - Interactive News Editing and Producing
Week 8 - Interactive News Editing and Producing
 
Freelancer Weapons of mass productivity
Freelancer Weapons of mass productivityFreelancer Weapons of mass productivity
Freelancer Weapons of mass productivity
 

Más de Mediacurrent

Más de Mediacurrent (20)

Penn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with GatsbyPenn State News: Pivoting to Decoupled Drupal with Gatsby
Penn State News: Pivoting to Decoupled Drupal with Gatsby
 
Evolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher EdEvolving How We Measure Digital Success in Higher Ed
Evolving How We Measure Digital Success in Higher Ed
 
Penn State scales static Drupal to new heights
Penn State scales static Drupal to new heightsPenn State scales static Drupal to new heights
Penn State scales static Drupal to new heights
 
Delivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher EdDelivering Meaningful Digital Experiences in Higher Ed
Delivering Meaningful Digital Experiences in Higher Ed
 
Content Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your AudienceContent Strategy: Building Connections with Your Audience
Content Strategy: Building Connections with Your Audience
 
Decoupled Drupal and Gatsby in the Real World
Decoupled Drupal and Gatsby in the Real WorldDecoupled Drupal and Gatsby in the Real World
Decoupled Drupal and Gatsby in the Real World
 
A Better Way to Build and Manage Sites with Rain for Drupal 9
A Better Way to Build and Manage Sites with Rain for Drupal 9A Better Way to Build and Manage Sites with Rain for Drupal 9
A Better Way to Build and Manage Sites with Rain for Drupal 9
 
Drupal Security: What You Need to Know
Drupal Security: What You Need to KnowDrupal Security: What You Need to Know
Drupal Security: What You Need to Know
 
Leveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web ProjectsLeveraging Design Systems to Streamline Web Projects
Leveraging Design Systems to Streamline Web Projects
 
Reimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web StrategyReimagining Your Higher Ed Web Strategy
Reimagining Your Higher Ed Web Strategy
 
How to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with DrupalHow to Digitally Transform Higher Ed with Drupal
How to Digitally Transform Higher Ed with Drupal
 
Is my website accessible? Common mistakes (and how to fix them)
Is my website accessible? Common mistakes (and how to fix them)Is my website accessible? Common mistakes (and how to fix them)
Is my website accessible? Common mistakes (and how to fix them)
 
Managing Images In Large Scale Drupal 8 & 9 Websites
Managing Images In Large Scale Drupal 8 & 9 WebsitesManaging Images In Large Scale Drupal 8 & 9 Websites
Managing Images In Large Scale Drupal 8 & 9 Websites
 
Paragraphs v Layout Builder - The Final Showdown
Paragraphs v Layout Builder - The Final ShowdownParagraphs v Layout Builder - The Final Showdown
Paragraphs v Layout Builder - The Final Showdown
 
MagMutual.com: On the JAMStack with Gatsby and Drupal 8
 MagMutual.com: On the JAMStack with Gatsby and Drupal 8 MagMutual.com: On the JAMStack with Gatsby and Drupal 8
MagMutual.com: On the JAMStack with Gatsby and Drupal 8
 
Creating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to DrupalCreating an Organizational Culture of Giving Back to Drupal
Creating an Organizational Culture of Giving Back to Drupal
 
Level Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best PracticesLevel Up Your Team: Front-End Development Best Practices
Level Up Your Team: Front-End Development Best Practices
 
Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9
 
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing ChallengesHow to Prove Marketing ROI: Overcoming Digital Marketing Challenges
How to Prove Marketing ROI: Overcoming Digital Marketing Challenges
 
Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan Prepare Your Drupal 9 Action Plan
Prepare Your Drupal 9 Action Plan
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

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...
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
[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
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 

Atlanta Drupal User Group (ADUG)

  • 1. Design To Theme: The Drupal Way By Danté R. Taylor Mediacurrent Senior Drupal Designer Atlanta Drupal User Group (ADUG) @thememaster
  • 2. About Me • Bachelor of Fine Arts (BFA) from Savannah College of Art and Design • Worked as a Designer for the past 10 years • Have worked with Drupal since version 4.7 release • Biggest project in Drupal is savannahnow.com • Favorite project in Drupal is ymib.com
  • 3. Who this presentation is for ` • If you are new to Drupal and need a basic idea of where to begin • If you want to understand the process of turning a design into a Drupal theme • If you want to make improvements to an existing theme or design
  • 4. What we will cover • Common tools to use to turn your design files into a Drupal theme • How to look at a design the Drupal way • Common theme techniques and practices
  • 5. Presentation Format • Topic 1: Use The Right Tools • Topic 2: Design-to-Theme Concepts • Topic 3: Common Theme Techniques
  • 6. Topic 1: ` Use The Right Tools
  • 8. Photoshop • Advanced Image/photo manipulation tool • Can be used for web design layout • Used to create bitmap and vector artwork • Basic image slicing functionality • Most designers will deliver finial creative files in a Photoshop format • Industry standard software
  • 9. Fireworks • Advanced Image/photo manipulation tool for web design • Built-in features for web design professionals • Advanced image slicing functionality • Firework is not as commonly used tool for non- web designers & publishers • Industry standard software for web designers • Fireworks works well with Photoshop
  • 10. The GIMP • Its Open Source and powerful! • Advanced Image/photo manipulation tool • Basic image slicing functionality • Most designers will not deliver final creative files in a GIMP format • Not an industry standard software • Some Photoshop transparencies and filters will cause issues when working between tools • Major differences in UI compared to Photoshop and Fireworks
  • 11. Illustrator • Used primary to create vector based artwork • Basic image slicing features • Good for logo and line artwork • Use this tool for typography work • Most designers will not deliver final artwork in an illustrator format. • This tool is ideally used for custom icon work and site background artwork
  • 12. Firebug • Powerful tool and a must have for anyone building web sites • Inspect HTML structure • Dynamically alter site CSS & HTML inside web browser • Debug Javascript code • Easy determine layout (padding, margin, border and positioning) • Determine DOM hierarchy
  • 13.
  • 14. Web Developer • This is a Firefox plug-in that is a very powerful way to debug your themes • This tool has validation tool that will warn you when your code does not validate • Can set tool to resize browser based on common browser resolutions
  • 15. Popular Browsers • Firefox, Safari, Internet Explorer, and Chrome are the top four major browser operating on the Internet • Learn the quarks and bugs associated with all major browsers • All four browsers have some from of web development toolkit packaged with browser • Know your audience and their common browser of choice
  • 16. Color Pickers ` • ColorZilla is a Firefox plug-in that will allow you to pick colors right from a website • DigitalColor Meter will allow you to pick colors from anywhere on your OS (This is a Mac app) • These tools come in handy when you need to quickly grab colors from a web site design and don’t have time to open Photoshop or search through a style sheet
  • 17. Theme Developer Module • This is contributed module that is used with Drupal to help developers and themers identify Drupal core code variables, functions, and templates • This is a great tool that will help you save time
  • 18. The Staging Site (MAMP) • This tool will allow you to work locally on your machine and is set up just like a common web server • Use this tool to set up local Drupal sites to test module functionality • Use WAMP if you are on a PC
  • 20. Drupal Theme Terms • Hooks • Preprocess Functions • Theme Functions • Template Files • Regions • Nodes • Blocks ` • Content Types • Taxonomy • Settings.php • Template.php • Views • CCK • Menu System
  • 29. Getting started • Install Drupal to experiment and learn how modules UI functions work together, before you begin your design project. • Use built-in features of Drupal and modules to achieve Design objectives. (Try not to reinvent) • Think in terms of how your Design elements can be reused or repeated throughout Web site. • Work closely with specialist in Drupal Design or Development to save on time and budget as you plan your Drupal project. `
  • 30. Common Themes & Modules
  • 31. Main considerations in a Drupal design? ` • What HTML/CSS does Drupal produce natively • Consider the code that contributed modules will produce and how that code will interface with your design goals • Look for repeating elements in your design that can be reused in your CSS file.
  • 32. See it the Drupal way • Break the design up into pieces • Where are elements repeating • What Drupal modules will produce the ideal results with theme work applied • What will have to be custom built on this page • How heavy is this page in terms of imagery and how can I optimize it
  • 33. Create a Drupal Theme the easy way 1. Create Theme Name directory (mytheme) inside “/sites/all/themes/” (create new directories if they do not exists) 2. Copy Garland theme from “/themes” and move it to “/sites/all/themes/”, then rename it to mytheme directory. 3. Change the garland.info file to mytheme.info. Open new mytheme.info file and change all names with garland to mytheme. 4. Change the screenshot.png file to match your new theme. 5. Clear system cache. (/admin/settings/performance) 6. Go to Themes list page and select mytheme, to start using or editing your new theme. (/admin/build/themes) `
  • 34. Image Preparation type-location-element-(state).file-type • Type: Describe how the image is being used in HTML or CSS. Examples: bg (background image), icon, button, inline, etc • Location: Communicates where image is located within HTML Examples: header, body, content, sidebar, footer, etc • Element: Describe what the image object is in the HTML Examples: gradient, shadow, search, book, etc • State: (Optional) Describe the condition the image object is being used as in the HTML Examples: rest, active, focus, etc
  • 38. Theme Considerations • Comment where HTML code starts and ends • Use a prefix for class and id selectors to reduce possible namespace conflicts • Structure HTML so that elements can be reused (naming conventions) • Think about what could go wrong and what the next person may need to add later to support the project • Use correct Doctype • Wrap conditional statements around all HTML not just variables, especially for regions and blocks. • Use CSS to manage alternate page layouts when possible • Use transparent (gif/png) for inline images and position images with CSS • Only use inline CSS with dynamic scripts (jQuery, Javascript, LightBox, etc)
  • 39. CSS Considerations • CSS should be indented like any other programming language • Your file should be organized in same workflow of the page that it corresponds to. • Each group of declaration blocks should have a brief comment or description to described the section/page it belongs to • Files should be named with project prefix • Use “em” over “px” and “pt” for fonts and spacing • Set fonts, link colors and shared elements once at top of CSS document • Always use shorthand and alphabetize CSS attributes
  • 40. CSS Considerations prefix-(location)-element-(state) { – Rarely place on one line – Always use shorthand – Always indent code – Place in alphabetical order }
  • 44. Topic 3: Common Theme Techniques
  • 45. CSS Reset • This set all containers and html attributes to basic standard • This helps standardize you html/css across all browsers • Takeout the vertical-align: baseline (cause some issues with type) Reference: http://meyerweb.com/eric/tools/css/reset
  • 46. Sliding Door Method Reference: http://www.alistapart.com/articles/slidingdoors • Drupal produces rectangular tabs by default • To add rounded corners use the <li> and <a> tags to apply left and right rounded background images to each respectively. Make the left background image much longer than you make the right cap piece • Use CSS to position them in place with padding and line height • This technique can be used for block headers and form button graphics as well
  • 47. Load Menu Last • SEO is a very important consideration in any site development • Robots crawl your site from top to bottom and by placing the primary navigation code at bottom you can insure that the meta rich content gets crawled first before the repetitive menu content • Place menu html in the code near footer but absolutely position it at the top of the page using CSS • Support.com is a good example. Take a look at the source code. The menu is at bottom but appears to viewer at top
  • 48. Where to Find Help? • Mediacurrent.com/blogs • Drupal.org • Api.drupal.org • Drupal.org/project/Themes • AListApart.com • Lynda.com • Drupal.org/node/39451 • Drupal.org/books `