Jump to content

Recommended Posts

Posted (edited)

Convert your PSD to Responsive HTML and CSS with Export Kit. Customize your PSD to HTML and responsive CSS output for any device and browser using custom CSS target screens. Use unlimited PSD to responsive CSS target screens to personalize your responsive export

 

 

Responsive Design Rules 

 

  • You design the responsive css screen. 

Xport Kit will not assume you want an element in a particular position or size when you output your responsive css screen. Your design is just that – your design! Export Kit allows you to customize each target screen so you can personalize your Output for that screen.  

 

Your responsive design should look the way you want it to look, not the way we think it should! 

 

 

 

  • You MUST create a ${css|screen:default} tag 

You will need a default responsive css screen when using CSS Screen Tags.  

You can do this quickly by grouping your entire PSD document and naming the folder group “${css|screen:default}“.         

 

 

 

 

  • You need 1 screen folder per target screen 

If you have 3 target screens – eg. Desktop, Mobile and Tablet, then you will need 3 css screen folders to support the design. 

 

 

 

  • You CAN change the size, position and effects of layers  

 

 

 

 

Each responsive css screen folder allows you to change the look and feel of your Output to target the user screen size. You can customize the element size, position and effects for each individual css screen folder.

  

 

 

  • You CANNOT change the layer name 
This is a CSS3 rule, where media screens must reflect the same element in the HTML page.
 
DO NOT change the layer names in css screen folders! 
 
 
 
 
  • Common Responsive Screen Sizes 

You can cut and pates any of the following tags and use them as your responsive css folder group name. 

${css|screen:160} Smartphone All
${css|screen:240} Smartphone Portrait
${css|screen:321} Smartphone Landscape
${css|screen:760} Tablet
${css|screen:768} iPad
${css|screen:1224} Desktop/Laptop
${css|screen:1824} Widescreen 

You are not required to create all these screen folders. This is only a list of common screen sizes to use. 

 

 

 

  • Step 1: Create Your Default Screen  
NOTE: Default screens are not required for Android. 

Close all your folders. Group all your folders including Page Tag folders and name the new layer group “${css|screen:default} default screen“. This will create your default responsive view based on your PSD document size.

 

create_default_screen.png

Group all your layers, even if you do not have Page Tags.

We recommend you start with the LARGEST responsive target screen size and work-down in size when creating css screen folders. This will save you lots of time when creating additional css screens. 

 

 

  • Working With CSS Styles 

02_styles_must_be_at_top.png

 

CSS is compiled in order – last in, last out. This means that you MUST add your custom styles at the TOP of your PSD document, otherwise the layer elements will maintain their layer effects/styles without change. This includes responsive designs, keep your CSS Styles at the very top of your layers.
 
NOTE: You are not required to do this with Android.
 
Step 2: Create A Target Screen
 
Copy a css screen size from the list above, eg. ${css|screen:760} Tablet. Select your default screen folder, ${css|screen:defulat} and duplicate the folder group.
 
Then paste the css screen you copied from above, eg. ${css|screen:760} Tablet into the new folder name. This will create your target screen based on your CSS Screen Tags folder size.
 
create_target_screen.png
 
 
 
  • Smaller Screens Below
 
CSS3 has strict rules when rendering responsive designs, you need to have the smaller target screen rendered before larger ones. Because the Export Process is a bottom-up process, you need to place your smaller screen folders below the larger ones in your PSD document.
 
  • Hide The Previous Screen
 
To make it easier to edit the PSD, you should hide the previous screen you just duplicated. You can un-hide the screen before you export the Output.
 
  • Modify Your Screen Design 

 

 

 
 
You can now modify your new css screen folder and its contents to match your target screen design. You can resize any or all content, change layer effects and positions of all elements in the new css screen folder. 
 
change_target_screen_design.png
 
 
 

 


IMPORTANT: You can change ANY layer property including color, size, and effects; but DO NOT change the layer names in css screen folders!
  • Adding Additional Target Screens
 
Repeat this step for each target screen you require in your project. You can add unlimited css screen folders to personalize your Output. Try to add as many screens as you can to target the devices your project requires.              
 
exportkit-all-devices.jpg
 
 
 
There are many ways to handle additional target screens when Using Align Output and Hide Overflow with your export. This will allow you to use fewer target screens to support multiple sizes.
 

 


CSS3 RULE: You MUST place your smaller CSS target screens BELOW the larger ones or you will have unexpected results in your output.

 

  • Add a Minimum Target Size
 
You should always add a base or minimum target screen along with your default to prevent display errors. When using Responsive Screens, each screen you create in Photoshop will ONLY render if that target size is met.
 

 


NOTE: Export Kit does not limit the number of css screen folders you use, but the more layers and folders in your PSD - the longer the export time.

 

  • Minimum Target Error 

ek_responsive_no_render.png

 
 
 

 


EXAMPLE: ${css|screen:1080} will only trigger if the screen is a minimum of 1080px wide.  This means that any screen below 1080px WILL NOT render - because CSS requires that target size!

 

When you add a minimum target you can cover all devices that are larger than the minimum; eg. ${css|screen:320} will target most common devices and display on that screen as long as the device is wider than 320px.
 

 


TIP: You can also read about Using Align Output and Hide Overflow to control the look and feel of your output, and allow you to target multiple device sizes using a single target screen.

 

  • Using Multiple PSD Files
 
Read our guide for Using Multiple PSD files with One Project, if you have many PSDs that you plan to convert to Responsive HTML and CSS, or if you want to manage a single project with multiple files.
 
 
 
Step 3: Responsive Elements
 
You should always finalize your design BEFORE you create responsive css screen folders. There are situations where you may want to add elements to your responsive design that are NOT included in your default screen.
 
  • Single Screen Elements   

 

 
  
Each project has different requirements, in some situations you may require an element to only be visible on specific target screens. An example of this is a responsive mobile menu. Your project may require you to display a toggle icon on screens below X size.
 

 



HIDDEN LAYERS: If you enable Include Hidden Layers with your export you can hide your element.

 

 



TRANSPARENT: You can change the opacity of the element to 0.

 

 



BACKGROUND COLOR: You can change the color of the element to match the background color.

 

  • Adding Elements After You Export 

 

 

 
  1. You MUST add the element to ${css|screen:default} first
You can control elements in any css screen folder, but you MUST add the element to the ${css|screen:default} folder first. This will register the element for the output.
 
If you DO NOT want the element visible in your default screen then, (1) Hide the element and enable Include Hidden Layers, or (2) set the element alpha to 0.
 

 

   

     

       2.  You MUST copy the element to ALL css screen folders 

 

 

 

If you have multiple target screens you want to include the new element in, you will have to copy the element to ALL css screen folders, then hide the layer inside css screen folder that you are not targeting.
 
This will give you access to the element for that target screen, and make the element invisible on other screens.
 

 



You will need to include Hidden Layers when targeting individual screens only, or set the alpha of the layer to 0.

 

 



Once you copy your new element layer, Photoshop will add “Copy X” to the layer name; where X is the number of times the layer has been copied.
 
Eg. “New Responsive Layer Copy 2” 
 
- Delete “Copy X” from your layer name.

 




All layers copied to css screen folders MUST have the SAME layer name.

 

Step 4: Your Responsive Settings
 
You MUST enable Relative Positions to use Responsive CSS. Once you Enable Responsive CSS and Images you can optionally use responsive image assets as well.
 
 css_responsive_assets_exports_view.png
 

 



NOTE: Responsive Image Assets will resize images per target screen.  This will allow your server to save bandwidth when a user is on a desktop vs. mobile.

   

     

 

Here is Lineage 2  beautiful websites (PSDs)

 

 

 

 

 credits: exportkit

Edited by foxi
  • Like 1
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...