{"record":{"id":"47ae4ec7f8e3b3ef","repo":"filamentphp/filament","slug":"please-use-the-theme-method-on-the-panel-confi","errorCode":null,"errorMessage":"Please use the `theme()` method on the panel configuration to register themes.","messagePattern":"Please use the `theme\\(\\)` method on the panel configuration to register themes\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/FilamentManager.php","lineNumber":1074,"sourceCode":"    /**\n     * @param  array<mixed>  $styles\n     *\n     * @deprecated Register styles using the `FilamentAsset` facade instead.\n     */\n    public function registerStyles(array $styles): void\n    {\n        throw new LogicException('Please use the `FilamentAsset` facade to register styles. See the documentation - https://filamentphp.com/docs/support/assets#registering-css-files');\n    }\n\n    /**\n     * @deprecated Use the `theme()` method on the panel configuration instead.\n     */\n    public function registerTheme(string | Htmlable | null $theme): void\n    {\n        try {\n            $this->getDefaultPanel()->theme($theme);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `theme()` method on the panel configuration to register themes.');\n        }\n    }\n\n    /**\n     * @param  string | array<string>  $theme\n     *\n     * @deprecated Use the `viteTheme()` method on the panel configuration instead.\n     */\n    public function registerViteTheme(string | array $theme, ?string $buildDirectory = null): void\n    {\n        try {\n            $this->getDefaultPanel()->viteTheme($theme, $buildDirectory);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `viteTheme()` method on the panel configuration to register themes.');\n        }\n    }\n\n    /**","sourceCodeStart":1056,"sourceCodeEnd":1092,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/FilamentManager.php#L1056-L1092","documentation":"Error \"Please use the `theme()` method on the panel configuration to register themes.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/FilamentManager.php:1074 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}