Icon and install
The app's icon, from the first of:
app({ name: "Todos", icon: "list-checks" }): a Lucide icon (https://lucide.dev/icons; the name is typed, a wrong one fails with suggestions), drawn in the theme's primary-foreground on a rounded square of its primary color. The usual choice.icon.svgnext toindex.html, monochrome: every color it names iscurrentColorornone(fill, stroke, stop-color…, also instyleand<style>), no<image>; plain black paths count. Drawn like a Lucide icon.icon.svgin color, oricon.png(square, at least 512×512): used as is. A file wins overapp({ icon }).
Without any, it is the name's initial on the theme's primary color (canica lint and canica deploy say so).
canica dev and the build make the favicons, apple-touch-icon.png, 192/512 and maskable icons and
/manifest.webmanifest (name from app({ name }), colors from src/theme.css), and add their tags to index.html.
- Phones and tablets get an "Add to home screen" sheet from the second visit on (an Install button on Android, the
Share steps on iOS); it hides while a modal is open, when installed and on desktop. Turn it off with
app({ installPrompt: false }). Production pages register a pass-through service worker (no offline cache). - Visits count, and the sheet shows, only inside the app: never on the sign-in or no-access screens.
UserMenuhas "Install app" any time on phones and tablets (and desktop Chrome/Edge), also after "Don't show again".