Skip to content

Instantly share code, notes, and snippets.

@axhamre
axhamre / gist:1087a343ba4754fc0be0e6041c4258e1
Created June 23, 2026 14:44
Reusable HTML diff template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Reusable text diff template</title>
<style>
:root {
--bg:#f7f7f4; --paper:#ffffff; --ink:#17202a; --muted:#667085; --line:#d0d5dd;
--add:#d8f5df; --add-border:#56b870; --del:#ffe0e0; --del-border:#e15b64; --chg:#fff2b8; --chg-border:#e0b400;