Alloy GitHub

Remakes

Real sites, rebuilt with Alloy CSS to see what it takes. Each one is a single HTML file with no JavaScript. Open it, view the source, copy what you need.

Hacker News

The front page, as dense as the original, with tap targets a thumb can hit and a dark mode. Unofficial, built from a snapshot of the real front page.

Original
Server-rendered HTML, a little JavaScript
About 10 KB
Remake
One HTML file, no JavaScript
About 31 KB

Most of the 31 KB is the kit's 23 KB stylesheet, the same file behind all 82 template pages. HN's own CSS is 2 KB, written for HN alone.

Wikipedia

The article on CSS, with its contents beside the text on a wide screen and each section folding to its heading on a phone, as on Wikipedia's mobile site. Unofficial; the text is Wikipedia's, under CC BY-SA 4.0.

Original
MediaWiki, 8 scripts
About 540 KB
Remake
One HTML file, no JavaScript
About 90 KB

The 290 KB of JavaScript is the part the kit replaced. The rest of the gap is what we left out: the navigation boxes at the end, as Wikipedia's mobile site does, and the list of 99 languages.

Banijo

A pre-order shop for es pisang ijo, a dessert from Makassar, sold on campus. The photo picker, the toppings and the third-topping price all work with no script; the cart is a form the server receives.

Original
Nuxt and Tailwind, 4 scripts
About 1.36 MB
Remake
One HTML file, no JavaScript
About 190 KB

Most of that gap is photos we resized, not CSS. The 123 KB of JavaScript is the part the kit replaced.

Built something with Alloy, or want your site remade? [email protected]