State of the Word 2018: Learn Blocks Deeply

With snow lightly falling in downtown Nashville, Matt Mullenweg took the stage for his annual State of the Word address. The speech wrapped up another successful WordCamp US 2018 full of talks, networking, and fun. Mullenweg began by letting WordPress reintroduce itself. Reminding the community it was built on the constitution and is powered by …
The post State of the Word 2018: Learn Blocks Deeply appeared first on Torque.
Read more

Best WordPress Template: Monstroid2 vs. Divi vs. Avada

Building a website, you can go for a good template, a better template or for a super-cool one. You can even go for the very best template in the market. However, how do you learn which theme is currently the best? Template market is vast, and it’s hard to single out the best among best-selling …
The post Best WordPress Template: Monstroid2 vs. Divi vs. Avada appeared first on Torque.
Read more

What You Need to Know About Geotargeting in WordPress

Designing a WordPress website that appeals to your audience and effectively guides them through the user journey takes a lot of work. It’s not just the development of a user persona and sales funnel that has to be carefully thought out. When building websites for a geographically distinct audience–be it for a smaller local audience …
The post What You Need to Know About Geotargeting in WordPress appeared first on Torque.
Read more

What do you name color variables?

What naming scheme do you use for color variables?
Have you succeeded at writing CSS that uses color variables in a manner agnostic to the colors they represent?
I’ve tried all of the following, and I have yet to succeed at writing CSS that works well with any color scheme. ☹️

— Lea Verou (@LeaVerou) October 14, 2018

I remember the very first time I tried Sass on a project. The first thing I wanted to do was variablize my …

The post What do you name color variables? appeared first on CSS-Tricks.

Read more

Accessible SVG Icons With Inline Sprites

This is a great look at accessible SVG markup patterns by Marco Hengstenberg. Here’s the ideal example:

<button type="button">
Menu
<svg class="svg-icon"
role="img"
height="10"
width="10"
viewBox="0 0 10 10"
aria-hidden="true"
focusable="false">
<path d="m1 7h8v2h-8zm0-3h8v2h-8zm0-3h8v2h-8z"/>
</svg>
</button>

Notes:

  • It’s not the <svg> itself that is interactive — it’s wrapped in a <button> for that.
  • The .svg-icon class has some nice trickery, like em-based sizing to match the size of the text it’s next to, and currentColor to match the color.
  • Since

The post Accessible SVG Icons With Inline Sprites appeared first on CSS-Tricks.

Read more

100+ Christmas Mockups, Icons, Graphics & Resources

Christmas is on the way! Whether you’re designing festive party flyers, looking for Christmas mockups, or a holiday icon set, we have a great collection for you today! We’ve pulled together a fantastic collection of Christmas flyers and templates, mock-ups, icons, vectors, and much more. Some of them are completely free, some cost a few […]
Read more

Compound Components in React Using the Context API

Compound components in React allow you to create components with some form of connected state that’s managed amongst themselves. A good example is the Form component in Semantic UI React.

To see how we can implement compound components in a real-life React application, we’ll build a compound (multi-part) form for login and sign up. The state will be saved in the form component and we’ll put React’s Context AP to use to pass that state and the method from …

The post Compound Components in React Using the Context API appeared first on CSS-Tricks.

Read more

Edge’s Announcements

The public-consumption blog post:

Ultimately, we want to make the web experience better for many different audiences. People using Microsoft Edge (and potentially other browsers) will experience improved compatibility with all web sites, while getting the best-possible battery life and hardware integration on all kinds of Windows devices. Web developers will have a less-fragmented web platform to test their sites against, ensuring that there are fewer problems and increased satisfaction for users of their sites; and because we’ll continue …

The post Edge’s Announcements appeared first on CSS-Tricks.

Read more