#CSS

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

@elk が今年の1月のリリースを最後に更新が止まっていて、もうメンテナンスされていないんじゃないかという噂が。
シンプルで可愛いデザインで一時期使っていたので残念&心配ではあるけど、 :mastodon: のデフォルトの Web UI も大分デザインがこなれてきたし、 とか みたいな :mastodon: のカスタム も出てきたので、相対的に の存在意義みたいなものが薄れてしまっていた状況というのはあったような気はする。

のように、機能面でデフォルトの :mastodon: の Web UI を超えるいろんな機能(外部サーバーからの見た目を一時的にエミュレートできたり、CatchUP 器用や、独自の投稿ドラフトの自動保存機能とか、複数アカウント切り換え機能とか)があれば差別化できたんだろうけど、その点 はそこまで通常の :mastodon: Web UI と比較してリッチな機能が追加されてるわけじゃないからな…
いっそのこと、 :mastodon: のカスタム CSS テーマとしてリブートするみたいなほうがメンテナンスコストは小さくなりそう :tony_astonished:

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Using modern CSS to create a responsive list of stacked images. The overlap will automatically adjust based on the available space and the number of images.

css-tip.com/responsive-stacked

No hardcoded values, no magic numbers, and the gap is transparent!

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Using modern CSS to create a responsive list of stacked images. The overlap will automatically adjust based on the available space and the number of images.

css-tip.com/responsive-stacked

No hardcoded values, no magic numbers, and the gap is transparent!

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

やはり CSS でスタイリングされるオンスクリーンメディアの UI デザインするなら、素の CSS を書きたい。

W3C Developers's avatar
W3C Developers

@w3cdevs@w3c.social

📢
The @w3c "Hackathon TPAC 2025: Kobe Edition" is underway, and participants have 1.5 hours to tackle one of two available challenges!

▶️ w3.org/2025/11/TPAC/hackathon/

Welcome screen: W3C TPAC Hackathon 2025
ALT text detailsWelcome screen: W3C TPAC Hackathon 2025
Two participants are building tiny mini figs with lego body parts
ALT text detailsTwo participants are building tiny mini figs with lego body parts
Remaining time to build one of the 2 challenges = 1:26:07
ALT text detailsRemaining time to build one of the 2 challenges = 1:26:07
A large sushi platter available to participants
ALT text detailsA large sushi platter available to participants
Roni Laukkarinen's avatar
Roni Laukkarinen

@rolle@mementomori.social

Mastodon Bird UI v3.0.0 is now released! 🎉

Most notable changes:
- Support for Mastodon stable 4.5.0
- Fix profile links and alignment
- Re-style Quote Posts
- Improved UI for the new quote posts popper
- Improve status__quote--error being to high, update min-height
- Remove the separator dot redundant since 4.3
- Fix performance-expensive transitions
- Fix audio embed overflow
- Improve the accesibility of modals

Full changelog and download: github.com/ronilaukkarinen/mas

Mastodon Bird UI phone mockup, closeup of an iPhone, text: "Mastodon Bird UI 3.0.0"
ALT text detailsMastodon Bird UI phone mockup, closeup of an iPhone, text: "Mastodon Bird UI 3.0.0"
Roni Laukkarinen's avatar
Roni Laukkarinen

@rolle@mementomori.social

Mastodon Bird UI v3.0.0 is now released! 🎉

Most notable changes:
- Support for Mastodon stable 4.5.0
- Fix profile links and alignment
- Re-style Quote Posts
- Improved UI for the new quote posts popper
- Improve status__quote--error being to high, update min-height
- Remove the separator dot redundant since 4.3
- Fix performance-expensive transitions
- Fix audio embed overflow
- Improve the accesibility of modals

Full changelog and download: github.com/ronilaukkarinen/mas

Mastodon Bird UI phone mockup, closeup of an iPhone, text: "Mastodon Bird UI 3.0.0"
ALT text detailsMastodon Bird UI phone mockup, closeup of an iPhone, text: "Mastodon Bird UI 3.0.0"
Alberto de Murga's avatar
Alberto de Murga

@threkk@mastodon.social

I am working on a small framework (more soon), and I am very prod of how the tables look :D

Alberto de Murga's avatar
Alberto de Murga

@threkk@mastodon.social

I am working on a small framework (more soon), and I am very prod of how the tables look :D

Web Standards's avatar
Web Standards

@webstandards_dev@mastodon.social

Perfectly pointed tooltips. Temani Afif shows how to create auto-positioned tooltips using the new CSS Anchor Positioning with position-area, position-try-fallbacks, and the anchor() function. Tooltips stay visible, flip when needed, and keep their tails, all without JavaScript. Supported in Chrome, Edge, and Safari, with demos and practical tricks.

frontendmasters.com/blog/perfe

Perfectly pointed tooltips: a foundation
ALT text detailsPerfectly pointed tooltips: a foundation
Perfectly pointed tooltips: a foundation
ALT text detailsPerfectly pointed tooltips: a foundation
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Getting the screen dimension with a simple calc? Yes, it's possible!

css-tip.com/screen-dimension/

We are still waiting for Firefox to join the game, and the code below will become the favorite one of many developers!

(Until then, there is another method with better support)

The following CSS code:
:root {
  --w: calc(100vw/1px);
  --h: calc(100vh/1px); 
}
ALT text detailsThe following CSS code: :root { --w: calc(100vw/1px); --h: calc(100vh/1px); }
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Getting the screen dimension with a simple calc? Yes, it's possible!

css-tip.com/screen-dimension/

We are still waiting for Firefox to join the game, and the code below will become the favorite one of many developers!

(Until then, there is another method with better support)

The following CSS code:
:root {
  --w: calc(100vw/1px);
  --h: calc(100vh/1px); 
}
ALT text detailsThe following CSS code: :root { --w: calc(100vw/1px); --h: calc(100vh/1px); }
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Updated the interactive demo to include the "anchor-center" value. It's a special value different from "center" and is probably the one you will be using the most.

css-tip.com/position-area/

Example with position-area: top 👇

Difference between center and anchor-center
ALT text detailsDifference between center and anchor-center
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Updated the interactive demo to include the "anchor-center" value. It's a special value different from "center" and is probably the one you will be using the most.

css-tip.com/position-area/

Example with position-area: top 👇

Difference between center and anchor-center
ALT text detailsDifference between center and anchor-center
W3C Developers's avatar
W3C Developers

@w3cdevs@w3c.social

Anchor positioning extends absolute positioning by letting elements align to other boxes, not just their container, automatically choosing the best placement to prevent overlap or overflow. @w3c's CSS Anchor Positioning Module Level 2 introduces the anchored container queries to allow querying certain aspects of elements

▶️ w3.org/TR/css-anchor-position-

Explainer: github.com/w3c/csswg-drafts/bl

Feedback wlc: github.com/w3c/csswg-drafts/la

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Ready for another crazy demo? This time, I am considering the corner positions. Same HTML code and still 100% modern CSS!

Yes, Anchor Positioning is very cool. 🤩

css-tip.com/tooltip-anchor-3/

The code is a bit hard to decipher, but I am working on articles to explain all the magic 👍

A tooltip follow an anchor element on mouse drag
ALT text detailsA tooltip follow an anchor element on mouse drag
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Ready for another crazy demo? This time, I am considering the corner positions. Same HTML code and still 100% modern CSS!

Yes, Anchor Positioning is very cool. 🤩

css-tip.com/tooltip-anchor-3/

The code is a bit hard to decipher, but I am working on articles to explain all the magic 👍

A tooltip follow an anchor element on mouse drag
ALT text detailsA tooltip follow an anchor element on mouse drag
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

I said 36 positions, but in reality, they are even more because within each position, we can control the alignment of the element using justify-self and align-self.

36 positions, 2 axes, 4 alignment values per axis. I let you do the count! 🫣

Overview of the alignment with position-area
ALT text detailsOverview of the alignment with position-area
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

I said 36 positions, but in reality, they are even more because within each position, we can control the alignment of the element using justify-self and align-self.

36 positions, 2 axes, 4 alignment values per axis. I let you do the count! 🫣

Overview of the alignment with position-area
ALT text detailsOverview of the alignment with position-area
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

In Anchor Positioning, you can use position-area to place an element relatively to its anchor, but there are 36 different positions !? 👀

No one can memorize them all, so I've created an interactive demo where you can select a position and get its code.

css-tip.com/position-area/

An interactive demo that illustrates the position-area property
ALT text detailsAn interactive demo that illustrates the position-area property
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

In Anchor Positioning, you can use position-area to place an element relatively to its anchor, but there are 36 different positions !? 👀

No one can memorize them all, so I've created an interactive demo where you can select a position and get its code.

css-tip.com/position-area/

An interactive demo that illustrates the position-area property
ALT text detailsAn interactive demo that illustrates the position-area property
Bramus's avatar
Bramus

@bramus@front-end.social

The CSS Podcast is back! Together with @Una I’m co-hosting season 5 of the show, and we have some good episodes coming your way!

bram.us/2025/10/14/the-css-pod

The first episode of the season – episode 092 of the full show – got published and is about CSS if() and CSS Custom Functions.

Bramus's avatar
Bramus

@bramus@front-end.social

The CSS Podcast is back! Together with @Una I’m co-hosting season 5 of the show, and we have some good episodes coming your way!

bram.us/2025/10/14/the-css-pod

The first episode of the season – episode 092 of the full show – got published and is about CSS if() and CSS Custom Functions.

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

"Oops… got away from me, send halp!"
🎥 video out now

a 25m tik-talk just given at @cascadiajs.com

nerdy.dev/oops-css-got-away-fr

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

"Oops… got away from me, send halp!"
🎥 video out now

a 25m tik-talk just given at @cascadiajs.com

nerdy.dev/oops-css-got-away-fr

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

はやっぱり まわりの再現度がちょっとイマイチだな…
はまだ と「違う」というだけで のレンダリングエンジンの正義みたいなものが見えるというか納得感があるけど、 のそれは単純にバグみたいに見える挙動が多い印象がある :tony_neutral:

OddBird's avatar
OddBird

@OddBird@front-end.social

In addition to the CSS Tips & Tricks series, we run a monthly show called Winging It LIVE. We interview experts and dig into front-end web development. Topics range from htmx to to to fluid type and more.

All Episodes: youtube.com/@wingingitoddbird/

htmx Episode:
youtube.com/playlist?list=PL4j

winging it htmx
ALT text detailswinging it htmx
OddBird's avatar
OddBird

@OddBird@front-end.social

In addition to the CSS Tips & Tricks series, we run a monthly show called Winging It LIVE. We interview experts and dig into front-end web development. Topics range from htmx to to to fluid type and more.

All Episodes: youtube.com/@wingingitoddbird/

htmx Episode:
youtube.com/playlist?list=PL4j

winging it htmx
ALT text detailswinging it htmx
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

A more advanced 3D box where you can control the depth, angle, and perspective! 🤩

css-tip.com/3d-box/

Built using only the border properties and modern CSS features.

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

A more advanced 3D box where you can control the depth, angle, and perspective! 🤩

css-tip.com/3d-box/

Built using only the border properties and modern CSS features.

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

sticky slices

nerdy.dev/sticky-gradient-tran

demo of the effect that shows scrolling and a gradient breaking into slices and being put back together as you scroll. a few variants of the effect.
ALT text detailsdemo of the effect that shows scrolling and a gradient breaking into slices and being put back together as you scroll. a few variants of the effect.
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

sticky slices

nerdy.dev/sticky-gradient-tran

demo of the effect that shows scrolling and a gradient breaking into slices and being put back together as you scroll. a few variants of the effect.
ALT text detailsdemo of the effect that shows scrolling and a gradient breaking into slices and being put back together as you scroll. a few variants of the effect.
CSS Basics's avatar
CSS Basics

@cssbasics@hachyderm.io

What Can We Actually Do With corner-shape? "So, corner-shape is actually a helluva lot of fun. It certainly has more uses than I expected, and no doubt with some experimentation you’ll come up with some more." css-tricks.com/what-can-we-act

CSS Basics's avatar
CSS Basics

@cssbasics@hachyderm.io

What Can We Actually Do With corner-shape? "So, corner-shape is actually a helluva lot of fun. It certainly has more uses than I expected, and no doubt with some experimentation you’ll come up with some more." css-tricks.com/what-can-we-act

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

A 3D box with a simple CSS code.

Demo: codepen.io/t_afif/full/EaPVaMB via :codepen: @codepen

Overview of the CSS code from the provided demo
ALT text detailsOverview of the CSS code from the provided demo
3D boxes
ALT text details3D boxes
W3C Developers's avatar
W3C Developers

@w3cdevs@w3c.social

The @w3c Environment Variables Module Level 1 spec lets pages use environment data as CSS variables, such as "safe areas", viewport segments for foldable and hinged displays, and user text scale preferences

▶️ w3.org/TR/css-env-1/

Environment variables are global and remain consistent everywhere. Their values can be inserted into different places using the 'env()' function, much like how 'var()' works.

Feedback welcome: github.com/w3c/csswg-drafts/la

Visual comparison of rectangular screen and a rounded corner screen and their impact on the value of the safe-area-inset-* environment variables: all values are 0 for the rectangular one, while the rounded-corner creates non-0 values for each side.
ALT text detailsVisual comparison of rectangular screen and a rounded corner screen and their impact on the value of the safe-area-inset-* environment variables: all values are 0 for the rectangular one, while the rounded-corner creates non-0 values for each side.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Ready for the new corner-shape property? Learn how you can use it to create most of the common CSS Shapes without hassle.

css-tip.com/corner-shape/

All you have to do is adjust the border-radius. Yes, border-radius!

Different shapes created with CSS (triangles, hexagon, arrow, cube, etc.)
ALT text detailsDifferent shapes created with CSS (triangles, hexagon, arrow, cube, etc.)
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Ready for the new corner-shape property? Learn how you can use it to create most of the common CSS Shapes without hassle.

css-tip.com/corner-shape/

All you have to do is adjust the border-radius. Yes, border-radius!

Different shapes created with CSS (triangles, hexagon, arrow, cube, etc.)
ALT text detailsDifferent shapes created with CSS (triangles, hexagon, arrow, cube, etc.)
Terence Eden's avatar
Terence Eden

@Edent@mastodon.social

🆕 blog! “Targetting specific characters with CSS rules”

You can't. There is no way to use CSS to apply a style to every letter "E". It simply can't be done.

At least, that's what they want you to think…

What if I told you there was a secret and forbidden way to target specific characters in text and apply some styles to them?

As part of my experiments in creating a "drunk" C…

👀 Read more: shkspr.mobi/blog/2025/09/targe

Terence Eden's avatar
Terence Eden

@Edent@mastodon.social

🆕 blog! “Targetting specific characters with CSS rules”

You can't. There is no way to use CSS to apply a style to every letter "E". It simply can't be done.

At least, that's what they want you to think…

What if I told you there was a secret and forbidden way to target specific characters in text and apply some styles to them?

As part of my experiments in creating a "drunk" C…

👀 Read more: shkspr.mobi/blog/2025/09/targe

Peter Kröner's avatar
Peter Kröner

@sir_pepe@mastodon.social

"Apple has a private property to add Liquid Glass effects to web content"

👉 alastair.is/apple-has-a-privat

The more things change, the more they stay the same...

Peter Kröner's avatar
Peter Kröner

@sir_pepe@mastodon.social

"Apple has a private property to add Liquid Glass effects to web content"

👉 alastair.is/apple-has-a-privat

The more things change, the more they stay the same...

Frontend Dogma's avatar
Frontend Dogma

@frontenddogma@mas.to

CSS Overrides Without “!important” Using Layers in Astro Components, by @jlengstorf (@codetv.dev):

codetv.dev/blog/astro-css-over

Frontend Dogma's avatar
Frontend Dogma

@frontenddogma@mas.to

CSS Overrides Without “!important” Using Layers in Astro Components, by @jlengstorf (@codetv.dev):

codetv.dev/blog/astro-css-over

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

By correctly understanding all the alignment mechanisms, you can unlock "secret" ways to center an element inside a container.

Demo: codepen.io/t_afif/pen/dPYBPGm via :codepen: @codepen.io

flex-wrap and space-around?! Yes, it's valid and it works!

Don't miss my exploration for more alignment tricks: css-tip.com/explore/alignment/

The following CSS code:
.center {
  display: flex;
  flex-wrap: wrap;
  place-content: space-around; 
}
ALT text detailsThe following CSS code: .center { display: flex; flex-wrap: wrap; place-content: space-around; }
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

By correctly understanding all the alignment mechanisms, you can unlock "secret" ways to center an element inside a container.

Demo: codepen.io/t_afif/pen/dPYBPGm via :codepen: @codepen.io

flex-wrap and space-around?! Yes, it's valid and it works!

Don't miss my exploration for more alignment tricks: css-tip.com/explore/alignment/

The following CSS code:
.center {
  display: flex;
  flex-wrap: wrap;
  place-content: space-around; 
}
ALT text detailsThe following CSS code: .center { display: flex; flex-wrap: wrap; place-content: space-around; }
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social

How would you code this with:

✨ 1 HTML element, no JS, no SVG
✨ inner border interrupted by text box shape
✨ responsive
✨ text wraps depending on space
✨ contenteditable
✨ 1 image = the background one

(if you're Cheetah+ on Ko-fi/ Patreon, you know where to find the answer)

Text that can wrap depending on available space in the bottom left corner of a card with padding. At the limit between the card's padding area and content area, there's an inner border interrupted in the bottom left corner by the text box. The text is contenteditable.
ALT text detailsText that can wrap depending on available space in the bottom left corner of a card with padding. At the limit between the card's padding area and content area, there's an inner border interrupted in the bottom left corner by the text box. The text is contenteditable.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social

How would you code this with:

✨ 1 HTML element, no JS, no SVG
✨ inner border interrupted by text box shape
✨ responsive
✨ text wraps depending on space
✨ contenteditable
✨ 1 image = the background one

(if you're Cheetah+ on Ko-fi/ Patreon, you know where to find the answer)

Text that can wrap depending on available space in the bottom left corner of a card with padding. At the limit between the card's padding area and content area, there's an inner border interrupted in the bottom left corner by the text box. The text is contenteditable.
ALT text detailsText that can wrap depending on available space in the bottom left corner of a card with padding. At the limit between the card's padding area and content area, there's an inner border interrupted in the bottom left corner by the text box. The text is contenteditable.
Noah Liebman's avatar
Noah Liebman

@noleli@mastodon.social

subgrid is the best. Often my go-to for avoiding nested interactive elements codepen.io/noleli/pen/qEOyKEJ

An example menu, each with a link and a button that looks like it’s inside the link. The bottom one shows grid boxes indicating that the link text knows to wrap to avoid the button even though the button isn’t actually inside the link.
ALT text detailsAn example menu, each with a link and a button that looks like it’s inside the link. The bottom one shows grid boxes indicating that the link text knows to wrap to avoid the button even though the button isn’t actually inside the link.
Noah Liebman's avatar
Noah Liebman

@noleli@mastodon.social

subgrid is the best. Often my go-to for avoiding nested interactive elements codepen.io/noleli/pen/qEOyKEJ

An example menu, each with a link and a button that looks like it’s inside the link. The bottom one shows grid boxes indicating that the link text knows to wrap to avoid the button even though the button isn’t actually inside the link.
ALT text detailsAn example menu, each with a link and a button that looks like it’s inside the link. The bottom one shows grid boxes indicating that the link text knows to wrap to avoid the button even though the button isn’t actually inside the link.
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

✅ contrast-color()
✅ control-value()
✅ sibling-index()
✅ scroll-state()
✅ mixins/functions
✅ @starting-style

We chat these and much more over on the @workingdraft show

nerdy.dev/working-draft-show-r

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

✅ contrast-color()
✅ control-value()
✅ sibling-index()
✅ scroll-state()
✅ mixins/functions
✅ @starting-style

We chat these and much more over on the @workingdraft show

nerdy.dev/working-draft-show-r

Chee Aun 🤔's avatar
Chee Aun 🤔

@cheeaun@mastodon.social

There's `@starting-style` in developer.mozilla.org/en-US/do but no 'ending-style' 🫠

Wondering how it got spec-ed out in the first place and even got implemented in browsers (around 2023-2024), where there's start but no end… 🤔

Draft discussion here: github.com/w3c/csswg-drafts/is

Chee Aun 🤔's avatar
Chee Aun 🤔

@cheeaun@mastodon.social

There's `@starting-style` in developer.mozilla.org/en-US/do but no 'ending-style' 🫠

Wondering how it got spec-ed out in the first place and even got implemented in browsers (around 2023-2024), where there's start but no end… 🤔

Draft discussion here: github.com/w3c/csswg-drafts/is

Alvaro Montoro's avatar
Alvaro Montoro

@alvaromontoro@front-end.social

I published a couple of YouTube shorts with 1-minute CSS/HTML tips and tricks. They are vertical versions of previous non-short movies.

Accent-color: youtube.com/shorts/KyVeQ1FTwOg

Theme color: youtube.com/shorts/_Ru5hHCxqQc

My wife will record some voice over later... something tells me those will be more successful than these ones that are only instrumentals with some jazzy music 😅

Alvaro Montoro's avatar
Alvaro Montoro

@alvaromontoro@front-end.social

I published a couple of YouTube shorts with 1-minute CSS/HTML tips and tricks. They are vertical versions of previous non-short movies.

Accent-color: youtube.com/shorts/KyVeQ1FTwOg

Theme color: youtube.com/shorts/_Ru5hHCxqQc

My wife will record some voice over later... something tells me those will be more successful than these ones that are only instrumentals with some jazzy music 😅

Eric A. Meyer's avatar
Eric A. Meyer

@Meyerweb@mastodon.social

I have spent the last few days creating dark mode for a site that didn’t have any, and I have to say, I do not understand how you people can stand it. (Much as you don’t understand my preference for light mode, of course.) My optic nerve hurts SO MUCH right now.

I don’t begrudge the effort: the accessibility win alone made it worth doing, let alone supporting user preference. It was a necessary update, long overdue. But still, OW.

Eric A. Meyer's avatar
Eric A. Meyer

@Meyerweb@mastodon.social

I have spent the last few days creating dark mode for a site that didn’t have any, and I have to say, I do not understand how you people can stand it. (Much as you don’t understand my preference for light mode, of course.) My optic nerve hurts SO MUCH right now.

I don’t begrudge the effort: the accessibility win alone made it worth doing, let alone supporting user preference. It was a necessary update, long overdue. But still, OW.

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

言いたいことはわからないでもないけど、後方互換を切り捨ててまで車輪を再発明する必要あるかな…? height: 50% の例も、自分には「深刻な問題」には感じられなかった…

自分が 推しの視点から見てるだけかもしれないけど

techfeed.io/entries/6893cfcfce

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

`revert` という の値、恥ずかしながら知らなかった。もっと早く知りたかった

developer.mozilla.org/ja/docs/

Mia (web luddite)'s avatar
Mia (web luddite)

@mia@front-end.social

CSS mixins & functions are coming! And the best way to prepare is by re-visiting CSS variables.

Don’t let the Guaranteed Invalid value & Invalid at Computed Value Time behavior trip you up. Watch my CSS Day talk, or book a workshop to go in depth with modern !

oddbird.net/talks/mixins/

Mia (web luddite)'s avatar
Mia (web luddite)

@mia@front-end.social

CSS mixins & functions are coming! And the best way to prepare is by re-visiting CSS variables.

Don’t let the Guaranteed Invalid value & Invalid at Computed Value Time behavior trip you up. Watch my CSS Day talk, or book a workshop to go in depth with modern !

oddbird.net/talks/mixins/

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Create an infinite logo marquee using modern CSS and less than 10 lines of code.

css-tip.com/logo-marquee/

Where's the novelty, you might ask? It's responsive, works with any number of images, doesn't rely on magic numbers, and you can easily control it using CSS variables.

Another use case for modern CSS features (shape(), sibling-index(), sibling-count(), etc).

Infinite logo marquee
ALT text detailsInfinite logo marquee
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Create an infinite logo marquee using modern CSS and less than 10 lines of code.

css-tip.com/logo-marquee/

Where's the novelty, you might ask? It's responsive, works with any number of images, doesn't rely on magic numbers, and you can easily control it using CSS variables.

Another use case for modern CSS features (shape(), sibling-index(), sibling-count(), etc).

Infinite logo marquee
ALT text detailsInfinite logo marquee
yamanoku's avatar
yamanoku

@yamanoku@hollo.yamanoku.net

text-autospaceの初期値をめぐる議論と現状 - Qiita

https://qiita.com/uhyo/items/309bc9ca545797c2b3ee

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

全然技術レベルの違う話ではあるけど、自分もデザイナーなのに っぽい選択をしてきた気がしている。
正確には、自分のスキルと時間的制約とワンオペでの制作・開発という事情でその選択肢しかなかったという側面が大きくて、能動的に選べる選択肢がそれしか無かったんだけど。
ただ、確かに低レイヤーを触る動機が生まれるという意味では良い面もあった気はする。
自分の生存戦略が、なるべくフレームワークとかライブラリに依存しないスキルの勉強にかける、だったから、そういう観点で当時選んだのが「薄い」フロントエンドライブラリとしての だったし、未だに素の を書きたくなってしまう性質に繋がっている気がする。

hackers.pub/@hongminhee/2025/c

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

全然技術レベルの違う話ではあるけど、自分もデザイナーなのに っぽい選択をしてきた気がしている。
正確には、自分のスキルと時間的制約とワンオペでの制作・開発という事情でその選択肢しかなかったという側面が大きくて、能動的に選べる選択肢がそれしか無かったんだけど。
ただ、確かに低レイヤーを触る動機が生まれるという意味では良い面もあった気はする。
自分の生存戦略が、なるべくフレームワークとかライブラリに依存しないスキルの勉強にかける、だったから、そういう観点で当時選んだのが「薄い」フロントエンドライブラリとしての だったし、未だに素の を書きたくなってしまう性質に繋がっている気がする。

hackers.pub/@hongminhee/2025/c

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

You created a CSS shape using shape(), and you want to invert it? Easy! With a few lines of code, you have both the main shape and its cut-out version.

css-tip.com/invert-shape/

As a bonus, you can also control the space around the inverted shape.

Overview of the CSS code from the provided link
ALT text detailsOverview of the CSS code from the provided link
A shape and its cut-out version (I am using the CSS tricks logo as an example but it can be any shape)
ALT text detailsA shape and its cut-out version (I am using the CSS tricks logo as an example but it can be any shape)
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

You created a CSS shape using shape(), and you want to invert it? Easy! With a few lines of code, you have both the main shape and its cut-out version.

css-tip.com/invert-shape/

As a bonus, you can also control the space around the inverted shape.

Overview of the CSS code from the provided link
ALT text detailsOverview of the CSS code from the provided link
A shape and its cut-out version (I am using the CSS tricks logo as an example but it can be any shape)
ALT text detailsA shape and its cut-out version (I am using the CSS tricks logo as an example but it can be any shape)
zeldman's avatar
zeldman

@zeldman@front-end.social

Just like it says: in . A nutritious part of Brad Woods’s Digital Garden.
h/t: @photomatt.

garden.bradwoods.io/notes/css/

3D grid visualized.
ALT text details3D grid visualized.
zeldman's avatar
zeldman

@zeldman@front-end.social

Just like it says: in . A nutritious part of Brad Woods’s Digital Garden.
h/t: @photomatt.

garden.bradwoods.io/notes/css/

3D grid visualized.
ALT text details3D grid visualized.
zeldman's avatar
zeldman

@zeldman@front-end.social

Pure CSS animations that react to scrolling and other behavior. Easy to create, and just as easy to understand, thanks to this fabulous, fast-reading tutorial by Saron Yitbarek.

Hat tip: @jensimmons

webkit.org/blog/17101/a-guide-

zeldman's avatar
zeldman

@zeldman@front-end.social

Pure CSS animations that react to scrolling and other behavior. Easy to create, and just as easy to understand, thanks to this fabulous, fast-reading tutorial by Saron Yitbarek.

Hat tip: @jensimmons

webkit.org/blog/17101/a-guide-

Sara Soueidan's avatar
Sara Soueidan

@SaraSoueidan@front-end.social

Seeing carousels being promoted as accessible again, so here is a periodic reminder:

carousels are not "accessible by default" sarasoueidan.com/blog/css-caro

They are still highly experimental and there are still many open questions & issues being discussed.

+The browser will not do everything for you—you'll still have work to do, too.

Sara Soueidan's avatar
Sara Soueidan

@SaraSoueidan@front-end.social

Seeing carousels being promoted as accessible again, so here is a periodic reminder:

carousels are not "accessible by default" sarasoueidan.com/blog/css-caro

They are still highly experimental and there are still many open questions & issues being discussed.

+The browser will not do everything for you—you'll still have work to do, too.

CSS Basics's avatar
CSS Basics

@cssbasics@hachyderm.io

Better Shapes Using shape(), Part 2: More on Arcs: "This is the second part of a series that dives deep into the CSS shape() command, continuing with a more detailed look at the arc command." css-tricks.com/better-css-shap

CSS Basics's avatar
CSS Basics

@cssbasics@hachyderm.io

Better Shapes Using shape(), Part 2: More on Arcs: "This is the second part of a series that dives deep into the CSS shape() command, continuing with a more detailed look at the arc command." css-tricks.com/better-css-shap

CSS Basics's avatar
CSS Basics

@cssbasics@hachyderm.io

Creating Blob Shapes using clip-path: shape(): "Blobs! Gooey weird shapes you can fill with any background and even animate." frontendmasters.com/blog/creat

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Do you know safe alignment? It's when you make sure your overflowing content is always fully accessible on scroll regardless of the alignment configuration.

css-tip.com/safe-align/

It's not something new but you are probably not aware about it.

CSS Basics's avatar
CSS Basics

@cssbasics@hachyderm.io

Creating Blob Shapes using clip-path: shape(): "Blobs! Gooey weird shapes you can fill with any background and even animate." frontendmasters.com/blog/creat

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

とかで容易に模倣できない演出を「最新の UI トレンド」としてユーザーに印象付けてネイティブアプリのプラットフォームとしてアドバンテージを水増ししようとしているように見えなくもないんだよな…

それが穿った見方という自覚はあるんだけど、いままでの UI から背景色の不透明度と背景ブラーの量を下げて視認性を犠牲にしてまであの光の乱反射みたいな演出を際立たせる理由が、それ以外に今のところは思いつかないんだよな…

Appleが新デザイン「Liquid Glass」発表、全ての製品で採用 - ケータイ Watch
k-tai.watch.impress.co.jp/docs

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Do you know safe alignment? It's when you make sure your overflowing content is always fully accessible on scroll regardless of the alignment configuration.

css-tip.com/safe-align/

It's not something new but you are probably not aware about it.

Chee Aun 🤔's avatar
Chee Aun 🤔

@cheeaun@mastodon.social

This took longer than expected. Pretty cool that it works.

Post featured in video: tapbots.social/@mark/114617305

Demo of CSS view transitions applied when opening thumbnail images of a post into its own image modal.
ALT text detailsDemo of CSS view transitions applied when opening thumbnail images of a post into its own image modal.
Chee Aun 🤔's avatar
Chee Aun 🤔

@cheeaun@mastodon.social

This took longer than expected. Pretty cool that it works.

Post featured in video: tapbots.social/@mark/114617305

Demo of CSS view transitions applied when opening thumbnail images of a post into its own image modal.
ALT text detailsDemo of CSS view transitions applied when opening thumbnail images of a post into its own image modal.
Angelika Cathor's avatar
Angelika Cathor

@angelikatyborska@mas.to

My team is still looking to hire two mid or senior frontend developers, fully remotely from Europe.

We're looking for like-minded individuals that share our love of artisanal , web standards, and

On the website team at Storyblok, we build marketing websites *for* Storyblok *using* Storyblok 🙂 (but we don't build the product itself)

storyblok.com/job?gh_jid=45196

Angelika Cathor's avatar
Angelika Cathor

@angelikatyborska@mas.to

My team is still looking to hire two mid or senior frontend developers, fully remotely from Europe.

We're looking for like-minded individuals that share our love of artisanal , web standards, and

On the website team at Storyblok, we build marketing websites *for* Storyblok *using* Storyblok 🙂 (but we don't build the product itself)

storyblok.com/job?gh_jid=45196

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Excited about the new if() function? Learn how to correctly use it before facing a lot of issues (and headaches).

css-tip.com/inline-if/

The code below looks straightforward, but there is a hidden gotcha! 🤨

The following CSS code:
.box {
  --n: 6; 
  --f: calc(var(--n)/2); 
  background: if(style(--f: 3): red; else: green); 
}
ALT text detailsThe following CSS code: .box { --n: 6; --f: calc(var(--n)/2); background: if(style(--f: 3): red; else: green); }
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Excited about the new if() function? Learn how to correctly use it before facing a lot of issues (and headaches).

css-tip.com/inline-if/

The code below looks straightforward, but there is a hidden gotcha! 🤨

The following CSS code:
.box {
  --n: 6; 
  --f: calc(var(--n)/2); 
  background: if(style(--f: 3): red; else: green); 
}
ALT text detailsThe following CSS code: .box { --n: 6; --f: calc(var(--n)/2); background: if(style(--f: 3): red; else: green); }
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS Article!

The fun continues using shape()!

For this second part, we are drawing more CSS shapes while exploring the arc command. It's a very tricky command if you don't fully understand it.

css-tricks.com/better-css-shap

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS Article!

The fun continues using shape()!

For this second part, we are drawing more CSS shapes while exploring the arc command. It's a very tricky command if you don't fully understand it.

css-tricks.com/better-css-shap

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

👀

coliss.com/articles/build-webs

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

shape() + Anchor Positioning + some magic 🪄

Demo: codepen.io/t_afif/full/PwqwOYz via :codepen: @codepen

A CSS-only fancy effect for this week

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

shape() + Anchor Positioning + some magic 🪄

Demo: codepen.io/t_afif/full/PwqwOYz via :codepen: @codepen

A CSS-only fancy effect for this week

Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

🔟 521 ❤️ Pure toggle with a single `input[type=checkbox]` and its `label` - check it out on @codepen codepen.io/thebabydino/pen/ajp

Animated GIF. Shows a ball toggling back and forth on a 3D track while casting a shadow. When the toggle is off, the ball is grey. When the toggle is on, the ball is green.
ALT text detailsAnimated GIF. Shows a ball toggling back and forth on a 3D track while casting a shadow. When the toggle is off, the ball is grey. When the toggle is on, the ball is green.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

🔟 521 ❤️ Pure toggle with a single `input[type=checkbox]` and its `label` - check it out on @codepen codepen.io/thebabydino/pen/ajp

Animated GIF. Shows a ball toggling back and forth on a 3D track while casting a shadow. When the toggle is off, the ball is grey. When the toggle is on, the ball is green.
ALT text detailsAnimated GIF. Shows a ball toggling back and forth on a 3D track while casting a shadow. When the toggle is off, the ball is grey. When the toggle is on, the ball is green.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

9️⃣ 593 ❤️ Cycling gradient glow with no text duplication - see it on @codepen codepen.io/thebabydino/pen/rNP

A super simple, but cool trick.

We create the gradient text.

The filter creates a blurred copy of it and places it underneath.

We then animate the stops... magic! 🪄✨

Animated GIF. Gradient text having the same gradient for its text glow. The gradient cycles in between two hues 90° apart.
ALT text detailsAnimated GIF. Gradient text having the same gradient for its text glow. The gradient cycles in between two hues 90° apart.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

8️⃣ 736 ♥️ Pure 1 div card patterns (no SVG, no images other than CSS gradients) - see it on @codepen codepen.io/thebabydino/pen/NWx

A bunch of variations on the pure CSS technique detailed in this article frontendmasters.com/blog/pure-

19 cards, each with a different kind of halftone pattern.
ALT text details19 cards, each with a different kind of halftone pattern.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

7️⃣ 749 ❤️ Pure Möbius 6hedrons codepen.io/thebabydino/pen/mJo

The how behind I live coded it in 30 minutes css-tricks.com/how-i-live-code

Could be improved with CSS variables nowadays, see css-tricks.com/simplifying-css as well as by using CSS trigonometric functions.

Animated GIF. Shows a Möbius strip made up of square base bars that keep rotating by half a turn in a staggered manner.
ALT text detailsAnimated GIF. Shows a Möbius strip made up of square base bars that keep rotating by half a turn in a staggered manner.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

6️⃣ 816 ❤️ no sprite, no JS twitter 🤍 animation codepen.io/thebabydino/pen/RRR

Behind the demo css-tricks.com/recreating-the-

Now twitter uses an SVG heart 👍 (that path data though 😵) and upon clicking, inserts a div with the sparks. There are better ways to do it... still better than sprites!

Shows the twitter heart animation with sparks flying away from it as it goes from grey to red on click.
ALT text detailsShows the twitter heart animation with sparks flying away from it as it goes from grey to red on click.
The current twitter heart in DevTools: created with an SVG path, but that path data is a lot of char vomit.
ALT text detailsThe current twitter heart in DevTools: created with an SVG path, but that path data is a lot of char vomit.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social

A little thing I made on @codepen.io: breathing with `shape()`
codepen.io/thebabydino/pen/vEE

`shape()` is supported in Chrome 135+ and Safari 18.4+.

Firefox 126+ supports it for simple shapes (but not for this demo) when setting thelayout.css.basic-shape-shape.enabled to true in about:config.

A "breathing" square image whose shape gets squished from each of its four sides.
ALT text detailsA "breathing" square image whose shape gets squished from each of its four sides.
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social

A little thing I made on @codepen.io: breathing with `shape()`
codepen.io/thebabydino/pen/vEE

`shape()` is supported in Chrome 135+ and Safari 18.4+.

Firefox 126+ supports it for simple shapes (but not for this demo) when setting thelayout.css.basic-shape-shape.enabled to true in about:config.

A "breathing" square image whose shape gets squished from each of its four sides.
ALT text detailsA "breathing" square image whose shape gets squished from each of its four sides.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS Article!

It's me again exploring the new shape() function! ⭐

This time, I wrote a series of articles to help you understand this new and powerful tool and the first part is live 👇

css-tricks.com/better-css-shap

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS Article!

It's me again exploring the new shape() function! ⭐

This time, I wrote a series of articles to help you understand this new and powerful tool and the first part is live 👇

css-tricks.com/better-css-shap

Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

5️⃣ 850 ♥️ No SVG, no image fluid slider codepen.io/thebabydino/pen/qBy

used only for
a) feature support detection
b) updating slider value in --val

Uses only
1 × input[type=range] for actual slider
1 × output for current value display
1 × datalist for ruler

One of my best sliders on @codepen.

Fluid vertical slider. Dragging the thumb bends the track and ruller around it. The ruler markings also dynamically fade the further away from the thumb they are. On the right, there is a DevTools panel open to show that this is made with a range input, an output and a datalist with options, all inside a group wrapper.
ALT text detailsFluid vertical slider. Dragging the thumb bends the track and ruller around it. The ruler markings also dynamically fade the further away from the thumb they are. On the right, there is a DevTools panel open to show that this is made with a range input, an output and a datalist with options, all inside a group wrapper.
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

3 Unintuitive Layout “Solutions”

```
min-width: 0?
flex-shrink: 0?
repeat(auto-fill, minmax(min(10rem, 100%), 1fr))
```

wat?
nerdy.dev/3-unintuitive-layout

A horse on a boat on the ocean holding a kitten
ALT text detailsA horse on a boat on the ocean holding a kitten
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

3 Unintuitive Layout “Solutions”

```
min-width: 0?
flex-shrink: 0?
repeat(auto-fill, minmax(min(10rem, 100%), 1fr))
```

wat?
nerdy.dev/3-unintuitive-layout

A horse on a boat on the ocean holding a kitten
ALT text detailsA horse on a boat on the ocean holding a kitten
Jen Simmons's avatar
Jen Simmons

@jensimmons@front-end.social

The one where I muse about how this simple bit of code radically changes how the web itself seems to behave…

**Two lines of Cross-Document View Transitions code you can use on every website today**

webkit.org/blog/16967/two-line

@view-transition { navigation: auto ; }
ALT text details@view-transition { navigation: auto ; }
Inautilo's avatar
Inautilo

@inautilo@mastodon.social


The CSS mindset · CSS makes sense when seen as a set of algorithms ilo.im/1642es

_____

Inautilo's avatar
Inautilo

@inautilo@mastodon.social


The CSS mindset · CSS makes sense when seen as a set of algorithms ilo.im/1642es

_____

Eric A. Meyer's avatar
Eric A. Meyer

@Meyerweb@mastodon.social

⌨️ New blog post about masonry layout, the (fairly) new Item Flow proposal, maybe subsuming multicol, and a light tingling from my Web-Sense. That last part isn’t NSFW, I promise. (Sorry, @brucelawson.) meyerweb.com/eric/thoughts/202

Eric A. Meyer's avatar
Eric A. Meyer

@Meyerweb@mastodon.social

⌨️ New blog post about masonry layout, the (fairly) new Item Flow proposal, maybe subsuming multicol, and a light tingling from my Web-Sense. That last part isn’t NSFW, I promise. (Sorry, @brucelawson.) meyerweb.com/eric/thoughts/202

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Create an arc shape with rounded edges using shape() and arc commands. Another shape made easy using shape() (I know, it's a lot of "shape" in the post 😅)

css-tip.com/arc-shape-rounded/

And look at that if() statement 👀

Overview of the CSS code from the provided link
ALT text detailsOverview of the CSS code from the provided link
Arc shape with rounded edges
ALT text detailsArc shape with rounded edges
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

3️⃣ 1044 ♥️ Pure gravity button codepen.io/thebabydino/pen/bGz - a bit mixed about it, it was just an exercise in getting a certain result - don't use it in the wild!

My first ever @codepen demo to get to 1K ♥️. And it got copied left and right.
¯\_(ツ)_/¯

Screenshot of the gravity button. Shows round particles appearing and getting pulled towards the button. As they approach, they accelerate and get stretched before smashing into the button and causing sparks.
ALT text detailsScreenshot of the gravity button. Shows round particles appearing and getting pulled towards the button. As they approach, they accelerate and get stretched before smashing into the button and causing sparks.
August 2024 post showing how I found this demo on a website, wrapped in AI-generated crap that claims to explain what's going on. Except it gets it very wrong. And they don't indicate in any way that someone else (me!) made it.
ALT text detailsAugust 2024 post showing how I found this demo on a website, wrapped in AI-generated crap that claims to explain what's going on. Except it gets it very wrong. And they don't indicate in any way that someone else (me!) made it.
My post about finding my demo on in a video on the Indiamoon YouTube channel. The video is 90 seconds of auto-typing code and also doesn't credit me.
ALT text detailsMy post about finding my demo on in a video on the Indiamoon YouTube channel. The video is 90 seconds of auto-typing code and also doesn't credit me.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Create an arc shape with rounded edges using shape() and arc commands. Another shape made easy using shape() (I know, it's a lot of "shape" in the post 😅)

css-tip.com/arc-shape-rounded/

And look at that if() statement 👀

Overview of the CSS code from the provided link
ALT text detailsOverview of the CSS code from the provided link
Arc shape with rounded edges
ALT text detailsArc shape with rounded edges
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social · Reply to Ana Tudor 🐯's post

2️⃣ 1076 ♥️ Simplest inner glow card animation codepen.io/thebabydino/pen/WNV - a super simple pure demo I made in a few minutes to answer a reddit question and never expected would even get noticed much. It was my only 2024 demo to make into the most hearted 100 Pens of the year on @codepen.

A card with text content, transparent background, rounded corners and a rotating inner edge rainbow gradient glow.
ALT text detailsA card with text content, transparent background, rounded corners and a rotating inner edge rainbow gradient glow.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS Article!

My first article about using shape() is live. I am officially a shape() spammer so get ready 🫣

frontendmasters.com/blog/creat

Learn the "arc" command by creating flower-like shapes.

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS Article!

My first article about using shape() is live. I am officially a shape() spammer so get ready 🫣

frontendmasters.com/blog/creat

Learn the "arc" command by creating flower-like shapes.

Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social

I turn 13 on @codepen in June, so here are my 13 most hearted demos:

1️⃣ 1092 ♥️ infinite gallery codepen.io/thebabydino/pen/XJr - my only demo to ever get to 1K ♥️ without being in most hearted of the year first

mostly CSS scroll-driven animations + tiniest bit of JS (~200 bytes for infinity part)

Scrolling a bunch of times back and forth to highlight the infinity part of the demo. Hovering the cards in the gallery makes them rotate around their axis.
ALT text detailsScrolling a bunch of times back and forth to highlight the infinity part of the demo. Hovering the cards in the gallery makes them rotate around their axis.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

And here is the CSS logo made with the shape() function.

Demo: codepen.io/t_afif/full/JooZWMq via :codepen: @codepen

Take a deep breath before looking at the code 🫣

The official CSS logo
ALT text detailsThe official CSS logo
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

And here is the CSS logo made with the shape() function.

Demo: codepen.io/t_afif/full/JooZWMq via :codepen: @codepen

Take a deep breath before looking at the code 🫣

The official CSS logo
ALT text detailsThe official CSS logo
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

The @codepen logo using the new shape() function.

codepen.io/t_afif/full/JoovLam

Do you think SVG is hard? Wait until this beast becomes widely supported 😈

A CSS code that creates the Codepen logo.
ALT text detailsA CSS code that creates the Codepen logo.
The codepen logo (both dark and light version)
ALT text detailsThe codepen logo (both dark and light version)
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

⚙️ New CSS Generator

It's finally possible. A blob shape using only CSS! 🤩

css-generators.com/blob/

Play with the setting and get a cool shape in no time.
✅ Single element (works with images)
✅ One line of code
✅ Responsive

⚠️ Limited support (Chrome and Safari for now) ⚠️

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

⚙️ New CSS Generator

It's finally possible. A blob shape using only CSS! 🤩

css-generators.com/blob/

Play with the setting and get a cool shape in no time.
✅ Single element (works with images)
✅ One line of code
✅ Responsive

⚠️ Limited support (Chrome and Safari for now) ⚠️

iamdtms's avatar
iamdtms

@iamdtms@mas.to

New features to know for 2025
by @kevinpowell
youtube.com/watch?v=jSCgZqoebs

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

だけでも での を使えることを知った

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Blob in progress! Stay tuned 👀

They are finally possible using only CSS (no SVG and no Canvas)

How? The new shape() function!

random blob shapes
ALT text detailsrandom blob shapes
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Blob in progress! Stay tuned 👀

They are finally possible using only CSS (no SVG and no Canvas)

How? The new shape() function!

random blob shapes
ALT text detailsrandom blob shapes
GENKI's avatar
GENKI

@nibushibu@vivaldi.net · Reply to GENKI's post

をはじめ まわりの最近の進化はほんともっと注目されてよいと思っている。

ってなんか最近のフロントエンドでも「低レイヤーの話」みたいになっちゃってて、目新しいフレームワークっぽいシャレた名前もない「 の新機能!」っていっても、なんかいまいち盛り上がりきらない感があるような気がするんだけど、 はいま素で書くだけでもすごい強力になってきている(むしろフレームワークに寄らずに素の CSS 書きたい気持ちすらある

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

I updated my online generator to add the radius option! The easiest way to generate regular polygons with rounded corners.

css-generators.com/polygon-sha

And look at that border-only version! 🤩

iamdtms's avatar
iamdtms

@iamdtms@mas.to

New features to know for 2025
by @kevinpowell
youtube.com/watch?v=jSCgZqoebs

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

I updated my online generator to add the radius option! The easiest way to generate regular polygons with rounded corners.

css-generators.com/polygon-sha

And look at that border-only version! 🤩

Mayank's avatar
Mayank

@mayank@front-end.social

one of my favorite uses of `:has()` is to change the grid layout based on what's inside the grid

```
grid-template-areas: /* simple layout */

&:has(.thing) {
grid-template-areas: /* more complex layout */;
}
```

Nina Haghighi's avatar
Nina Haghighi

@ninahaghighi@mastodon.social

Back when I was learning about , there was an amazing resource called CSS Zen Garden. It helped expand my knowledge of what was possible. It was like magic. TIL it's still around (no Internet Archive needed). csszengarden.com

Nina Haghighi's avatar
Nina Haghighi

@ninahaghighi@mastodon.social

Back when I was learning about , there was an amazing resource called CSS Zen Garden. It helped expand my knowledge of what was possible. It was like magic. TIL it's still around (no Internet Archive needed). csszengarden.com

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

And here is the code to generate any polygon shape with rounded corners!

css-tip.com/rounded-polygon/

Update the variables then get your code (There is another variation using CSS variables as well).

Overview of the CSS code from the link in the post
ALT text detailsOverview of the CSS code from the link in the post
Different polygon shapes with rounded corners
ALT text detailsDifferent polygon shapes with rounded corners
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

And here is the code to generate any polygon shape with rounded corners!

css-tip.com/rounded-polygon/

Update the variables then get your code (There is another variation using CSS variables as well).

Overview of the CSS code from the link in the post
ALT text detailsOverview of the CSS code from the link in the post
Different polygon shapes with rounded corners
ALT text detailsDifferent polygon shapes with rounded corners
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Shapes with rounded corners are a nightmare in CSS but it's now easy with the new shape() function! 🥳

Let's start with a classic: The Hexagon

css-tip.com/rounded-hexagon/

Yes, you can animate the radius and rotate the shape. Modern CSS is cool!

Do you want another polygon shape? I am cooking a generic code to create all of them.

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

某所で とか とか最新の のカラー周りの機能について雑談してみて、oklch() とか使って色管理するにはまだデザインソフト側が対応してないからやっぱり採用ハードルあるよなーと思ったんだけど

いまふと「いや、むしろだからこそインブラウザデザインの時代なんじゃないか!?」と思ったりした

:vivaldia_5: インブラウザデザインの夜明けぜよ :macos:

GENKI's avatar
GENKI

@nibushibu@vivaldi.net · Reply to GENKI's post

* 🎨 明度・彩度・色相もそれぞれ変数化できる
* 🧮 特定の色を相対的に変化可能な
* 🌈 色をより人間の知覚に近い形で扱える

このあたりは、現存するどのデザインツールよりも、現在のブラウザーで使える の機能のほうが柔軟で拡張性が高い。

…あれ、ということはやっぱり最強のデザインツールは なのでは :vivaldia_1:

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

某所で とか とか最新の のカラー周りの機能について雑談してみて、oklch() とか使って色管理するにはまだデザインソフト側が対応してないからやっぱり採用ハードルあるよなーと思ったんだけど

いまふと「いや、むしろだからこそインブラウザデザインの時代なんじゃないか!?」と思ったりした

:vivaldia_5: インブラウザデザインの夜明けぜよ :macos:

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

変数を活用したフレームワークの の作者で Chrome for developers でも最新の を中心にたくさんの記事を執筆してる Adam Argyle さん、急に Google での仕事を失った(クビになった?)っぽい…
何があったんだ…

G̶o̶o̶g̶l̶e̶r̶… ex-Googler. · April 10, 2025
nerdy.dev/ex-googler

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

変数を活用したフレームワークの の作者で Chrome for developers でも最新の を中心にたくさんの記事を執筆してる Adam Argyle さん、急に Google での仕事を失った(クビになった?)っぽい…
何があったんだ…

G̶o̶o̶g̶l̶e̶r̶… ex-Googler. · April 10, 2025
nerdy.dev/ex-googler

Vivaldi's avatar
Vivaldi

@Vivaldi@vivaldi.net

🚨 New Podcast! What’s next for CSS? Bruce chats with Miriam Suzanne, CSS expert and independent contributor to the CSS Working Group, about game-changing features like Cascade Layers, Scope, Mixins, and Container Queries, and how they’re shaping the future of web design.

🎧 Spotify: open.spotify.com/episode/4D72M
📺 YouTube: youtu.be/ukUewXT_Ifk

Podcast episode image of Bruce Lawson and Miriam Suzanne. Text title: EP08 Tales from the CSS Working Group.
ALT text detailsPodcast episode image of Bruce Lawson and Miriam Suzanne. Text title: EP08 Tales from the CSS Working Group.
Vivaldi's avatar
Vivaldi

@Vivaldi@vivaldi.net

🚨 New Podcast! What’s next for CSS? Bruce chats with Miriam Suzanne, CSS expert and independent contributor to the CSS Working Group, about game-changing features like Cascade Layers, Scope, Mixins, and Container Queries, and how they’re shaping the future of web design.

🎧 Spotify: open.spotify.com/episode/4D72M
📺 YouTube: youtu.be/ukUewXT_Ifk

Podcast episode image of Bruce Lawson and Miriam Suzanne. Text title: EP08 Tales from the CSS Working Group.
ALT text detailsPodcast episode image of Bruce Lawson and Miriam Suzanne. Text title: EP08 Tales from the CSS Working Group.
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

new Notebook
- relative color

nerdy.dev/notebook/relative-co

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

new Notebook
- relative color

nerdy.dev/notebook/relative-co

pablolarah's avatar
pablolarah

@pablolarah@mastodon.social

🟡🔵 Matching drop shadows across CSS, Android, iOS, Figma, and Sketch
by @bjango.com @bjango

bjango.com/articles/matchingdr

White text "Matching drop shadows across CSS, Android, iOS, Figma, and Sketch" with blue shadow on yellow background.
ALT text detailsWhite text "Matching drop shadows across CSS, Android, iOS, Figma, and Sketch" with blue shadow on yellow background.
pablolarah's avatar
pablolarah

@pablolarah@mastodon.social

🟡🔵 Matching drop shadows across CSS, Android, iOS, Figma, and Sketch
by @bjango.com @bjango

bjango.com/articles/matchingdr

White text "Matching drop shadows across CSS, Android, iOS, Figma, and Sketch" with blue shadow on yellow background.
ALT text detailsWhite text "Matching drop shadows across CSS, Android, iOS, Figma, and Sketch" with blue shadow on yellow background.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Want to see some magic using the new attr() function? Here is a trick to create a progress element with a dynamic coloration based on the progression!

css-tip.com/custom-progress/

⚠️ Chrome-only for now ⚠️

Overview of the CSS code from the provided link
ALT text detailsOverview of the CSS code from the provided link
Progress elements with dynamic coloration
ALT text detailsProgress elements with dynamic coloration
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Want to see some magic using the new attr() function? Here is a trick to create a progress element with a dynamic coloration based on the progression!

css-tip.com/custom-progress/

⚠️ Chrome-only for now ⚠️

Overview of the CSS code from the provided link
ALT text detailsOverview of the CSS code from the provided link
Progress elements with dynamic coloration
ALT text detailsProgress elements with dynamic coloration
Inautilo's avatar
Inautilo

@inautilo@mastodon.social


Revisiting CSS ‘border-image’ · “It remains one of the most underused CSS tools.” ilo.im/162y7m

_____

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

only carousels arrive in Chrome 135

nerdy.dev/css-carousel-in-chro

a series of quick cuts showcasing many of the carousel examples from the Carousel Gallery
ALT text detailsa series of quick cuts showcasing many of the carousel examples from the Carousel Gallery
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

only carousels arrive in Chrome 135

nerdy.dev/css-carousel-in-chro

a series of quick cuts showcasing many of the carousel examples from the Carousel Gallery
ALT text detailsa series of quick cuts showcasing many of the carousel examples from the Carousel Gallery
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

only carousels arrive in Chrome 135

nerdy.dev/css-carousel-in-chro

a series of quick cuts showcasing many of the carousel examples from the Carousel Gallery
ALT text detailsa series of quick cuts showcasing many of the carousel examples from the Carousel Gallery
Ana Tudor 🐯's avatar
Ana Tudor 🐯

@anatudor@mastodon.social

For everyone who has told me the + stuff I've been sharing is cool, remember that praise doesn't pay for all this work..

but you can ko-fi.com/anatudor

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

amazing what a few lines of can do

codepen.io/argyleink/pen/LEYOg

image gallery shown in 3 columns. column left animated images in from the left, while the right column does it from the right. creates a "coming together" effect as the 3 columns of images continues to come to together
ALT text detailsimage gallery shown in 3 columns. column left animated images in from the left, while the right column does it from the right. creates a "coming together" effect as the 3 columns of images continues to come to together
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

amazing what a few lines of can do

codepen.io/argyleink/pen/LEYOg

image gallery shown in 3 columns. column left animated images in from the left, while the right column does it from the right. creates a "coming together" effect as the 3 columns of images continues to come to together
ALT text detailsimage gallery shown in 3 columns. column left animated images in from the left, while the right column does it from the right. creates a "coming together" effect as the 3 columns of images continues to come to together
Mark Wyner Won’t Comply :vm:'s avatar
Mark Wyner Won’t Comply :vm:

@markwyner@mas.to

This is wild. I began designing and building websites in 1995. From today, in 2025, I’ve been designing and writing code for most of the internet’s existence. 👀


w3c.social/@w3c/11415055447195

Mark Wyner Won’t Comply :vm:'s avatar
Mark Wyner Won’t Comply :vm:

@markwyner@mas.to

This is wild. I began designing and building websites in 1995. From today, in 2025, I’ve been designing and writing code for most of the internet’s existence. 👀


w3c.social/@w3c/11415055447195

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

sibling-index() and sibling-count()
available Chrome Canary with experiments enabled!

`transition-delay: calc(sibling-index() * .1s);`

or

```css
--hue: calc(sibling-index() * 50);
color: oklch(70% 70% var(--hue));
```

more info and a Codepen to fork
nerdy.dev/sibling-index

Example using the demo, the list is shuffled and staggering happens again
ALT text detailsExample using the demo, the list is shuffled and staggering happens again
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

sibling-index() and sibling-count()
available Chrome Canary with experiments enabled!

`transition-delay: calc(sibling-index() * .1s);`

or

```css
--hue: calc(sibling-index() * 50);
color: oklch(70% 70% var(--hue));
```

more info and a Codepen to fork
nerdy.dev/sibling-index

Example using the demo, the list is shuffled and staggering happens again
ALT text detailsExample using the demo, the list is shuffled and staggering happens again
Christian Alder's avatar
Christian Alder

@hejchristian@mastodon.social

TIL about CSS image-rendering: pixelated;

Allowing pixel art to scale up to any size and not look bad.

On / Off comparison for increasing scale 32px, 64px, 128px, and 256px.

Four of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect of applying CSS property image-rendering: pixelated; which keeps the crisp pixel effect.
ALT text detailsFour of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect of applying CSS property image-rendering: pixelated; which keeps the crisp pixel effect.
Four of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect without any image-rendering property applied. For each cat up in size, it gets more blurry and looks bad.
ALT text detailsFour of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect without any image-rendering property applied. For each cat up in size, it gets more blurry and looks bad.
Christian Alder's avatar
Christian Alder

@hejchristian@mastodon.social

TIL about CSS image-rendering: pixelated;

Allowing pixel art to scale up to any size and not look bad.

On / Off comparison for increasing scale 32px, 64px, 128px, and 256px.

Four of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect of applying CSS property image-rendering: pixelated; which keeps the crisp pixel effect.
ALT text detailsFour of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect of applying CSS property image-rendering: pixelated; which keeps the crisp pixel effect.
Four of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect without any image-rendering property applied. For each cat up in size, it gets more blurry and looks bad.
ALT text detailsFour of the same pixelart orange tabby cat, of increasing size by powers of two; Showing the effect without any image-rendering property applied. For each cat up in size, it gets more blurry and looks bad.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 The second part is live!

This time, I am using scroll-driven animation to create the star rating component! It's a good exercise to discover some modern features.

css-tricks.com/a-css-only-star via @csstricks

Single element and 100% CSS magic!

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 The second part is live!

This time, I am using scroll-driven animation to create the star rating component! It's a good exercise to discover some modern features.

css-tricks.com/a-css-only-star via @csstricks

Single element and 100% CSS magic!

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

について昨夜調べて少し理解が深まった。
そもそも「色空間」と「カラープロファイル」を自分は少し混同していたので、まずそこの理解が整理できた。
oklch は色空間。色空間は色を数学的に記述する方法であって、あくまで色の「表現方法」なので特定の色の同一性は保持されない。
sRGB とか Display P3 はカラープロファイル。カラープロファイルは、oklch を含む色空間によって記述された色を実際のディスプレイにどういう色で表示するかをマッピングしたもので、つまり色の「再現方法」であり、最終的に出力される色の同一性を保持するためのもの。

GENKI's avatar
GENKI

@nibushibu@vivaldi.net

は設定周りを 関数化して大分 JS から 的なアプローチに変わった感があるけど、CSS 変数はそういう設定周りだけじゃなくてスタイリングの定義にガツガツ使ってはじめて効果が実感できるみたいな感覚もあり、「そこまで CSS 的なアプローチするならそもそも Tailwind 使わなくてよくない?」という気持ちがある。scoped なスタイル書く方法は色々あるわけだし、特に色周りなんかはカラーパレットを段階的に用意するのはもうナンセンスというか、主だった元カラーだけを用意して末端のスタイルでそれらを color-mix() とか color() とかで合成するほうが理にかなってる気がしてきている

Jen Simmons's avatar
Jen Simmons

@jensimmons@front-end.social

What do you want to learn about typography on the web? What CSS have you been meaning to learn? What’s still frustrating or confusing — that you wish you could do or polish more easily?

Jen Simmons's avatar
Jen Simmons

@jensimmons@front-end.social

What do you want to learn about typography on the web? What CSS have you been meaning to learn? What’s still frustrating or confusing — that you wish you could do or polish more easily?

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Made a little tool to better visualize the effect of the new text-box property and also generate the code for you!

css-tip.com/text-box/

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Made a little tool to better visualize the effect of the new text-box property and also generate the code for you!

css-tip.com/text-box/

Tyler Sticka's avatar
Tyler Sticka

@tylersticka@social.lol

I’ve been designing web experiences for 20+ years. While I use and enjoy dedicated design software, I’m pretty sure I design “in the browser” more than most.

Here are just a few reasons why… cloudfour.com/thinks/why-i-lik

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Save this one line of code for the future!

css-tip.com/center-uppercase/

No more hacky code trying to remove those spaces above and below an uppercase text. You can easily have a perfect centering for the text!

An overview of the CSS code from the provided link
ALT text detailsAn overview of the CSS code from the provided link
Illustrating how to remove spaces above and below an uppercase text
ALT text detailsIllustrating how to remove spaces above and below an uppercase text
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 CSS Tip!

Save this one line of code for the future!

css-tip.com/center-uppercase/

No more hacky code trying to remove those spaces above and below an uppercase text. You can easily have a perfect centering for the text!

An overview of the CSS code from the provided link
ALT text detailsAn overview of the CSS code from the provided link
Illustrating how to remove spaces above and below an uppercase text
ALT text detailsIllustrating how to remove spaces above and below an uppercase text
GENKI's avatar
GENKI

@nibushibu@vivaldi.net

この oklch() と current color の使い方好き。
自分も color-mix() でこういう風に currentColor 使ったけど oklch() でこういうふうに書けるならこっちがいいかも :tony_grinning:

Combining currentcolor with relative color syntax

fullystacked.net/currentcolor-

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

fun little kaleidoscope gradient trick

nerdy.dev/css-kaleidoscopes

short preview of the animations from both the linear and radial gradients
ALT text detailsshort preview of the animations from both the linear and radial gradients
Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

fun little kaleidoscope gradient trick

nerdy.dev/css-kaleidoscopes

short preview of the animations from both the linear and radial gradients
ALT text detailsshort preview of the animations from both the linear and radial gradients
GENKI's avatar
GENKI

@nibushibu@vivaldi.net

めっちゃアガる記事だった

OKLCH, explained for designers | Samuel Wong — Hong Kong UI/UX Designer | Desktop of Samuel

desktopofsamuel.com/oklch-expl

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Turn your image into a fancy heart animation ♥️

css-tip.com/heart-shape-hover-

A CSS only single-element implementation

A reveal animation where a heart is split in two part to reveal an image.
ALT text detailsA reveal animation where a heart is split in two part to reveal an image.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Turn your image into a fancy heart animation ♥️

css-tip.com/heart-shape-hover-

A CSS only single-element implementation

A reveal animation where a heart is split in two part to reveal an image.
ALT text detailsA reveal animation where a heart is split in two part to reveal an image.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Redoing the line-up section of @cssdayconf with a cool hover effect! 🤩

Demo: codepen.io/t_afif/full/raNNbyG via :codepen: @codepen

Psst, there is no keyframes in the code! Can you guess how it's done?

That HTML Blog & The Spicy Web's avatar
That HTML Blog & The Spicy Web

@vanillaweb@intuitivefuture.com

Every time I see utility classes sprayed all over basic tags like <p> and <a>… 😂

That’s What the Cascading Style Sheets are For! (Don Draper yelling meme)
ALT text detailsThat’s What the Cascading Style Sheets are For! (Don Draper yelling meme)
That HTML Blog & The Spicy Web's avatar
That HTML Blog & The Spicy Web

@vanillaweb@intuitivefuture.com

Every time I see utility classes sprayed all over basic tags like <p> and <a>… 😂

That’s What the Cascading Style Sheets are For! (Don Draper yelling meme)
ALT text detailsThat’s What the Cascading Style Sheets are For! (Don Draper yelling meme)
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Redoing the line-up section of @cssdayconf with a cool hover effect! 🤩

Demo: codepen.io/t_afif/full/raNNbyG via :codepen: @codepen

Psst, there is no keyframes in the code! Can you guess how it's done?

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

And the horizontal version as well!

Demo: codepen.io/t_afif/full/MYWWjvE via @codepen

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

A fun CSS-only experimentation using modern features (anchor positioning, @​property, :has(), and more!)

Code & Demo: css-tip.com/bouncy-input/

Is it useful? Probably not.
Is it cool? Yes!

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social · Reply to CSS by T. Afif :verified:'s post

And the horizontal version as well!

Demo: codepen.io/t_afif/full/MYWWjvE via @codepen

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

A fun CSS-only experimentation using modern features (anchor positioning, @​property, :has(), and more!)

Code & Demo: css-tip.com/bouncy-input/

Is it useful? Probably not.
Is it cool? Yes!

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

30 scroll driven animation examples

which is your favorite?
- z-stack and slither are mine

nerdy.dev/scroll-driven-animat

Adam Argyle :chrome:'s avatar
Adam Argyle :chrome:

@argyleink@front-end.social

30 scroll driven animation examples

which is your favorite?
- z-stack and slither are mine

nerdy.dev/scroll-driven-animat

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Adding another CSS shape to the collection

css-shape.com/pointy-box/

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Adding another CSS shape to the collection

css-shape.com/pointy-box/

Chris Gioran 💔's avatar
Chris Gioran 💔

@chrisg@fosstodon.org

Does support filters on its elements?

Of course it does, for years.

Ah, but does support it?

Of course not, because it's webkit.

Why can't you just be normal meme

Two panels, stacked.

First shows a blonde woman in the front seat of a car. She is turning to look back and yells at whomever is there. Caption reads in white letters "me, trying to write a web page" and in yellow letters "why can't you just be normal"

Second panel shows a blonde boy sitting at the back seat of a car. It is yelling, looking up and away from the direction of the front seat. Caption reads in white letters "webkit" and in yellow letters "*screams""
ALT text detailsWhy can't you just be normal meme Two panels, stacked. First shows a blonde woman in the front seat of a car. She is turning to look back and yells at whomever is there. Caption reads in white letters "me, trying to write a web page" and in yellow letters "why can't you just be normal" Second panel shows a blonde boy sitting at the back seat of a car. It is yelling, looking up and away from the direction of the front seat. Caption reads in white letters "webkit" and in yellow letters "*screams""
Chris Gioran 💔's avatar
Chris Gioran 💔

@chrisg@fosstodon.org

Does support filters on its elements?

Of course it does, for years.

Ah, but does support it?

Of course not, because it's webkit.

Why can't you just be normal meme

Two panels, stacked.

First shows a blonde woman in the front seat of a car. She is turning to look back and yells at whomever is there. Caption reads in white letters "me, trying to write a web page" and in yellow letters "why can't you just be normal"

Second panel shows a blonde boy sitting at the back seat of a car. It is yelling, looking up and away from the direction of the front seat. Caption reads in white letters "webkit" and in yellow letters "*screams""
ALT text detailsWhy can't you just be normal meme Two panels, stacked. First shows a blonde woman in the front seat of a car. She is turning to look back and yells at whomever is there. Caption reads in white letters "me, trying to write a web page" and in yellow letters "why can't you just be normal" Second panel shows a blonde boy sitting at the back seat of a car. It is yelling, looking up and away from the direction of the front seat. Caption reads in white letters "webkit" and in yellow letters "*screams""
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Another cool shape

Demo: codepen.io/t_afif/full/JoPzpgV via :codepen: @codepen

Also available at: css-shape.com/wiggly-box/

Image inside wiggly boxes (wavy borders on all the sides)
ALT text detailsImage inside wiggly boxes (wavy borders on all the sides)
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

Another cool shape

Demo: codepen.io/t_afif/full/JoPzpgV via :codepen: @codepen

Also available at: css-shape.com/wiggly-box/

Image inside wiggly boxes (wavy borders on all the sides)
ALT text detailsImage inside wiggly boxes (wavy borders on all the sides)
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS article!

Want to understand the logic behind the full-bleed layout technique I shared? Read my latest article @frontendmasters.com

frontendmasters.com/blog/full-

See how modern CSS can improve old methods. A more robust solution with less of code.

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

📝 New CSS article!

Want to understand the logic behind the full-bleed layout technique I shared? Read my latest article @frontendmasters.com

frontendmasters.com/blog/full-

See how modern CSS can improve old methods. A more robust solution with less of code.

randomMDN's avatar
randomMDN

@randomMDN@front-end.social

Greetings to all developers and enthusiasts.

I'm a bot, now on a new instance at front-end.social/! If you're already following, the transition should happen automatically. However, if you have any bookmarked posts, I recommend re-bookmarking the direct links to articles in your browser for safe keeping.

Starting December 15th, the original instance will no longer be active. I'll send a reminder before then.

Matthias Ott's avatar
Matthias Ott

@matthiasott@mastodon.social

About three weeks ago, I had the honor to speak at the 10th anniversary edition of about the most powerful design tool for the Web: the new .

The video of the talk is now up! 🎉

I hope you like it. And in case you do, SMASH THAT LIKE BUTTON!!! 😁 (Am I doing this right, @kevinpowell?)

youtube.com/watch?v=su6WA0kUUJE

Mayank's avatar
Mayank

@mayank@front-end.social

one of my favorite uses of `:has()` is to change the grid layout based on what's inside the grid

```
grid-template-areas: /* simple layout */

&:has(.thing) {
grid-template-areas: /* more complex layout */;
}
```

CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

New CSS Project! 🥳

Are you looking for a CSS Shape? look no further!

👉 css-shape.com 👈

The Ultimate Collection of CSS-Only shapes
✅ Single-element implementation
✅ Optimized code
✅ Easy to customize using CSS variables
✅ One click to copy the code

Stop relying on old and obsolete resources. Use modern CSS to create Shapes! 🤩

A home page recording of the shared link.
ALT text detailsA home page recording of the shared link.
Noah Liebman's avatar
Noah Liebman

@noleli@mastodon.social

ICYMI, I got real nerdy about responsive type scales. Graphs! Equations! ! And a peek at some CSS functions that don’t even exist yet, like `progress()` and `calc-mix()` 😮 noahliebman.net/2024/01/the-ma

Two equations,
y_small(x) = B_small S_small^x
y_largex) = B_large S_large^x

And a grapyh of those equations with sliders to adjust the constants
ALT text detailsTwo equations, y_small(x) = B_small S_small^x y_largex) = B_large S_large^x And a grapyh of those equations with sliders to adjust the constants
```css
:root {
	/* ✂️ */
	--px-per-rem: 16;
	/* ✂️ */
	--step-0: clamp(
		var(--_small-step-0) * 1rem,
		var(--_m-step-0) * 100vw * var(--px-per-rem) + var(--_b-step-0) * 1rem,
		var(--_large-step-0) * 1rem
	);
}
```
ALT text details```css :root { /* ✂️ */ --px-per-rem: 16; /* ✂️ */ --step-0: clamp( var(--_small-step-0) * 1rem, var(--_m-step-0) * 100vw * var(--px-per-rem) + var(--_b-step-0) * 1rem, var(--_large-step-0) * 1rem ); } ```
```css
font-size: clamp(1rem, 3vw, 1.5rem);
```

and a graph of that line. Flat at 16px from 0 to ~580px, then linearly up to 24px, where it goes flat again around 800px.
ALT text details```css font-size: clamp(1rem, 3vw, 1.5rem); ``` and a graph of that line. Flat at 16px from 0 to ~580px, then linearly up to 24px, where it goes flat again around 800px.
```css
	--_viewport-progress: clamp(0, progress(100vw from var(--viewport-small) to var(--viewport-large)), 1);

	--step-0: calc-mix(
		var(--viewport-progress),
		var(--base-size-small),
		var(--base-size-large)
	);

	--step-1: calc-mix(
		var(--viewport-progress),
		var(--base-size-small) * pow(var(--scale-at-small), 1),
		var(--base-size-large) * pow(var(--scale-at-large), 1)
	);

	--step-2: calc-mix(
		var(--viewport-progress),
		var(--base-size-small) * pow(var(--scale-at-small), 2),
		var(--base-size-large) * pow(var(--scale-at-large), 2)
	);

	--step--1: calc-mix(
		var(--viewport-progress),
		var(--base-size-small) * pow(var(--scale-at-small), -1),
		var(--base-size-large) * pow(var(--scale-at-large), -1)
```
ALT text details```css --_viewport-progress: clamp(0, progress(100vw from var(--viewport-small) to var(--viewport-large)), 1); --step-0: calc-mix( var(--viewport-progress), var(--base-size-small), var(--base-size-large) ); --step-1: calc-mix( var(--viewport-progress), var(--base-size-small) * pow(var(--scale-at-small), 1), var(--base-size-large) * pow(var(--scale-at-large), 1) ); --step-2: calc-mix( var(--viewport-progress), var(--base-size-small) * pow(var(--scale-at-small), 2), var(--base-size-large) * pow(var(--scale-at-large), 2) ); --step--1: calc-mix( var(--viewport-progress), var(--base-size-small) * pow(var(--scale-at-small), -1), var(--base-size-large) * pow(var(--scale-at-large), -1) ```
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

🎉 New CSS Project 🎉

It took me a while, but I finally collected all my CSS-only loaders into one place! 🥳

👉 css-loaders.com 👈

The Biggest Collection of Loading Animations. More than 500 single-element CSS loaders. Yes, only one element per loader!

Related Article: dev.to/afif/css-loaderscom-the

Pick your favorite one and share it 👇

The banner of the CSS Loaders website
ALT text detailsThe banner of the CSS Loaders website
Cloud Four's avatar
Cloud Four

@cloudfour@mastodon.social

Hello, fediverse! 👋🐘

We’re Cloud Four, a small but mighty agency founded in the Pacific Northwest. 🌥🌲

We solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations. ✨📱

cloudfour.com/

Tyler Sticka's avatar
Tyler Sticka

@tylersticka@social.lol

Fresh for a fresh instance 👋

I’m Tyler Sticka, a designer and creative director. I co-own @cloudfour, a small but mighty and company. I do a lot of my design in the browser, and I frequently write about , and .

I’m also occassionally a (Ramps was briefly an early App Store hit) and / (I love to draw).

The author at a standing desk, drawing in a sketchbook while talking.
ALT text detailsThe author at a standing desk, drawing in a sketchbook while talking.
The author smiling while holding a small terrier. The color of his shirt coordinates with flowers in the background.
ALT text detailsThe author smiling while holding a small terrier. The color of his shirt coordinates with flowers in the background.
A self-portrait of the author's brain escaping out his ear when he checks his notifications too often. The brain is screaming.
ALT text detailsA self-portrait of the author's brain escaping out his ear when he checks his notifications too often. The brain is screaming.
CSS by T. Afif :verified:'s avatar
CSS by T. Afif :verified:

@css@front-end.social

💡 I shared a lot of CSS Tips on the bird app so I decided to put everything in a website for easy finding.

👉 css-tip.com👈

A simple website powered by :11ty: @eleventy with more than 60 CSS Tips to date.

Want an RSS Feed for the future Tips? Here you go: css-tip.com/feed/feed.xml

Don't know where to start? Surprise yourself with a random CSS Tip: random.css-tip.com

(You can find all the code on Github: github.com/Afif13/CSS-Tip)

CSS Tip: learn CSS the easy way
ALT text detailsCSS Tip: learn CSS the easy way
Noah Liebman's avatar
Noah Liebman

@noleli@mastodon.social · Reply to Noah Liebman's post

Finally wrote a bit about my jiggly nav links.

It was mostly an exercise in making a very custom ease for out of a damped cosine function. noahliebman.net/2022/12/waves-

Video of a mouse cursor moving over links. When hovered, the link’s underline turns into a wave. When the cursor leaves, the wave vibrates as a damped standing wave until it decays back to a flat line.
ALT text detailsVideo of a mouse cursor moving over links. When hovered, the link’s underline turns into a wave. When the cursor leaves, the wave vibrates as a damped standing wave until it decays back to a flat line.
Graph of modified damped cosine function y(t) = -e^{-5t}\cos(2\pi 8t) + 1
ALT text detailsGraph of modified damped cosine function y(t) = -e^{-5t}\cos(2\pi 8t) + 1
Noah Liebman's avatar
Noah Liebman

@noleli@mastodon.social

I recently redid my personal site and made it 〰️wavey🌊

I know everyone loves the plucky nav underlines, but first I wrote about the bottom of the header.

Sine waves! Interference patterns! ! ! ! ! ! noahliebman.net/2022/11/waves-

Screen recording showing nav links “pluck” when hovered and a wavy pattern on the bottom of the page header when scrolled.
ALT text detailsScreen recording showing nav links “pluck” when hovered and a wavy pattern on the bottom of the page header when scrolled.
Christian Niklas's avatar
Christian Niklas

@websident@indieweb.social

Here is my :

My name is Christian, I live in Tübingen in southern .
I'm a developer. I love working with and , especially but I'm also interested in and .

Beside that I am a "addict", especially (but not only) . I can hardly live one day without listing, playing or .

I love good . My side project: Translating "Het grote voorleesboek" into German without speaking any .

Aubrey Sambor's avatar
Aubrey Sambor

@starshaped@labyrinth.social

Figured I should post an here for those who don’t know me! I’m Aubrey and I love , , and front end development in general.

For fun I , , and plan in my using my many . Give me a follow if any of that sounds interesting!

Joachim's avatar
Joachim

@joachim@boitam.eu

Nouvelle / pour le Fediverse.

Je fais du et du ( ) à . Je fais du développement (, j’ai collaboré à @bookwyrm), je fais du surtout en , j'aime la () même si je ne pratique plus autant qu'avant.

Je parle souvent de , parfois de (). Ma chatte Pourriel est la plus belle du monde.

( et pour que le motdièze marche sans l'accent)

Photo d’une chatte très mignonne. Elle est blanche et grise avec les yeux bleus.
ALT text detailsPhoto d’une chatte très mignonne. Elle est blanche et grise avec les yeux bleus.
treefit's avatar
treefit

@treefit@fosstodon.org

Hi, I'm treefit, a dev working on . I'm responsible for the desktop client together with @jikstra.
My favorite coding language is , but I "speak" , , , , too.
I'm also capable in and , but not as much.

I'm new to the mastodon/toot style of communication (never used Twitter, either), so I'm still learning of how this all works.

My goal is to give you some behind-the scenes peeks onto the DeltaChat development.

Jikstra's avatar
Jikstra

@jikstra@fosstodon.org

Time for a little :)

I'm Jikstra, a developer working on desktop and a few smaller side projects. I do and . I want to use this account to blog about ideas, experiments and dev things.