SCSS Mixin

Liquid Cards

Summary

Liquid cards is a fully responsive design pattern that uses a fluid CSS Grid method instead of hardcoded media queries to create perfectly responsive cards on any device.

View on Codepen
The secret sauce

If we use CSS Grid's minmax property, we can set the minimum width of a grid item before it wraps to 100% width. We can also use CSS variables to change grid properties on the fly. Take a look at the codepen example below: