Installation
Install Inset from its private Composer repository.
Inset installs from its own private Composer repository. After you buy it, your licence key arrives by email. Add the repository, and sign in with the email address on your licence and your licence key:
composer config repositories.inset composer https://inset-filament-theme.mostofa.me
composer config --auth http-basic.inset-filament-theme.mostofa.me "YOUR_EMAIL_ADDRESS" "YOUR_LICENCE_KEY"
composer require kstmostofa/inset-themeThe --auth line saves your credentials in the project's auth.json. Keep that file out of git. On CI and servers, pass the same credentials in the COMPOSER_AUTH environment variable instead:
export COMPOSER_AUTH='{"http-basic":{"inset-filament-theme.mostofa.me":{"username":"YOUR_EMAIL_ADDRESS","password":"YOUR_LICENCE_KEY"}}}'Lost your key, or shared it by mistake? Sign in to your licences with the same email address and get a new one. The old key stops working at once, so update it everywhere Composer has it.
Register the plugin
Register the plugin on your panel. The last two lines are optional; they give the sidebar-only layout the screenshots show:
use Kstmostofa\InsetTheme\InsetPlugin;
use Kstmostofa\InsetTheme\Pages\Login;
$panel
->login(Login::class) // optional: the "Welcome back" wording
->plugin(InsetPlugin::make())
->topbar(false)
->sidebarCollapsibleOnDesktop();Import the CSS
Add the theme's imports to your panel's theme file, keeping this order:
@import '../../../../vendor/kstmostofa/inset-theme/resources/css/layers.css';
@import '../../../../vendor/filament/filament/resources/css/theme.css';
@import '../../../../vendor/kstmostofa/inset-theme/resources/css/theme.css';
@source '../../../../app/Filament/**/*';
@source '../../../../resources/views/filament/**/*';Then rebuild your assets:
npm run buildlayers.css must come before Filament's CSS. It puts the theme's styles above Filament's components and below Tailwind's utilities, so utility classes in your own views still win.
Updates
Your licence includes one year of updates. Run composer update kstmostofa/inset-theme to get them. After that year, Composer keeps installing every version released during it.