Search
A Love Letter to HTML & CSS
17.5.2021
I see you. In the back there, behind JavaScript and React and PHP and all those “real” programming languages, I see you. And I appreciate you.
The post A Love Letter to HTML & CSS appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter
IGN Takes Down Article And Tweet Sharing Palestinian Aid Groups
16.5.2021
Following the most recent set of violent military strikes by the Israel Defense Forces that have leveled entire buildings in Gaza and left over 180 Palestinians dead, IGN yesterday posted an article linking to a variety of Palestinian charities and even gave a Palestinian flag prominence in...
Auto-Generated Social Media Images
14.5.2021
I’ve been thinking about social media images again. You know, the images that (can) show up when you share a link in places like Twitter, Facebook, or iMessage. You’re essentially leaving money on the table without them, because they …
The post Auto-Generated Social Media Images...
Creating Stylesheet Feature Flags With Sass !default
14.5.2021
!default is a Sass flag that indicates conditional assignment to a variable — it assigns a value only if the variable was previously undefined or null. Consider this code snippet:
$variable: 'test' !default;
To the Sass compiler, this line …
The post Creating Stylesheet Feature Flags With...
HTML Boilerplates
14.5.2021
Manuel Matuzović goes line-by-line through a boilerplate HTML document. I like it. It’s a good reference and has a lot of the same type of stuff I tend to put in the main HTML template. It makes me think about …
The post HTML Boilerplates appeared first on CSS-Tricks.
You can support...
2021 Design Systems (Survey/Courses)
14.5.2021
My friends at Sparkbox are doing a survey on design systems, as they do each year. Go ahead and fill it out if you please. Here are the results from last year. In both 2019 and 2020, the vibe was …
The post 2021 Design Systems (Survey/Courses) appeared first on CSS-Tricks.
You can support...
Advanced CSS Animation Using cubic-bezier()
13.5.2021
When dealing with complex CSS animations, there is a tendency to create expansive @keyframes with lots of declarations. There are a couple of tricks though that I want to talk about that might help make things easier, while staying in …
The post Advanced CSS Animation Using cubic-bezier()...
SVGator 3.0 Reshapes the Way You Create and Animate SVG With Extensive New Features
13.5.2021
Building animations can get complicated, particularly compelling animations where you aren’t just rolling a ball across the screen, but building a scene where many things are moving and changing in concert. When compelling animation is the goal, a timeline GUI …
The post SVGator...
Making Disabled Buttons More Inclusive
12.5.2021
Let’s talk about disabled buttons. Specifically, let’s get into why we use them and how we can do better than the traditional disabled attribute in HTML (e.g. <button disabled> ) to mark a button as disabled.
There are lots of …
The post Making Disabled Buttons More Inclusive...
CSS Pie Timer Re-Revisited
12.5.2021
Kitty reflected on an ancient blog post here on CSS-Tricks on how to make an animated pie timer. The old technique is still clever. The new technique is equally clever and much easier. I particularly like the steps() animation function…
The post CSS Pie Timer Re-Revisited appeared first...
Next Gen CSS: @container
11.5.2021
Chrome is experimenting with @container, a property within the CSS Working Group Containment Level 3 spec being championed by Miriam Suzanne of Oddbird, and a group of engineers across the web platform. @container brings us the ability to …
The post Next Gen CSS: @container appeared first...
Distributed Persistent Rendering (DPR)
11.5.2021
Like Jamstack, Netlify is coining this term.
If your reaction is: great, a new thing I need to know about and learn, know that while Distributed Persistent Rendering (DPR) does involve some new things, this is actually a push …
The post Distributed Persistent Rendering (DPR) appeared first...
Topframe
10.5.2021
This is extremely fun. Jeff Lindsay has created Topframe, and writes:
Anybody that knows how to mess around with HTML can now mess around with their desktop computing experience. Topframe is an open source tool that lets you
…
The post Topframe appeared first on CSS-Tricks.
You...
Variable Aspect Ratio Card With Conic Gradients Meeting Along the Diagonal
10.5.2021
I recently came across an interesting problem. I had to implement a grid of cards with a variable (user-set) aspect ratio that was stored in a --ratio custom property. Boxes with a certain aspect ratio are a classic problem in …
The post Variable Aspect Ratio Card With Conic Gradients...
Is CSS a Programming Language?
7.5.2021
I have a real distaste for this question. It might seem like a fun question to dig into on the surface, but the way it enters public discourse rarely seems to be in good faith. There are ulterior motives at …
The post Is CSS a Programming Language? appeared first on CSS-Tricks.
You...
Links on Typography
7.5.2021
These are a few great links about typography that have been burning a hole in my saved bookmarks folder that I'm just now getting around to sharing. There's good stuff in there, from how to choose typefaces for app design to ideas for how to fix the concept of font sizing in CSS.
The post Links...
What Google’s New Page Experience Update Means for Images on Your Website
6.5.2021
It’s easy to forget that, as a search engine, Google doesn’t just compare keywords to generate search results. Google knows that if people don’t enjoy their experience on a web page, they won’t stay on the page long enough to …
The post What Google’s New Page Experience Update Means...
Custom State Pseudo-Classes in Chrome
6.5.2021
There is an increasing number of “custom” features on the web platform. We have custom properties (--my-property), custom elements (<my-element>), and custom events (new CustomEvent('myEvent')). At one point, we might even get custom media …
The post Custom State Pseudo-Classes...
Astro
5.5.2021
You can’t even look at code or documentation for Astro (publicly) yet — it’s an in-progress idea — but you can watch a video of Fred showing it off to Feross.
I gotta admit: it looks awesome. I’m bullish …
The post Astro appeared first on CSS-Tricks.
You can support...
Progress Delayed Is Progress Denied
5.5.2021
The bombshell article of the week is from Alex Russell of Google/Chrome. Alex has long been super critical of Apple, particularly about how there is literally no option to run any other browser than Safari on iOS. This article isn’t …
The post Progress Delayed Is Progress Denied...