Freelancing

CSS-Tricks

The Web in 2020: Extensibility and Interoperability

10 hours 18 minutes ago

In the past few years, we’ve seen a lot of change and diversion in regard to web technologies. In 2020, I foresee us as a web community heading toward two major trends/goals: extensibility and interoperability. Let’s break those down.

Extensibility

Extensibility describes how much someone can take a particular technology and extend it to their own needs. We’ve built a component-based web over the last few years in terms of both development (React components! Vue components! Svelte components! Web components!) and design (Design systems!). Interesting … Read article

The post The Web in 2020: Extensibility and Interoperability appeared first on CSS-Tricks.

Una Kravets

Bad accessibility equals bad quality

10 hours 19 minutes ago

Here’s a smart post from Manuel Matuzovic where he digs into why accessibility is so important for building websites:

Web accessibility is not just about keyboard users, color contrast or screen readers. Accessibility is a perfect indicator for the quality of a website. Accessibility is strongly interlocked with other areas of web design and web development. If your website is accessible, it usually means that it’s inclusive, resilient, usable, it offers great UX for everyone, and it’s fast.

I love … Read article

The post Bad accessibility equals bad quality appeared first on CSS-Tricks.

Robin Rendle

Hamburger ☰ Heaven

15 hours 50 minutes ago

A pleasant little romp through iconography and culture from Sophia Lucero. The "hamburger" menu icon we're familiar with now is really a sign from Taoist cosmology.

Besides ☰, which represents heaven 天, we have ☱ for lake/marsh 澤, ☲ for fire 火, ☳ for thunder 雷, ☴ for wind 風, ☵ for water 水, ☶ for mountain 山, and ☷ for ground 地.

We shouldn't be using it for a menu icon, but it makes me wonder if we ought to … Read article

The post Hamburger ☰ Heaven appeared first on CSS-Tricks.

Chris Coyier

Edgium

1 day 3 hours ago

January 15th, 2020 was the day Microsoft Edge went Chromium. A drop in browser engine diversity. There is a strong argument to be made that's not good for an ecosystem. Looked at another way, perhaps not so bad:

Perhaps diversity has just moved scope. Rather than the browser engines themselves representing diversity, maybe forks of the engnies we have left can compete against each other. Maybe starting from a strong foundation is a good place to start innovating.

Read article

The post Edgium appeared first on CSS-Tricks.

Chris Coyier

Searching the Jamstack

1 day 7 hours ago

Here's Raymon Camden on adding site search functionality to a site that is statically hosted. A classic trick! Just shoot 'em to Google and scope the results to your site:

<form action="https://www.google.com/search" method="get"<input type="search" name="q" value="site:https://www.raymondcamden.com " autofocus size="50"<input type="submit" value="Search"</form

I'd probably use JavaScript to inject that site: stuff before sending them over just so the search field doesn't have that weird prefilled stuff in there, which might be off-putting. We covered that here.

Raymond then … Read article

The post Searching the Jamstack appeared first on CSS-Tricks.

Chris Coyier

JAMstack vs. Jamstack

1 day 16 hours ago

It's just a word to evoke the idea that serving as much as you can statically while using client-side code and hitting serverless APIs for any needs after that.

The "official website" changed their language from JAMstack (evoking the JavaScript, APIs, and Markup acronym) to Jamstack. It's nothing to be overly concerned about, but I care as someone who has to write the word in a professional context quite often. If we're going to "Jamstack," so be it.

There are … Read article

The post JAMstack vs. Jamstack appeared first on CSS-Tricks.

Chris Coyier

What makes a site Jamstack?

1 day 17 hours ago

I admit I didn’t know the ins and outs of what the Jamstack is until recently, despite having heard the term so frequently. I think I’m not alone in this. It’s an elusive term — how is it different from what came before, especially considering it shares so many similarities? Thankfully, Divya Sasidharan is breaking down so many aspects of Jamstack every day of January in a series of posts called #JAMuary.

One of the posts in this series … Read article

The post What makes a site Jamstack? appeared first on CSS-Tricks.

Sarah Drasner

positionstack

1 day 17 hours ago

(This is a sponsored post.)

Say you have an address that your user typed in, like 1600 Pennsylvania Avenue NW, Washington, DC, USA, and now you need more information about it. Maybe you need the proper country code. Maybe you need the latitude and longitude. Maybe you need the postal code.

positionstack is an API that does just that.

It works in reverse, too. So say you've got latitude and longitude, you might want to find out what … Read article

The post positionstack appeared first on CSS-Tricks.

Chris Coyier

How to Turn a Procreate Drawing into a Web Animation

2 days 10 hours ago

I recently started drawing on my iPad using the Procreate app with Apple Pencil. I’m enjoying the flexibility of drawing this way. What usually keeps me from painting at home are basic things, like setup, cleaning brushes, proper ventilation, and other factors not really tied to the painting itself. Procreate does a pretty nice job of emulating painting and drawing processes, but adding digital features like undo/redo, layers, and layer effects.

Here’s a Procreate painting I made that I wound … Read article

The post How to Turn a Procreate Drawing into a Web Animation appeared first on CSS-Tricks.

Sarah Drasner

The Best Color Functions in CSS?

2 days 10 hours ago

I've said before that HSL is the best color format we have. Most of us aren't like David DeSandro, who can read hex codes. HSL(a) is Hue, Saturation, Lightness, and alpha, if we need it.

hsl(120, 100%, 40%)

Hue isn't intuitive, but it's not that weird. You take a trip around the color wheel from 0 to 360. Saturation is more obvious where 0% has all the color sucked out, like grayscale, and 100% is fully rich color at … Read article

The post The Best Color Functions in CSS? appeared first on CSS-Tricks.

Chris Coyier

Getting Started with Front End Testing

2 days 16 hours ago

Amy Kapernick covers four types of testing that front-end devs could and should be doing:

  1. Linting (There's ESLint for JavaScript and Stylelint and/or Prettier for CSS.)
  2. Accessibility Testing (Amy recommends pa11y, and we've covered Axe.)
  3. Visual Regression Testing (Amy recommends Backstop, and we've covered Percy.)
  4. End to End Testing (There's Cypress and stuff like jest-puppeteer.)

Amy published something similar over on 24 ways, listing out 12 different testing tools.

As long as we're being … Read article

The post Getting Started with Front End Testing appeared first on CSS-Tricks.

Chris Coyier

The Modern Lovers

2 days 16 hours ago

I love stuff like this.

  1. The Modern Lovers, a rock band in the 70's, play a show in Boston, probably having some poster of their own for the show.
  2. Mike Joyce is inspired by the music and combines his love of it with the design style of Swiss Modernism to create a new poster for it.
  3. Pete Barr is inspired by Mike's Swissted project and animates the design for it, giving it a ton of new life.

This … Read article

The post The Modern Lovers appeared first on CSS-Tricks.

Chris Coyier

Timeless Web Dev Articles

4 days 16 hours ago

Pavithra Kodmad asked people for recommendations on what they thought were some of the most timeless articles about web development that have changed their perspective in some way. Fun! I'm gonna scour the thread and link up my favorites (that are actually articles, although not all of them are super directly related to web dev).

Read article

The post Timeless Web Dev Articles appeared first on CSS-Tricks.

Chris Coyier

Eleventy Love

5 days 15 hours ago

Been seeing a lot of Eleventy action lately. It's a smaller player in the world of static site generators, but I think it's got huge potential because of how simple it is, yet does about anything you'd need it to do. It's Just JavaScript™.

Read article

The post Eleventy Love appeared first on CSS-Tricks.

Chris Coyier

Autumn (macOS window manager)

5 days 15 hours ago

I love how nerdy this is. Autumn allows you to write JavaScript to control your windows. Get this window, move it over here. Nudge this window over. There are all sorts of APIs, like keyboard command helpers and doing things on events, like waking up from sleep.

I love that it exists, but for the moment, my window management mostly consists of: grab this window and chuck it on the left half of the screen, and grab this window and Read article

The post Autumn (macOS window manager) appeared first on CSS-Tricks.

Chris Coyier

Third-Party Components at Their Best

6 days 10 hours ago

I'm a fan of the componentization of the web. I think it's a very nice way to build a website at just about any scale (except, perhaps, the absolute most basic). There are no shortage of opinions about what makes a good component, but say we scope that to third-party for a moment. That is, components that you just use, rather than components that you build yourself as part of your site's unique setup.

What makes a third-party component … Read article

The post Third-Party Components at Their Best appeared first on CSS-Tricks.

Chris Coyier

NetNewsWire and Feedbin

6 days 10 hours ago

NetNewsWire is one of the classic RSS apps, debuting in 2002. I was pretty stoked when it went 5.0 and was open-sourced in August 2019! You can snag it right here. (Sorry, Mac only.)

It's super nice, is fast, and looks great. It has just the right features.

But... I thought, at least at first, that really prefer websites for reading RSS content. I have multiple machines. I have mobile devices. I don't want my RSS to be limited … Read article

The post NetNewsWire and Feedbin appeared first on CSS-Tricks.

Chris Coyier

Thinking Through Styling Options for Web Components

6 days 15 hours ago

Where do you put styles in web components?

I'm assuming that we're using the Shadow DOM here as, to me, that's one of the big draws of a web component: a platform thing that is a uniquely powerful thing that only the platform can do. So this is about defining styles for a web component in a don't-leak-out way, and less so a way to get global styles to leak in (although that's very interesting as well, which can be … Read article

The post Thinking Through Styling Options for Web Components appeared first on CSS-Tricks.

Chris Coyier

The Design Squiggle

6 days 15 hours ago

I think we all have an intuitive understanding that, at the beginning of projects that require our creativity (be it design or code), things feel uncertain and messy. Then, as we go, things tend to straighten out. There is still some wiggling and setbacks, but by the end, we find a single solution and ship it.

Apparently this feeling has a logo: The Design Squiggle

The Process of Design Squiggle by Damien Newman, thedesignsquiggle.com

It comes from Damien Newman who … Read article

The post The Design Squiggle appeared first on CSS-Tricks.

Chris Coyier

Hacking Tutorials

iOS Programming