Feature
Images
One image autogenerator, three surfaces — Sass, PHP and an HTML tag — with no native dependency.
The HTML tag
<img asset="…" width height cover> is a thin wrapper over IMG::asset(). It swaps asset for the generated src; every other attribute passes through.
Add height and cover to crop to fill:
The PHP surface
img_asset($path, $w, $h, $cover) hands back the URL for you to place — here in a hand-built srcset:
The palette
<swatches> — a custom tag from _lib/functions.php — calls img_palette(), the same median-cut extraction the Sass colors() function uses for this site's --brand-1 / --brand-2.
-
#77889c -
#3c3a48 -
#777584 -
#27272e -
#ccccd2 -
#331714