Templ

By Chris Coyier on

I enjoy writing code in Go, but an easy critique of it is templating doesn’t feel good. I’ve only just heard of Templ and it looks fabulous. You make .templ files which contain what look like JSX functions. They take typed params and have an implied return of the HTML they contain These .templ files […]

Questions to ask a senior front-end developer

By Chris Coyier on

Erick Merchant has some ideas for questions to ask a senior front-end-developer (as in, interview questions). They seem pretty decent to me, so if you’re shooting for a senior role, you should probably have answers for these things with a bit more detail than Erick lists.

Js13kGames 2024 Winners

By Chris Coyier on

If video game development appeals to you on your journey into design and development, you should check out js13kGames, a “coding competition for web game developers, with a 13KB size limit.” The 2024 winners were recently announced, and I find the lot of them outstanding. 13KB is a heck of a constraint. jQuery is like 30k lol. So […]

Speed up Sass

By Chris Coyier on

Are you using Sass as part of your build process? If you’re using Vite or webpack and importing SCSS files in lots of different components, be aware you should probably switch to sass-embedded instead of sass, as it can, as James Stuckey Weber wrote, “allows you to reuse a single instance of Sass for multiple […]

9 / 16

By Chris Coyier on

The other day I needed to quickly see pixel dimensions that were exactly in a 9 / 16 aspect ratio. Like: 180 / 320. That’s perfectly in that ratio. You might be able to think of that one in your head, but how about 351 / 624? That’s harder to think of. And I wanted […]

CSS min() All The Things

By Chris Coyier on

Victor Ayomipo saw our post about using container units for everything. He was more optimistic than I that our result was good. My thinking is that there are plenty of things you straight up don’t want to use container units for. Victor did a similar exercise with (over?)-using min() and viewport units. Turns out there […]