background preloader


Facebook Twitter

Pattern Library. The MailChimp Pattern Library is a byproduct of our move to a responsive, nimble, and intuitive app.

Pattern Library

Constant iteration requires both an efficient workflow and a well defined collection of atomic elements that can assemble new UIs quickly without accruing new technical or design debt. We’re also solving an internal communication problem by documenting and assembling a reference site of our patterns. A common lexicon of code and UI elements benefits us in a few ways: We can build consistently and focus on workflows and logic, not web forms and list items We can reuse code instead of roping in a developer We can maintain our code by seeing our patterns in one place, define elements in our application, and keep redundancy to a minimum We guard our pattern library jealously, and add new patterns only when the case for doing so is sound. Don’t Squash Me: Using min-width on Fluid Images. It‘s pretty common to set max-width: 100% on images in fluid layouts, so that they adapt to fit their container: When given room to breath, it'll take up as much space as it needs: And when restricted to a smaller container (e.g. a narrow screen), it'll automatically scale down to fit: That’s all great.

Don’t Squash Me: Using min-width on Fluid Images

But there’s a limit to how small some images should reasonably be. The text in this image is barely readable when scaled down for smartphone screens. Tips, Resources and Patterns for Responsive Web Design. Responsive Measure: A jQuery plugin for responsive typography. Responsive Measure is a simple script that allows you to pass in a selector (ideally the container where your primary content will go) which generates the ideal font size needed to produce the ideal measure for your text.

Responsive Measure: A jQuery plugin for responsive typography

It also has the ability to generate a resolution independent font-scale based on the ideal font-size. $(document).on('responsiveMeasureUpdated', function(e, data) { $('.giga').css('fontSize', data.fontRatios[9] + 'px'); $('h1').css('fontSize', data.fontRatios[8] + 'px'); $('h2').css('fontSize', data.fontRatios[7] + 'px'); $('h3').css('fontSize', data.fontRatios[6] + 'px'); $('p').css('fontSize', data.fontRatios[5] + 'px'); $('.sm').css('fontSize', data.fontRatios[4] + 'px'); }); Check out the examples to see the plugin in action.

5 Useful CSS Tricks for Responsive Design. Making the design to be responsive is very easy as shown in my Responsive Design in 3 Steps tutorial, but maintaining the elements to look aesthetically balanced on all breakpoint layouts is an art.

5 Useful CSS Tricks for Responsive Design

Today I'm going to share 5 of my commonly used CSS tricks along with sample cases for coding responsive designs. They are simple CSS properties such as min-width, max-width, overflow, and relative value — but these properties play an important part in responsive design. View Demos. Responsive Design: Streamlining Your Process. How to use This Guide is most relevant to Sencha Touch, 1.x. Src helps you dynamically resize images for the ever increasing number of mobile screen sizes. We’ve previously done a lot of work in Sencha Touch to make your UI resolution independent, and Src expands this to include your image assets. It’s easy to use, and in this guide, we run through the main API options for the service. Src is essentially a proxy that lies between image assets (hosted either on your own server or by a third party) and the browser or application requesting them via HTTP.

The API is accessed entirely via placing a prefix before the original image URL. Let's start with a quick example. To use Src in its default mode, you simply prefix your absolute src attribute with Add that into the tag and your image will be magically resized for a smaller, mobile screen: In this particular case, the image is of landscape orientation, and so width becomes the constraining dimension.

Defined sizing. Foodsense. Initializr - Start an HTML5 Boilerplate project in 15 seconds! Golden Grid System. Gridpak - The Responsive grid generator. PhoneGap. Skeleton: Beautiful Boilerplate for Responsive, Mobile-Friendly Development. A fix for iPhone viewport scale bug. Jeremy first raised his concern (about iPhone viewport scaling) and later by Andreas.

A fix for iPhone viewport scale bug

My early view was stated here. Since this issue was raised, I have been trying to find ways to work around this problem. How to Build a Responsive Thumbnail Gallery. Recently I set out to build a responsive thumbnail gallery.

How to Build a Responsive Thumbnail Gallery

I expected it to take me a few minutes, but in reality it took me a few hours to work through. We’ll walk through a similar process today to help you get your mind wrapped around how it works. FitText - A plugin for inflating web type. 8 Responsive jQuery Slider Plugins. Whether you’re already a pro at creating responsive web sites or your just learning what it’s all about, it’s good to have some scripts handy that you can easily integrate into your site.

8 Responsive jQuery Slider Plugins

We all know how popular image and content sliders are now, and for good reason. So we decided to round up some jQuery slider plugins that are already responsive – meaning they will adapt to the size of their container. Flexslider FlexSlider is an awesome, fully responsive jQuery slider plugin. In other words, it resizes to fit the screen on which it is displayed, and looks good doing it. Blueberry Blueberry is an experimental opensource jQuery image slider plugin which has been written specifically to work with fluid/responsive web layouts. unoslider unoslider is a fully responsive, touch enabled, mobile optimized jQuery slider plugin.

Responsive Newsletters

Screenfly by QuirkTools — Test Your Website at Different Screen Resolutions. Navigation. Responsive Web Design. Foreword by Jeremy Keith From mobile browsers to netbooks and tablets, users are visiting your sites from an increasing array of devices and browsers.

Responsive Web Design

Are your designs ready? Learn how to think beyond the desktop and craft beautiful designs that anticipate and respond to your users’ needs. Ethan Marcotte will explore CSS techniques and design principles, including fluid grids, flexible images, and media queries, demonstrating how you can deliver a quality experience to your users no matter how large (or small) their display. Contents. Adaptive Images in HTML.

CSS: Elastic Videos. While I was coding the Elemin Theme (a responsive WordPress theme that I recently designed), one of the challenges that I faced was to make the embedded videos elastic.

CSS: Elastic Videos

Using the max-width:100% and height:auto trick works with native HTML5 video tag, but it doesn't work with embed code using iframe or object tag. After hours of experimenting and Googling, I finally found a trick on how to achieve this. If you are creating a responsive design, this simple CSS trick will come in handy. View the final demo and resize your browser window to see it in action. View Demo Elastic Videos. Joshje/Responsive-Enhance - GitHub.