Getting Started with Vue Plugins

In the last months, I’ve learned a lot about Vue. From building SEO-friendly SPAs to crafting killer blogs or playing with transitions and animations, I’ve experimented with the framework thoroughly.

But there’s been a missing piece throughout my learning: plugins.

Most folks working with Vue have either comes to rely on plugins as part of their workflow or will certainly cross paths with plugins somewhere down the road. Whatever the case, they’re a great way to leverage existing …

The post Getting Started with Vue Plugins appeared first on CSS-Tricks.

Read more

20+ Best Photoshop Watercolor Brushes

Watercolor design is a popular trend, not just used in digital backgrounds, but also in greeting card and wedding invitation designs. In this post, we’re sharing the best Photoshop watercolor brushes for creating your own unique watercolor designs. If you’ve been looking for a way to make designs look more vibrant with colors, using a […]
Read more

30+ Best Poster Mockup Templates

Without the right poster mockup to showcase your work professionally, your poster design doesn’t have the chance to stand out from the crowd. It’s often easy to overlook the way you present and showcase your designs! That’s why it’s worth investing in a set of useful mockup templates. If you’re working on a poster design […]
Read more

HTML for Zip Codes

I just overheard this discussion on Twitter, kicked off by Dave.

Me (coding a form): <input id=”zip” type=”number”>
Tiny Devil (appears on shoulder): Yaaas! I love the optimism, ship it!
Me: Wait, why are you here? Is this going to blow up on me? What do you know that I don’t?

— Dave SPOOPert (@davatron5000) October 9, 2018

It seems like zip codes are just numbers, right? So…

<input id="zip" name="zip" type="number">

The advantage there being able to take …

The post HTML for Zip Codes appeared first on CSS-Tricks.

Read more

HTML for Numeric Zip Codes

I just overheard this discussion on Twitter, kicked off by Dave.

Me (coding a form): <input id=”zip” type=”number”>
Tiny Devil (appears on shoulder): Yaaas! I love the optimism, ship it!
Me: Wait, why are you here? Is this going to blow up on me? What do you know that I don’t?

— Dave SPOOPert (@davatron5000) October 9, 2018

It seems like zip codes are just numbers, right? So…

<input id="zip" name="zip" type="number">

The advantage there being able to take …

The post HTML for Numeric Zip Codes appeared first on CSS-Tricks.

Read more

Sass Selector Combining

Brad Frost was asking about this the other day…

Sass people, which way do you do it and why? pic.twitter.com/dIBA9BIuCO

— Brad Frost (@brad_frost) October 1, 2018

.c-btn {
&__icon {
...
}
}

I guess that’s technically “nesting” but the selectors come out flat:

.c-button__icon { }

The question was whether you do that or just write out the whole selector instead, as you would with vanilla CSS. Brad’s post gets into all the pro’s and con’s of both …

The post Sass Selector Combining appeared first on CSS-Tricks.

Read more

Lazy Loading Images with Vue.js Directives and Intersection Observer

When I think about web performance, the first thing that comes to my mind is how images are generally the last elements that appear on a page. Today, images can be a major issue when it comes to performance, which is unfortunate since the speed a website loads has a direct impact on users successfully doing what they came to the page to do (think conversation rates).

Very recently, Rahul Nanwani wrote up an extensive guide on lazy loading images

The post Lazy Loading Images with Vue.js Directives and Intersection Observer appeared first on CSS-Tricks.

Read more

30 Best Website Color Schemes of 2018

Does it ever seem like certain website color schemes just get all the attention? As with every other aspect of web design, there are color schemes that tend to trend more than others. Bright colors, stark palettes, and even some mismatching schemes are elements of color that are trending. Here’s a look at some of […]
Read more