Search
The CSS from-font Value Explained in 4 Demos
21.1.2022
I was doing my Advent of UI Components, and I stumbled upon the from-font value for the text-decoration-thickness CSS property. I was curious about it, so I did a little research and I think what I found (and learned) …
The CSS from-font Value Explained in 4 Demos originally published...
How to Make a Pure CSS 3D Package Toggle
12.1.2022
You know how you can get cardboard boxes that come totally flat? You fold ‘em up and tape ‘em to make them into a useful box. Then when it’s time to recycle them, you cut them back apart to flatten …
How to Make a Pure CSS 3D Package Toggle originally published on CSS-Tricks. You should...
Don’t Fight the Cascade, Control It!
10.1.2022
If you’re disciplined and make use of the inheritance that the CSS cascade provides, you’ll end up writing less CSS. But because our styles often comes from all kinds of sources — and can be a pain to structure and …
Don’t Fight the Cascade, Control It! originally published...
CSS Underlines Are Too Thin and Too Low in Chrome
4.1.2022
I’ve encountered two bugs in Chrome while testing the new CSS text-decoration-thickness and text-underline-offset properties, and I want to share them with you here in this article.
But first, let’s acknowledge one thing:
Default underlines are inconsistent
Let’s add a …
CSS Underlines...
Honor prefers-color-scheme in the CSS Paint API with Custom Properties
27.12.2021
One of the coolest things I’ve been messing with in the last couple years is the CSS Paint API. I love it. I did a talk on it, and made a little gallery of my own paint worklets…
Colombian Real Estate Platform Allows Users to Acquire Property With Bitcoin
27.12.2021
A Colombian real estate platform is now allowing users to purchase properties with Bitcoin. The platform, called La Haus, is promoting bitcoin payments for a new real estate project in Santa Marta, called Natura City. This is an expansion of the platform, which has already established such...
The surprising behavior of !important in CSS custom property values
17.12.2021
Huh! I did not realize that CSS custom properties had their own resolution behavior for how !important works in their values. Uh, despite writing a guide about them. 😬 But hey it’s now updated.
Stefan Judis documents it clearly. …
Faulty logic
14.12.2021
Ain’t this the truth:
It’s like when you’re learning a new language. At some point your brain goes from translating from your mother tongue into the other language, and instead starts thinking in that other language.
I don’t speak …
Hololoot Celebrates an Overwhelmingly Successful Public Sale and Decentralized Listing
14.12.2021
PRESS RELEASE. Hololoot is the market-leading AR NFT generator, marketplace and metaverse designed for widespread adoption. Built by AR industry veterans, Hololoot combines the latest developments in 3D modeling with the unique properties of NFTs to produce an app that is simultaneously powerful...
Shadow Palette Generator
13.12.2021
Josh’s Shadow Palette Generator is a fantastic tool. The premise is that box-shadow pretty much always looks better when there are multiple layered shadows that are a bit tinted. It reminds me of how gradients almost always look better when …
Standardizing Focus Styles With CSS Custom Properties
10.12.2021
Take two minutes right now and visit your current project in a browser. Then, using only the Tab key, you should be able to navigate between interactive elements including buttons, links, and form elements.
If you are sighted, you should…
Open Props (and Custom Properties as a System)
6.12.2021
Perhaps the most basic and obvious use of CSS custom properties is design tokens. Colors, fonts, spacings, timings, and other atomic bits of design that you can pull from as you design a site. If you pretty much only pull …
Virtual Metaverse Plots Outpace Top NFT Collection Sales, Play-to-Earn Tokens Surged in Value This Year
6.12.2021
During the last seven days, virtual lands sold in the metaverse have outpaced a great number of non-fungible token (NFT) sales. Moreover, metaverse native crypto tokens like axie infinity, sandbox and decentraland and play-to-earn digital assets in general have jumped significantly in value this...
When is it “Right” to Reach for contain and will-change in CSS?
26.11.2021
I’ve got some blind spots in CSS-related performance things. One example is the will-change property. It’s a good name. You’re telling the browser some particular property (or the scroll-position or content) uh, will, change:
.el {
will-change: opacity;
…
The post When...
Control Layout in a Multi-Directional Website
23.11.2021
Many business websites need a multilingual setup. As with anything development-related, implementing one in an easy, efficient, and maintainable way is desirable. Designing and developing to be ready for multiple languages, whether it happens right at launch or is expected …
The post Control...
Parallax Powered by CSS Custom Properties
19.11.2021
Good friend Kent C. Dodds has recently dropped his new website which had a lot of work go into it. I was fortunate enough that Kent reached out a while back and asked if I could come up with some …
The post Parallax Powered by CSS Custom Properties appeared first on CSS-Tricks. You...
Color Alpha Anywhere
16.11.2021
In my “Different Degrees of Custom Property Usage” article, I noted a situation about colors and CSS custom properties where I went “too far” with breaking up HSL color values. Breaking every single color into its H, S, and L parts …
The post Color Alpha Anywhere...
Real Estate Platform Pacaso Accepts Crypto Assets for Payments, CEO Says ‘Mass Crypto Adoption Well Underway’
21.10.2021
On October 20, the day bitcoin smashed a new all-time price high, the real estate platform Pacaso announced it will be accepting cryptocurrencies via Bitpay. The CEO of the real estate firm that helps people buy and co-own a second home, Austin Allison, says the firm has seen increased crypto...
Different Degrees of Custom Property Usage
14.10.2021
One way to work with Custom Properties is to think of them as design tokens. Colors, spacings, fonts, and whatnot. You set them at the root of the page and use them throughout your CSS. Very useful, and the classic …
The post Different Degrees of Custom Property Usage appeared first...
Systems for z-index
24.9.2021
Say you have a z-index bug. Something is being covered up by something else. In my experience, a typical solution is to put position: relative on the thing so z-index works in the first place, and maybe rejigger the z-index…
The post Systems for z-index appeared first on CSS-Tricks. You...