I Learned The First Rule of ARIA the Hard Way
https://css-tricks.com/i-learned-the-first-rule-of-aria-the-hard-way/
https://css-tricks.com/i-learned-the-first-rule-of-aria-the-hard-way/
CSS-Tricks
I Learned The First Rule of ARIA the Hard Way | CSS-Tricks
Semantic HTML does a lot more accessibility work than we usually give it credit for already — and ARIA is simple to abuse when we use it both as a shortcut and as a supplement.
Responsive Hexagon Grid Using Modern CSS
https://css-tricks.com/responsive-hexagon-grid-using-modern-css/
https://css-tricks.com/responsive-hexagon-grid-using-modern-css/
CSS-Tricks
Responsive Hexagon Grid Using Modern CSS | CSS-Tricks
A while back, Temani tacked a repeating grid of hexagon shapes. Well, he's updated it with modern CSS features that result in fewer magic numbers. And it's impressive!
There is No Need to Trap Focus on a Dialog Element
https://css-tricks.com/there-is-no-need-to-trap-focus-on-a-dialog-element/
https://css-tricks.com/there-is-no-need-to-trap-focus-on-a-dialog-element/
CSS-Tricks
There is No Need to Trap Focus on a Dialog Element | CSS-Tricks
Accessibility advice around modals have commonly taught us to trap focus within the modal. Upon further research, it seems like we no longer need to trap focus within the <dialog> (even in modal mode).
How to Style the New ::search-text and Other Highlight-y Pseudo-Elements
https://css-tricks.com/how-to-style-the-new-search-text-and-other-highlight-pseudo-elements/
https://css-tricks.com/how-to-style-the-new-search-text-and-other-highlight-pseudo-elements/
CSS-Tricks
Styling ::search-text and Other Highlight-y Pseudo-Elements | CSS-Tricks
The new ::search-text pseudo (Chrome 144) matches are yellow while the current target (::search-text:current) is orange, but ::search-text enables us to change that.
What’s !important #4: Videos & View Transitions, Named Media Queries, How Browsers Work, and More
https://css-tricks.com/whats-important-4/
https://css-tricks.com/whats-important-4/
CSS-Tricks
What’s !important #4: Videos & View Transitions, Named Media Queries, How Browsers Work, and More | CSS-Tricks
Neither Chrome, Safari, nor Firefox have shipped new features in the last couple of weeks, but fear not because leading this issue of What’s !important is some of the web development industry’s best educators with, frankly, some killer content.
No-Hassle Visual Studio Code Theming: Building an Extension
https://css-tricks.com/no-hassle-visual-studio-code-theming-building-an-extension/
https://css-tricks.com/no-hassle-visual-studio-code-theming-building-an-extension/
CSS-Tricks
No-Hassle Visual Studio Code Theming: Building an Extension | CSS-Tricks
I've always thought that creating a VS Code theme was a lot of work. But lo and behold, it took less than six hours to get it working, then a day or two to polish up my final tweaks.
No Hassle Visual Code Theming: Publishing an Extension
https://css-tricks.com/no-hassle-visual-code-theming-publishing-an-extension/
https://css-tricks.com/no-hassle-visual-code-theming-publishing-an-extension/
CSS-Tricks
No Hassle Visual Code Theming: Publishing an Extension | CSS-Tricks
You’d think that publishing a VS Code extension is an easy process, but it’s not. You have to publish your theme in at least two places.
CSS Bar Charts Using Modern Functions
https://css-tricks.com/css-bar-charts-using-modern-functions/
https://css-tricks.com/css-bar-charts-using-modern-functions/
CSS-Tricks
CSS Bar Charts Using Modern Functions | CSS-Tricks
CSS-only bar charts are one of those things we've tackled a bunch of times in different ways. But how can modern CSS features finally make it not only trivial, but fun?
Trying to Make the Perfect Pie Chart in CSS
https://css-tricks.com/trying-to-make-the-perfect-pie-chart-in-css/
https://css-tricks.com/trying-to-make-the-perfect-pie-chart-in-css/
CSS-Tricks
Trying to Make the Perfect Pie Chart in CSS | CSS-Tricks
Can we make pie chart that's semantic, with flexible markup, and avoids using a JavaScript library? Here's how I tackled it.
Approximating contrast-color() With Other CSS Features
https://css-tricks.com/approximating-contrast-color-with-other-css-features/
https://css-tricks.com/approximating-contrast-color-with-other-css-features/
CSS-Tricks
Approximating contrast-color() With Other CSS Features | CSS-Tricks
The new contrast-color() function is not fully supported yet. But can we still implement it in a cross-browser friendly way using other new CSS features?
Making a Responsive Pyramidal Grid With Modern CSS
https://css-tricks.com/making-a-responsive-pyramidal-grid-with-modern-css/
https://css-tricks.com/making-a-responsive-pyramidal-grid-with-modern-css/
CSS-Tricks
Making a Responsive Pyramidal Grid With Modern CSS | CSS-Tricks
This is the second part of a small two-part series. In this article, we will explore another type of grid: a pyramidal one. We are still working with hexagon shapes, but a different organization of the elements., while exploring other different shapes.
What’s !important #5: Lazy-loading iframes, Repeating corner-shape Backgrounds, and More
https://css-tricks.com/whats-important-5/
https://css-tricks.com/whats-important-5/
CSS-Tricks
What’s !important #5: Lazy-loading iframes, Repeating corner-shape Backgrounds, and More | CSS-Tricks
This issue of What’s !important is dedicated to our friends in the UK, who are currently experiencing a very miserable 43-day rain streak. Presenting: the five most interesting things to read about CSS from the last couple of weeks. Plus, the latest features…
Distinguishing “Components” and “Utilities” in Tailwind
https://css-tricks.com/distinguishing-components-and-utilities-in-tailwind/
https://css-tricks.com/distinguishing-components-and-utilities-in-tailwind/
CSS-Tricks
Distinguishing "Components" and "Utilities" in Tailwind | CSS-Tricks
The distinction between "components" and "utilities" seems clear at first glance, but gets a little blurred when working with them in Tailwind.
Potentially Coming to a Browser :near() You
https://css-tricks.com/potentially-coming-to-a-browser-near-you/
https://css-tricks.com/potentially-coming-to-a-browser-near-you/
CSS-Tricks
Potentially Coming to a Browser :near() You | CSS-Tricks
Danny has several ideas for how we could use :near(), a proposed pseudo-class that detects when the pointer is near an element.
Loading Smarter: SVG vs. Raster Loaders in Modern Web Design
https://css-tricks.com/loading-smarter-svg-vs-raster-loaders-in-modern-web-design/
https://css-tricks.com/loading-smarter-svg-vs-raster-loaders-in-modern-web-design/
CSS-Tricks
Loading Smarter: SVG vs. Raster Loaders in Modern Web Design | CSS-Tricks
Let’s get nuanced in this article and discuss the capabilities of both SVG and raster imaged so that you can make informed decisions in your own work.
An Exploit … in CSS?!
https://css-tricks.com/an-exploit-in-css/
https://css-tricks.com/an-exploit-in-css/
CSS-Tricks
An Exploit ... in CSS?! | CSS-Tricks
Read an explanation of the recent CVE-2026-2441 vulnerability that was labeled a "CSS exploit" that "allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page."