Search
Detecting Media Query Support in CSS and JavaScript
23.8.2021
You can’t just do @media (prefers-reduced-data: no-preference) alone because, as Kilian Valkhof says:
[…] that would be false if either there was no support (since the browser wouldn’t understand the media query) or if it was supported but the
…
The post...
Native JavaScript Routing?
23.8.2021
We can update the URL in JavaScript. We’ve got these APIs:
// Adds to browser history
history.pushState({}, "About Page", "/about");
// Doesn't
history.replaceState({}, "About Page", "/about");
JavaScript is also capable of replacing any content in the DOM....
“Disambiguating Tailwind”
20.8.2021
I appreciated this bit of nuance from a post on Viget’s blog:
There could be a whole article written about the many flavours of Tailwind, but broadly speaking those flavours are:
1. Stock tailwind, ie. no changes to the
…
The post “Disambiguating Tailwind” appeared first...
Creating a Headless WordPress Site With Frontity
20.8.2021
Frontity is a WordPress-focused React-based server-side dynamic-rendering framework (phew!) that allows us to create fast headless websites. Chris has a good introduction to Frontity. I guess you could think of it like Next.js for WordPress. And while the demand …
The post Creating...
The Big Gotcha With Custom Properties
19.8.2021
I’ve seen this confuse more than a handful of people recently, including myself, so I’m making sure it’s written down.
Let’s chuck a couple of custom properties into CSS:
html {
--color-1: red;
--color-2: blue;
}
Let’s use them right …
The post The...
Using Nuxt and Supabase for a Multi-User Blogging App
19.8.2021
Nuxt is a JavaScript framework that extends the existing functionality of Vue.js with features like server-side rendering, static page generation, file-based routing, and automatic code splitting among other things.
I’ve been enjoying using frameworks like Nuxt and Next because they …
The...
Implementing a single GraphQL across multiple data sources
19.8.2021
(This is a sponsored post.)
In this article, we will discuss how we can apply schema stitching across multiple Fauna instances. We will also discuss how to combine other GraphQL services and data sources with Fauna in one graph.…
The post Implementing a single GraphQL across...
“We had 90% unused CSS because everybody was afraid to touch the old stuff”
19.8.2021
Over at the JS Party poundcast:
[Kend C. Dodds]: […] ask anybody who’s done regular, old CSS and they’ll tell you that “I don’t know if it’s okay for me to change this, so I’m gonna duplicate it.” And
…
The post “We had 90% unused CSS because everybody was afraid to touch...
Native Search vs. Jetpack Instant Search in Headless WordPress With Gatsby
18.8.2021
Have you already tried using WordPress headlessly with Gatsby? If you haven’t, you might check this article around the new Gatsby source plugin for WordPress; gatsby-source-wordpress is the official source plugin introduced in March 2021 as a part of the …
The post Native Search vs. Jetpack...
DX, to Whom?
17.8.2021
Dave points to Sarah’s post on Developer Experience (DX) at Netlify. Part of what Sarah did there is lay out what the role means. It’s a three-part thing:
Integrations Engineering (e.g. features)
Developer Experience Engineering (e.g. building integrations
…
The post DX,...
From a Single Repo, to Multi-Repos, to Monorepo, to Multi-Monorepo
17.8.2021
I’ve been working on the same project for several years. Its initial version was a huge monolithic app containing thousands of files. It was poorly architected and non-reusable, but was hosted in a single repo making it easy to work …
The post From a Single Repo, to Multi-Repos,...
Tabs in HTML?
17.8.2021
Brian Kardell shares a bit about the progress of bringing "Tabs" to HTML. We kinda think we know what they are, but you have to be really specific when dealing with specs and defining them. It's tricky.
The post Tabs in HTML? appeared first on CSS-Tricks. You can support CSS-Tricks by being an...
Cutouts
16.8.2021
Ahmad Shadeed dug into shape “cutouts” the other day. Imagine a shape with another smaller shape carved out of it. In his typical comprehensive way, Ahmad laid out the situation well—looking at tricky situations that complicate things.
The first thing …
The post Cutouts appeared...
HTML is Not a Programming Language?
16.8.2021
HTML is not a programming language.
I’ve heard that sentence so many times and it’s tiring. Normally, it is followed by something like, It doesn’t have logic, or, It is not Turing complete,.so… obviously it is not a programming …
The post HTML is Not a Programming Language?...
Unicode Arrows
13.8.2021
Looks like… 253 of them. I love the little water ⥾ spout one. (U+297e). Because. And I like how it’s a fairly useful little site at a great domain and with a little business model behind it.
Reminds …
The post Unicode Arrows appeared first on CSS-Tricks. You can support...
Building a Cool Front End Thing Generator
13.8.2021
Whether you are just starting out on the front end, or you’ve been doing it for a long time, building a tool that can generate some cool front-end magic can help you learn something new, develop your skills and maybe …
The post Building a Cool Front End Thing Generator appeared first...
Stay alert
12.8.2021
A few days ago, Chris wrote up his thoughts about how alert(), confirm(), and prompt() were being deprecated by Chrome and collected a bunch of thoughts from developers. If certain features can essentially be turned off by …
The post Stay alert appeared first on CSS-Tricks. You can support...
Using Web Components in WordPress is Easier Than You Think
12.8.2021
Now that we’ve seen that web components and interactive web components are both easier than you think, let’s take a look at adding them to a content management system, namely WordPress.
There are three major ways we can add them. …
The post Using Web Components in WordPress is Easier Than...
Wanna see a whiter white?
11.8.2021
Heck of a CSS trick here from Dongsung Kim.
There are hidden HDR videos playing at the corners of this page. When a HDR-capable browser encounters one, it switches to HDR mode. For some reason, CSS backdrop-filter + brightness >100%
…
The post Wanna see a whiter white? appeared first...
Static vs. Dynamic vs. Jamstack: Where’s The Line?
11.8.2021
You’ll often hear developers talking about “static” vs. “dynamic” sites, or you may have heard someone use the term Jamstack. What do these terms mean, and when does a “static” site become either a Jamstack or dynamic site? These …
The post Static vs. Dynamic vs. Jamstack:...