Fill in your app name, colours and message, choose a language for the default text, and download offline.html. The page:
- has all its CSS inline, so it works with nothing else cached;
- reloads automatically when the connection comes back;
- lists pages already in the browser's caches, so people can keep reading.
Precache it in your service worker and serve it for failed navigations: see make a great offline page. The service worker generator already includes that part.