Email or username:

Password:

Forgot your password?
Chris Coyier

The CSS feature `@​container style()` is pretty neat!

Are you familiar with `@​mixin` in Sass? It's a little bit like that.

1) Declare a chunk of CSS you want to re-use
2) Set a --custom-property to trigger it

3 comments
Sara Joy :happy_pepper:

@chriscoyier gah honestly the way CSS is being written keeps turning upside down lately, I can't keep up!

Philipp

@chriscoyier thats interesting! Started with Sass (with WPCodebox an amazing wordpress code snippet plugin) and love it. Think I will stay at it, but lets see if @container style() is worth switching. Any benefits compared to Sass?

Go Up