Exploring color-contrast() for the first time.

I saw in the release notes for Safari Technical Preview 122 that it has support for a color-contrast() function in CSS. Safari is first out of the gate here. As far as I know, no other browser supports this yet …

The post Exploring color-contrast() for the first time. appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/exploring-color-contrast-for-the-first-time/

4y | CSS tricks
Eliminating five top compatibility pain points on the web

Robert Nyman and Philip Jägenstedt:

Google is working with other browser vendors and industry partners to fix the top five browser compatibility pain points for web developers. The areas of focus are CSS Flexbox, CSS Grid, position: sticky, 

The post Eliminating five top compatibility pain points on the web appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://web.dev/compat2021/

4y | CSS tricks
Using New Gatsby Source WordPress Plugin

In my previous article, I discussed how I learned to create a decoupled WordPress powered Gatsby site using the Gatsby Source WPGraphQL plugin. The project was done following the ongoing developmental version of WPGraphQL and an excellent tutorial by Henrik …

The post Using New Gatsby Source WordPress Plugin appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/using-new-gatsby-source-wordpress-plugin/

4y | CSS tricks
Text That Sometimes Turns to Emojis

There are some Unicode characters that some browsers just decide they are going to turn into emojis for you. I couldn’t tell you why exactly, but here’s what I see: Chrome on the left. Safari in the simulator on top…

The post Text That Sometimes Turns to Emojis appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/text-that-sometimes-turns-to-emojis/

4y | CSS tricks
Tools to Improve UX and Win Over Your Customers

Try Hotjar for free today! An enjoyable user experience and high conversion rates go hand-in-hand. It makes sense then, that if you want to improve conversion rates, your first task is to improve user experience. To improve UX, deeply understanding …

The post Tools to Improve UX and Win Over Your Customers appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/tools-to-improve-ux-and-win-over-your-customers/

4y | CSS tricks
The Almost-Complete Guide to Cumulative Layout Shift

Here’s Jess B. Peck writing all about Google’s Core Web Vitals:

Let’s step back one. CLS is when you’re about to click on a link, and the whole page shifts and you click on a different link instead. It’s when

The post The Almost-Complete Guide to Cumulative Layout Shift appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://jessbpeck.com/posts/completecls/

4y | CSS tricks
The Making (and Potential Benefits) of a CSS Font

Not a typical one, at least. Each character is an HTML element, built with CSS. A true web font! Let me elaborate. This is a way to render text without using any font at all. Random text is split with …

The post The Making (and Potential Benefits) of a CSS Font appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/the-making-and-potential-benefits-of-a-css-font/

4y | CSS tricks
Still Hoping for Better Native Page Transitions

It sure would be nice to be able to animate the transition between pages if we want to on the web, at least without resorting to hacks or full-blown architecture choices just to achieve it. Some kind of API that …

The post Still Hoping for Better Native Page Transitions appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/still-hoping-for-better-native-page-transitions/

4y | CSS tricks
Sticky Headers: 5 Ways to Make Them Better

Page Laubheimer says that if you’re going to do a sticky header…

Keep it small. Visually contrast it with the rest of the page. If it’s going to move, keep it minimal. (I’d say, respect prefers-reduced-motion.) Consider “partially persistent

The post Sticky Headers: 5 Ways to Make Them Better appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://www.nngroup.com/articles/sticky-headers/

4y | CSS tricks
How to Add a Double Border to SVG Shapes

Let’s say someone asks you to add a double border to some random geometric SVG shapes. For some reason, you can’t use any graphic editor — they need to be generated at runtime — so you have to solve it …

The post How to Add a Double Border to SVG Shapes appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/how-to-add-a-double-border-to-svg-shapes/

4y | CSS tricks

Search