AEA12, Handcrafted Patterns

When learning a new creative skill, we often follow a progression: Imitation, repetition, and innovation. We learn by dissecting the work of others, building our own tools, and later adding our own uniqueness. We’ll apply that thinking to designing flexible interfaces in an HTML5 and CSS3 world, exploring the process of crafting your own markup and style pattern library. What lessons can we learn from breaking websites into micro frameworks? What happens to these patterns under varying browsing conditions? Dan will share how patterns have helped him build bulletproof websites.

Handcrafted Patterns
Dan Cederholm
@simplebits

Everything comes from “The Gut”

Building websites is 99% convincing yourself that you’re doing the right thing.

Web design 10 years ago was probably easier than today. HTML5, CSS3, Devices, Web Fonts, Grids!

Patterns.

Everyone uses patterns. It’s not cheating. Even Pixar does it. http://smpl.bt/pixarrules

We don’t have to reinvent the wheel with every new project.

The banjo is a quirky, misunderstood instrument.

Steps to learning the banjo.

Steps to learning web design.

Repetition: What I’ve learned from patterns

Patterns in…

Break down problems into small bits.

Microformats. Start as simple as possible. Solve a specific problem.

Pears project. http://pea.rs

Solving small problems in HTML5

Placeholder text. Formholder text.

In HTML5 there is a placeholder attribute. More semantic than using JS. There is a JQuery Polyfill for unsupported browsers.

Aria Landmark Roles. Used to mark very specific portions of the page. i.e. role=“banner”, role=“navigation” instead of an ID or class.

Less Class. nth-child(even) instead of class=“alt”

Don’t rely on advanced selectors for layout!

Slats - Image left, title right, meta data - they’re everywhere. HTML5 allows you to touch any part of the slat (title, image and body content).

Sass

Patterns in CSS itself. Sass is a CSS preprocessor. CSS needed to be powerful enough without being overly complex.

Every website is a learning tool. We learn by viewing source. So the formatting of the CSS files are important.

Using Sass

What does it do? Enables DRY (Don’t Repeat Yourself) principle.

Respond or Adapt

The ideal is…

But you may not be able to start over with a responsive site.

Dribble for example. Instead of starting over, they created an adaptive version for small screens using Media Queries.

Adapt.css file

To wrap up:

Related Images

Comments

Add a Comment

  • G. Brad Hopkins's avatar
    • Author: G. Brad Hopkins
    • About Me: I bought my first computer - an Apple Performa 6320 - when I was in college and have been building websites ever since. I like long walks in Illustrator and candle lit dinners with ExpressionEngine.
    • @gbradhopkins
    Upcoming Events
    • Sorry, I don't have any planned events at this time.
    Tweet

    The redesign of InThePanhandle begins again. Developer Diary: ITP Day 5 - http://t.co/CCGaHDG5IO