Implementing Push Notifications: Setting Up & Firebase

You know those the little notification windows that pop up in the top right (Mac) or bottom right (Windows) corner when, for example, a new article on our favorite blog or a new video on YouTube was uploaded? Those are push notifications.
Part of the magic of these notifications is that they can appear even when we’re not currently on that website to give us that information (after you’ve approved it). On mobile devices, where supported, you can …

Implementing Push Notifications: Setting Up & Firebase is a post from CSS-Tricks

Link: https://css-tricks.com/implementing-push-notifications-setting-firebase/

Be Slightly Careful with Sub Elements of Clickable Things

Say you want to attach a click handler to a

Strongly Held Opinions, Gone Away

I received a really wonderful question from Bryan Braun the other day during a workshop I was giving at Sparkbox. He asked if, over the years, if there were opinions about web design and development I strongly held that I don’t anymore.
I really didn’t have a great answer at the time, even though surely if I could rewind my brain there would be some embarrassing ones in there.

At the risk of some heavy self-back-patting, this is exactly the …

Strongly Held Opinions, Gone Away is a post from CSS-Tricks

Link: https://css-tricks.com/strongly-held-opinions-gone-away/

Double Opt-In Email Intros

You know those those “introduction" emails? Someone thinks you should meet someone else, and emails happen about it. Or it’s you doing the introducing, either by request or because you think it’s a good idea. Cutting to the chase here, those emails could be done better. Eight years ago, Fred Wilson coined the term "double opt-in intro".

This is how it can work.
You’re doing the vetting
Since you’re writing the emails here, it’s your reputation at stake here. …

Double Opt-In Email Intros is a post from CSS-Tricks

Link: https://css-tricks.com/double-opt-email-intros/

Using Custom Properties to Modify Components

Instead of using custom properties to style whole portions of a website’s interface I think we should use them to customize and modify tiny components. Here’s why.
Whenever anyone mentions CSS custom properties they often talk about the ability to theme a website’s interface in one fell swoop. For example, if you’re working at somewhere like a big news org then we might want to specify a distinct visual design for the Finance section and the Sports section – buttons, …

Using Custom Properties to Modify Components is a post from CSS-Tricks

Link: https://css-tricks.com/using-custom-properties-modify-components/

Saving SVG with Space Around It from Illustrator

There are a number of ways to export graphics from Illustrator. Some of them aren’t particulary useful (Save As), some of them don’t support SVG (Export for Web), some of them produce good output but have limited options that don’t allow preserving space around the art (Export As). The only way to output SVG preserving the space around the art is export the artboard itself, which is only an option under the Export for Screens area.

Saving SVG with Space Around It from Illustrator is a post from CSS-Tricks

Link: https://css-tricks.com/saving-svg-space-around-illustrator/

Visual Email Builder Apps

I bet y’all know that apps like Campaign Monitor and MailChimp have visual email builders built right into them. You drag and drop different types of content right into a layout. You edit text right within the email. It’s nice. It’s a lot nicer than editing the quagmire of HTML underneath, anyway!
But not everybody needs all the rest of the features that those apps bring, like list management and the actual sending of the email. Perhaps you have an …

Visual Email Builder Apps is a post from CSS-Tricks

Link: https://css-tricks.com/visual-email-builder-apps/

Using the Paint Timing API

It’s a great time to be a web performance aficionado, and the arrival of the Paint Timing API in Chrome 60 is proof positive of that fact. The Paint Timing API is yet another addition to the burgeoning Performance API, but instead of capturing page and resource timings, this new and experimental API allows you to capture metrics on when a page begins painting.
If you haven’t experimented with any of the various performance APIs, it may help if …

Using the Paint Timing API is a post from CSS-Tricks

Link: https://css-tricks.com/paint-timing-api/

(An Interview About) imgix Page Weight

Imgix has been a long-time display ad sponsor here on CSS-Tricks. This post is not technically sponsored, I just noticed that they released a tool for analyzing image performance at any given URL that is pretty interesting.
We know web performance is a big deal. We know that images are perhaps the largest offender in ballooning page weights across the web. We know we have tools for looking at page performance as a whole. It seems fairly new to me …

(An Interview About) imgix Page Weight is a post from CSS-Tricks

Link: https://css-tricks.com/interview-imgix-page-weight/

A Poll About Pattern Libraries and Hiring

I was asked (by this fella on Twitter) a question about design patterns. It has an interesting twist though, related to hiring, which I hope makes for a good poll.

Note: There is a poll embedded within this post, please visit the site to participate in this post’s poll.
I’ll let this run for a week or two. Then (probably) instead of writing a new post with the results, I’ll update this one with the results. Feel free to comment …

A Poll About Pattern Libraries and Hiring is a post from CSS-Tricks

Link: https://css-tricks.com/poll-pattern-libraries-hiring/