How to Import a Sass File into Every Vue Component in an App

If you’re working on a large-scale Vue application, chances are at some point you’re going to want to organize the structure of your application so that you have some globally defined variables for CSS that you can make use of in any part of your application.

This can be accomplished by writing this piece of code into every component in your application:

<style lang="scss">
@import "./styles/_variables.scss";
</style>

But who has time for that?! We’re programmers, let’s do this programmatically.

Why?…

The post How to Import a Sass File into Every Vue Component in an App appeared first on CSS-Tricks.

Read more

Why Using reduce() to Sequentially Resolve Promises Works

Writing asynchronous JavaScript without using the Promise object is a lot like baking a cake with your eyes closed. It can be done, but it’s gonna be messy and you’ll probably end up burning yourself.

I won’t say it’s necessary, but you get the idea. It’s real nice. Sometimes, though, it needs a little help to solve some unique challenges, like when you’re trying to sequentially resolve a bunch of promises in order, one after the other. A trick …

The post Why Using reduce() to Sequentially Resolve Promises Works appeared first on CSS-Tricks.

Read more

Top 5 Graphic Design Trends of 2018 (+ a Preview of 2019)

What’s hot in graphic design? One of the things people always want to talk to me about is graphic design trends. Here’s a recap of the top graphic design trends of 2018, plus a little preview of what’s likely on the horizon for 2019. It’s such an interesting topic because there are trends that change […]
Read more

First Look at The Twenty Nineteen Default Theme

Allan Cole, a WordPress Theme Imagineer at Automattic has published the first glimpses of the Twenty Nineteen default theme slated to ship with WordPress 5.0. Cole is leading the theme while Kjell Regstad who does Product and Editorial Design at Automattic will be a design coach. Twenty Nineteen Blog Post (more…)
Read more

Why don’t we add a `lovely` element to HTML?

<person>, <subhead>, <location>, <logo>… It’s not hard to come up with a list of HTML elements that you think would be useful. So, why don’t we?

Bruce Lawson has a look. The conclusion is largely that we don’t really need to and perhaps shouldn’t.

By my count, we now have 124 HTML elements, many of which are unknown to many web authors, or regularly confused with each other—for example, the difference between <article> and <section>. …

The post Why don’t we add a `lovely` element to HTML? appeared first on CSS-Tricks.

Read more

How to Develop a Strong Internal Linking Structure for Your Website (4 Key Tips)

We’re willing to bet that you’re always on the lookout for ways to drive more traffic to your site. In addition, keeping that traffic around long enough to experience a solid chunk of your content is vital. However, it can be a challenge to find easy ways to accomplish both of those goals. While there …
The post How to Develop a Strong Internal Linking Structure for Your Website (4 Key Tips) appeared first on Torque.
Read more

WordPress.com

Hey! Chris here, with a big thanks to WordPress, for not just their sponsorship here the last few months, but for being a great product for so many sites I’ve worked on over the years. I’ve been a web designer and developer for the better part of two decades, and it’s been a great career for me.

I’m all about learning. The more you know, the more you’re capable of doing and the more doors open for you, so …

The post WordPress.com appeared first on CSS-Tricks.

Read more

Choosing the Right WordPress Theme for Your Business in 2019

Are you planning your next website update? WordPress has hundreds of thousands of themes you can download for free. It can be hard to find the perfect one. You need something responsive, engaging, and easy to use. How do you know you are making the best choice of WordPress theme for your company? We’ve compiled …
The post Choosing the Right WordPress Theme for Your Business in 2019 appeared first on Torque.
Read more

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