Search

Post types:
Categories:
🔖

CSS Remedy

Read Note

An in-progress project looking to create a CSS reset that creates modern defaults, rather than just focusing on standardising behaviour across browsers or removing irritating legacy features in …

🔖

CSS only carousel

Read Note

Carousels are the devil's work, but they remain incredibly useful and popular UI elements 😑 Having a solid implementation that will work without JavaScript, making it more lightweight and …

🔖

CSS @property superpowers

Read Note

Looks like the new CSS @property extension has landed in Chrome. Una has put together some interesting examples and explanations on the fallback mechanism in particular. Usage appears to be the same …

🔖

The CSS Cascade

Read Note

I don't think I've come across a clearer explanation of the full cascade before, nor one so beautifully crafted. An excellent resource and …

🔖

The mistakes of CSS

Read Note

It's fun to see which technical decisions the CSS working group officially consider "mistakes" 😂 I agree with most, though not sure how I feel about the counter-clockwise directional shorthand …

🔖

CSS Grid Track Options

Read Note

An excellent overview of (most of) the unit options you can use in CSS Grid columns and rows, with examples. (No …

🔖

CSS regions: a history

Read Note

I have a vague memory of CSS Regions being talked about, but had completely forgotten them. It turns out that's likely because the spec has effectively been pulled. I think it's technically still out …

🔖

A modern CSS reset

Read Note

Andy always has some interesting thoughts about CSS, and this reset is no exception. Lots of interesting things here that fit very nicely with both my own experience and other resets that I've …

🔖

Josh's custom CSS reset

Read Note

Josh has added some additional thoughts to Andy's CSS reset. Personally, I like a combination of the two (with a dash of Stephanie's best practices thrown in for good measure), but wanted to capture …

🔖

CSS animations within SVG

Read Note

A very neat little trick. Embedding @keyframes within your SVG <style> element makes it animate when it loads, whether rendered as an image or a background (or, I assume, inlined). It can even …

🔖

Accordion rows in CSS Grid

Read Note

When Eric first tweeted about the new design on his site, I thought something a bit unusual was going on with the CSS layout. I actually dove straight into the source that day and learnt a little …

🔖

Multicoloured text highlighting in cSS

Read Note

A clever UX idea discovered on Pink News: each paragraph of text has a different highlight colour, so as you select parts of an article to copy elsewhere it reveals the LGBTQA+ flag. They're using …

🔖

What is utility-first CSS?

Read Note

As acerbic and cutting a critique of utility-first CSS (and that particular framework) as you would expect from Heydon, but hidden amongst the humour are some (also equally expected) jewels …

🔖

CSS variables for React devs

Read Note

Josh breaks down why and how you can use CSS variables more easily in React, specifically using styled-components. Honestly it feels a little terrifying how much is needed just to get basic …

🔖

A defence of alphabetical CSS

Read Note

I am not a fan of alphabetical CSS, but Eric does a really solid job of arguing why, right now, it may be the best option. The short version is that CSS remains so woefully underutilised and …

🔖

Zero JavaScript CSS-in-JS

Read Note

One of the core downsides to CSS-in-JS is that you have to compile it on the client, which means increased bundle sizes and slower rendering. Linaria is an attempt to fix that, by providing all of …

🔖

Using CSS transitions on auto dimensions

Read Note

A selection of possible workarounds for animating CSS values with auto keywords (e.g. height, width, etc.). Not a huge fan of the Flexbox option, but the max-height trick is a very useful one to …

🔖

Tailwind and the Femininity of CSS

Read Note

It will (hopefully) come as no surprise that I found myself nodding vigorously throughout this excellent article by Elaina, which shines a light on some of the reasons that CSS tooling can leave a …

🔖

CSS custom properties and the cascade

Read Note

CSS variables (aka CSS custom properties) do not have access to the cascade. That means they can't fall back to earlier rules, so if your variable is invalid, the browser will simply unset …

🔖

Firefox and SVG fill for CSS

Read Note

I ran into a bug recently where some SVGs on a website were seemingly ignoring a fill request. A quick check in dev tools showed that the CSS was being applied so... what gives? Turns out …

🔖

Time to rethink mobile-first CSS?

Read Note

An interesting look at whether the current mobile-first paradigm is problematic. Ultimately, the title feels a little like click-bait; to me the solution proposed remains mobile-first, but suggests …

🔖

What does 100% mean in CSS

Read Note

A super useful recap of the main ways that CSS calculates percentage for element layout, each with a brilliant slider-based demo. The …