Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
iOS splash screen template for use with pwa-asset-generator
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Splash</title>
html, body {
height: 100vh;
margin: 0;
padding: 0;
body {
background: #1976d2;
display: flex;
align-items: center;
justify-content: center;
img {
width: 256px;
@media(min-width: 1000px) {
img {
width: 384px;
npm install --global pwa-asset-generator
brew install pngquant
pwa-asset-generator ios-splash.html ./src/img --splash-only --portrait-only --scrape false --type png
pngquant ./src/img/apple-splash-*
<img src="src/img/icon-512.png" alt="">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment