Table of Contents
Progressive Web Apps with Sveltekit
Make your SvelteKit application installable
Setup app.html
src/app.html
<meta name="theme-color" content="#151515" />
<link rel="manifest" href="%sveltekit.assets%/manifest.json" />
Setup manifest
static/manifest.json
{
"theme_color": "#151515",
"background_color": "#151515",
"display": "standalone",
"scope": "/",
"start_url": "/",
"name": "Fabian9799",
"short_name": "Fabian",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
}
]
}
Notes
- Replace #151515 with your preferred color
- Add icons to:
- /static/icon-192.png
- /static/icon.svg
Related snippets
Add Darkmode to sveltekit
How to add darkmode to a sveltekit project
Create images from HTML
How to convert html to an image on the server as a sveltekit API endpoint
Discord oAuth with Sveltekit
How to log in to a website with discord
How to use MSW with SvelteKit
Mock API requests in development with Mock Service Worker