Wednesday, October 2, 2013

Webdesigntuts+

Webdesigntuts+


Setting up Foundation With Sass and Compass

Posted: 02 Oct 2013 09:42 AM PDT

Sass is a great way to speed up front-end development in general, I use it in every one of my projects. Sass (as with all other preprocessors) allows for nested styles, functions and prewritten code in what are called mixins. Foundation has a few different versions, currently we’ve covered the most common HTML/CSS variants, but now let’s talk about a version built on Sass.

The team behind Foundation have not only used Sass to allow more friendly and dynamic styling, but they also offer greater customisation in the Sass version than in the HTML/CSS version.

Sass is great for those of you who, like me, are designers first and coders second. HTML and CSS are easy enough to learn and get the job done, but it’s a big jump to go from those simplistic languages to jQuery and JavaScript. Using Sass allows you to flirt with the idea of functions, variables, and reusable code which really helps in the transition toward more complex languages.


Getting Started: OS X

We’re going to dive right in here, and we’ll need to use terminal/command prompt to do so, but don’t be put off as it’s easier than it looks. To get going open up Terminal (OS X) and paste in the following:

sudo gem install zurb-foundation

It may take some time to process, but should result in a screen like this:

foundation-sass

Once you have completed this step, you’ll have essentially added the Foundation core to your system, allowing you to reuse it as you please without having to go to the Foundation site. What’s cool about taking this approach is that with another simple command you can update this core reusable framework to either the latest public build or release candidate. To do this simply paste one of the following into terminal:

sudo gem update zurb-foundation

sudo gem install zurb-foundation --pre

There’s one final step of setup and that’s to install Compass, which will allow us to create builds of Foundation for use in our projects. Again, this may take some time so be patient. Paste in the following:

sudo gem install compass

After installing you should have a Terminal output that looks like this:

foundation-compass-

Now that we have traversed the twists and turns of installing a ruby gem and keeping it up-to-date, let’s setup a project so we can begin to analyse this route of developing with Foundation.


Project Setup: OS X

Whenever you want to start a new project simply open up terminal and type “cd” (change directory), without the speech marks, then you’ll need to either type in a path, or create a folder for your project and drag it in to terminal. Make sure there’s a space between “cd” and your path, though.  Follow this with a command that will actually create your project:

compass create YOUR-PROJECT-NAME -r zurb-foundation --using foundation

Ensure you change the “YOUR-PROJECT-NAME” text for your actual project name and hit return. You’ll then see many many lines of information resulting in a choice. This choice dictates whether your Sass files will be converted to CSS files whenever you save them, or manually when you choose to convert them. I always use the second choice, which automatically creates CSS files whenever I save my Sass files. You should see something like this:

Foundation-project-build

You can see from this that a lot has happened and your Foundation-based project is born. Once you’ve chosen your compile method by using the “compass compile” or “compass watch” method, you may want to grab the code that you can see at the bottom of the image. This will just save you some time as it adds your output stylesheet and normalize.

From here you can start actually building your project using Sass.


Getting Started: Windows

If you’re using Windows you can still use the Sass version of Foundation, it just takes a few more steps to get going. First off, let’s go grab Ruby. Ruby is what will allow us to install this Sass-based version of Foundation. Unlike OS X, Windows does not have this installed by default, so we’ll need to go get it.

Now you’ll want the latest version (2.0.0 at time of writing) and depending on what architecture you are using, pick either the standard for 32-bit machines or x64 for 64-bit machines. If you are unsure which, you have to simply right-click “My Computer” and click “Properties” to find out. Failing that, go with 32-bit.

Once downloaded, run through the install. Don’t tick/change anything unless you know what you are doing. After installation is complete go to programs, then Ruby and click “Start Command Prompt with Ruby”. Once that has loaded up copy the following code and paste into the command prompt, you can do this by right clicking on the top bar and going to edit > paste.

gem install zurb-foundation

You’ll see something similair to this:

foundation-cmd1

You can also keep Foundation up-to-date using either the general public build command or the release candidate command:

gem update zurb-foundation

gem install zurb-foundation --pre

Now that we have the basics setup, let’s go ahead and install the final piece, Compass. Just like before, we can install Compass using a command:

gem install compass

Be patient, this will result in a screen like this:

foundation-cmd3

Project Setup: Windows

To actually create your project you’ll need to switch to a directory such as “Desktop” and run a command. You can do this by typing “cd” without the speech marks, followed by a space, followed by a path. To add the path itself you can either type one in, or simply drag and drop the folder into the command prompt.

Once you have changed directory, run this command, and be sure to change YOUR-PROJECT-NAME for your actual project name.

compass create YOUR-PROJECT-NAME -r zurb-foundation --using foundation

foundation-cmd4

And that’s it! Following this there aren’t any differences between Windows and OS X.


Useful Tool

If you do use OS X there’s a great development tool called CodeKit. This application automatically minifies JS, CSS, SCSS- and converts SCSS to CSS, meaning you can kill terminal and use CodeKit instead. It also offers error highlighting for both JS and SCSS, including libraries such as jQuery.

hero-window

I know what you’re thinking; “I don’t have OS X”. No worries, I haven’t forgotten about you Windows people- you can grab the closest equivalent application called Prepros.

prepros

Coming Up..

In the next part we’ll be looking at what you can do with this more dynamic Sass-based version of Foundation, including customising the build, changing default styles and much more.

Complete the Tuts+ Survey and Win Prizes

Posted: 02 Oct 2013 07:00 AM PDT

Tell us what you think, and get the chance to win fantastic prizes worth a total of $14,634!

We love the community of readers we have at Tuts+ and your opinion is incredibly valuable to us. This week, we're giving you the chance to have your say about Tuts+, and win a few outstanding prizes at the same time.

Read on to find out how to get involved and stand a chance of winning one of our prize bundles.


The Prizes

We have several fantastic prize bundles up for grabs! The winning entries will be chosen by the Tuts+ team based on the most interesting and memorable 50 word responses to the prize question. As an additional bonus, everyone who completes the survey will receive a coupon code for 50% off their first month’s membership of Tuts+ Premium (only valid for new members).

It just takes a few minutes to complete the survey, and we really value your opinion. You will play a very important role in helping us make Tuts+ better than ever. Follow the link below to complete the survey, or read on to find out more about the amazing prizes up for grabs!

Complete the Tuts+ Survey!


Grand Prize Winner (x1)


Runner Up (x1)

  • Grosocial Kickstart training on social media (worth $800)
  • Freshbooks Evergreen account for one year (worth $359)
  • Filter Forge 3.0 Professional Edition (worth $399)
  • Digest Magazine bundle (worth $19)
  • Tuts+ Premium one year subscription (worth $180)

Honourable Mentions (x3)

  • Freshbooks Evergreen account for one year (worth $359)
  • Filter Forge 3.0 Professional Edition (worth $399)
  • Digest Magazine bundle (worth $19)
  • Tuts+ Premium one year subscription (worth $180)

Editor Favourites (x5)

  • Freshbooks Evergreen account for one year (worth $359)
  • Digest Magazine bundle (worth $19)
  • Tuts+ Premium one year subscription (worth $180)

Prize Sponsors

  • Freshbooks: Say hello to cloud accounting and join over 5 million people using FreshBooks to make billing painless. FreshBooks is simple and intuitive, so accounting isn’t intimidating. Plus, with FreshBooks, your business is accessible from any computer or mobile device, and your data is always backed up and secure.

  • Media Temple: Imagine web hosting that grows with your site, no matter how much traffic comes your way. (mt) delivers professional-grade hosting, priced for everyone. Media Temple, powering designers and developers since 1998.

  • GroSocial: GroSocial makes it easy to look great on social networks, attract new fans through promotions, capture leads and connect with followers and monitor results

  • Filter Forge: Filter Forge is a high-end Photoshop plugin and a standalone program that lets novice and expert users create a wide variety of realistic and abstract textures and effects. It’s a must-have for any digital artist.


The Survey

It just takes a few minutes to complete the survey, and we really value your opinion. You will play a very important role in helping us improve Tuts+ and bring you better content and services. We'll be using the information we get from our readers to make Tuts+ better than ever!

Complete the Tuts+ Survey!


Competition Rules

  • Please don’t enter more than once – if you do, none of your entries will count.
  • The winners will be chosen by the Tuts+ team based on the most interesting and memorable 50 word responses to the prize question. We will then contact them via email.
  • Everyone who completes the survey will receive a coupon code for 50% off their first month’s membership of Tuts+ Premium (only valid for new members).
  • Envato employees are not eligible to enter the contest
  • The competition closes in exactly two weeks on Wednesday 16th October at 11:59pm PDT. Any entries received after that time won’t count.
  • We’d love to hear your honest feedback, so feel free to say exactly what you think!

Thanks for taking the time to share your thoughts about Tuts+. We really appreciate it, and look forward to hearing what you have to say!


Building Content Hierarchy Through Design

Posted: 02 Oct 2013 05:25 AM PDT

Way back at the beginning of this series, we talked a lot about content and the importance content has in any design work. It's something that should obviously be looked at and sorted through before you start any project, but you only get to see the real results of this work once you begin designing.

When working with content at the beginning of the process, we should try to nail down a structure that works for the content. Also think back to the sketching and wireframing stages of the process. Here, we looked at the ideas we had for laying out our content in a way that worked well and had a good hierarchy to it. Now, we want to make that content hierarchy work visibly and visually through our designs.

The Fusion Ads homepage uses content to introduce the user to its product, whilst also showing the product in action.

The Fusion Ads homepage uses content to introduce the user to its product, whilst also showing the product in action.

So how do we do that? First up we need to decide what in our content is relevant to our users and why so – we need to be able to justify the decisions we make. We also need to look at what needs to be the focus in our content, the bit of information that we really want our users to pay attention to. Then, we need to start translating this into a more visual form.

We do this by laying out the content in a way that relates to our original desired content structure. This isn't just about headings and paragraphs either, we need to think more about how the content reads once it's on the page, and the emphasis that needs to be placed on all the different elements. Once we have some basic content in place, we can start to use different tools and aids to help focus our attention on making the certain bits that need to be emphasised stronger and stand out more.

At the bottom of the Fusion Ads homepage, they have a FAQ where all the information is balanced and easy to read, which is super important for those kinds of content.

At the bottom of the Fusion Ads homepage, they have a FAQ where all the information is balanced and easy to read, which is super important for those kinds of content.

Tools and Aids to Help You

Size & Contrast

The size can relate to both the size of the individual bits of content you have in your design as well as other elements, such as imagery, and how these play off against each other. For example, use size to draw attention to main headings. Ensuring that they are perhaps larger than the main content shows that they have a different level of importance and are something that the user needs to pay attention to.

Size is also good for breaking up the content on your page into smaller chunks and emphasising small parts of content that are important. You can also use size to take the emphasis away from certain elements or bits of content that you want to be less noticeable or aren't as important as the rest. This also ties in heavily to contrast – creating a more visual content hierarchy that is quite contrasting adds to the visual impact in your design.

Font Weights & Font Styles

Using font weights and styles cleverly is a great way to add more subtle emphasis to parts of your content that might be interspersed and dotted around with the rest of the main content that you have. Using font weights that are heavier than the rest of your content (such as a bold version of a typeface you have in your design) or in a different font style (such as italic) can be great for adding emphasis to little bits of content you might want to pull out and give a bit more recognition, without overpowering the rest of the design.

Also use font weights and styles to add impact and strong emphasis to your designs. For example, if the design style permits, then using a 'light' weight of a typeface (which is often much thinner than standard font weights) can work well to add impact to large headings, like the example you can see below.

Although many of the A List Apart articles are extremely content-heavy, they still manage to display that content in a really balanced, digestible way - and their use of different font sizes and styles helps with this.

Although many of the A List Apart articles are extremely content-heavy, they still manage to display that content in a really balanced, digestible way. Their use of different font sizes and styles helps with this.

Colour

Varying colour is another effective with which you can divide and display content in your designs. This doesn't mean you go splashing colour everywhere, instead use it to subtly add focus to areas of your design, either by blocking off areas of content or using it within your content to add emphasis to text that might require it.

Position & Alignment

How you position your content has a big impact on how it's perceived by your users. Ensuring that you work to your grid system and align your content well is super important. Alignment also creates order in your design, helping to tell the story of your website and guide your users on a journey through your website.

Colour, alignment and grids play a large part in The Verge's website design. There's a lot of content to look at, but using colour they can make it easier to focus on what modules or bits of text are different to each other.

Colour, alignment and grids play a large part in The Verge‘s website design. There’s a lot of content to look at, but using colour they can make it easier to focus on what modules or bits of text are different to each other.

Proximity & Whitespace

Looking at how close or far apart elements in your design are spaced is essential to building a visual content hierarchy that has impact and makes sense. If elements which are related are too far apart, it will break the flow for the user when they're reading the page. However, the same can be said for elements that are spaced far too close together. Things which are too cramped are going to be difficult to understand in terms of what has the most importance or should have the most emphasis. As a user, it's then going to be difficult to understand how to find your way around.

Gridset use a lot of whitespace on their homepage - along with different text styles and accompanying imagery - to highlight key features and examples.

Gridset use a lot of whitespace on their homepage – along with different text styles and accompanying imagery – to highlight key features and examples.

Assignments

Now you know about different ways you can add visual weight or emphasis to particular elements, I want you to put it into practice in your own design. Try to integrate one of each of the techniques displayed above to add more of a visual content hierarchy into your design.

No comments:

Post a Comment

//SEO SCRIPT POWERED BY www.alltechbuzz.in