Install a Theme

Quick way (recommended)

gon require mysite --frontend # Frontend theme
gon require polygon --admin # Admin theme

Resolves the latest version, installs into resources/themes/, updates gon.json.

After installing

Set the active theme in .env:

THEME_FRONTEND=mysite
VITE_THEME_FRONTEND=mysite

Manual way (via gon install)

  1. Add to gon.json themes section:

    {
    "themes": {
    "frontend": "mysite:^1.0",
    "admin": "polygon:^1.0"
    }
    }
  2. Install:

    gon install