Skip to content

Foundation Theme

This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.

FieldValue
Composer packagecapell-app/theme-foundation
Package slugtheme-foundation
Product groupCapell Foundation
Tierfree
Bundlefoundation
Runtime contextsadmin, frontend
Capell version^4.0
Source repositorycapell-app/packages
Source pathpackages/theme-foundation
Docs sourcepackages/theme-foundation/docs
Manifestcapell.json

Foundation Theme is an Available, No schema impact Capell theme in the Capell Foundation product group. It ships as capell-app/theme-foundation and extends these surfaces: admin, frontend.

Capell’s foundation theme - base Blade layouts, runtime design tokens, the Tailwind asset pipeline, Blade directives, media/SVG handling, and the override contracts that all visual Capell themes extend.

After install, admins can select the theme through the core theme management surface. Editors keep using normal Capell content workflows while the package controls public presentation.

Status details:

  • Status: Available
  • Tier: free
  • Bundle: foundation
  • Composer package: capell-app/theme-foundation
  • Namespace: Capell\FoundationTheme
  • Theme key: default

For developers: The package gives developers package-owned service providers, Actions, Data objects, Filament classes, and Blade views instead of pushing this behaviour into core or application code.

For teams: The base theme every Capell site and child theme builds on: shared Blade layouts, a runtime design-token system (colours, spacing, radius), the Tailwind asset pipeline, an SVG sanitiser, and the section/area contracts that visual themes override.

Screenshot contract: docs/screenshots.json.

  • Default theme settings screen (admin, required).
  • Generated Tailwind asset output review (developer, required).
  • Frontend page using the default theme (frontend, required).
  • Foundation header Layout Builder area (frontend, required).
  • Homepage layout (frontend, required).
  • Standard content page (frontend, required).
  • Blog article layout (frontend, required).
  • Listing page layout (frontend, required).
  • Contact form layout (frontend, required).
  • Search results layout (frontend, required).
  • Events listing layout (frontend, required).
  • Access-gated page layout (frontend, required).
  • Service providers: Capell\FoundationTheme\Providers\FoundationThemeServiceProvider.
  • Config files: packages/theme-foundation/config/capell-theme-foundation.php.
  • Settings migrations: packages/theme-foundation/database/settings/2026_05_10_190850_01_create_theme_foundation_settings.php, packages/theme-foundation/database/settings/2026_05_23_160819_add_theme_foundation_design_tokens.php, packages/theme-foundation/database/settings/2026_05_23_161002_refresh_theme_foundation_design_token_defaults.php, packages/theme-foundation/database/settings/2026_05_23_170001_add_theme_foundation_composition_tokens.php, packages/theme-foundation/database/settings/2026_05_23_171201_quiet_theme_foundation_composition_palette.php, packages/theme-foundation/database/settings/2026_05_23_180101_add_theme_foundation_image_tokens.php, packages/theme-foundation/database/settings/2026_06_07_000001_add_theme_foundation_dark_design_tokens.php, packages/theme-foundation/database/settings/2026_06_07_000002_add_theme_foundation_typography_tokens.php.
  • Settings classes: FoundationThemeSettings, FoundationThemeSettingsMigrationProvider.
  • Filament classes: FoundationThemeSettingsSchema.
  • Livewire components: AbstractAssets, PageAssets, AbstractWidget, Pages.
  • Listeners: RunTailwindAssetsOnPackageChange.
  • Actions: BuildAssetBannerItemsAction, BuildBannerImageRenderDataAction, BuildHeroRailItemsRenderDataAction, BuildLayoutNeighborLinksDataAction, BuildPageContentRenderDataAction, BuildWidgetAssetRenderDataAction, InstallFoundationThemeDemoAction, InstallFoundationThemeLayoutDefaultsAction, MarkPrimaryHeadingRenderedAction, ResolveFoundationThemeTokensAction, ResolveLoadedLayoutContainerBackgroundImageAction, ResolveLoadedWidgetBackgroundImageAction, and 3 more.
  • Data objects: AssetBannerItemData, BannerImageRenderData, FoundationThemeTokensData, LayoutNeighborLinksData, PageContentRenderData, ThemeDemoInstallData, WidgetAssetRenderData.
  • Command signatures: capell:theme-foundation-demo, capell:theme-foundation-setup.
  • Console command classes: DemoCommand, GenerateTailwindAssetsCommand, SetupCommand.
  • Health checks: Capell\FoundationTheme\Health\FoundationThemeHealthCheck.
  • Blade views: packages/theme-foundation/resources/views/app.blade.php, packages/theme-foundation/resources/views/block/wrapper.blade.php, packages/theme-foundation/resources/views/components/actions/index.blade.php, packages/theme-foundation/resources/views/components/app/body.blade.php, packages/theme-foundation/resources/views/components/app/head/custom.blade.php, packages/theme-foundation/resources/views/components/app/head/tokens.blade.php, packages/theme-foundation/resources/views/components/badge.blade.php, packages/theme-foundation/resources/views/components/block/wrapper.blade.php, packages/theme-foundation/resources/views/components/button/index.blade.php, packages/theme-foundation/resources/views/components/content.blade.php, packages/theme-foundation/resources/views/components/demo/contact-page.blade.php, packages/theme-foundation/resources/views/components/dropdown/index.blade.php, and 78 more.
  • Cache tags: theme-foundation.

Foundation Theme owns the stable child theme override surface for Capell themes. Child themes should declare extends: 'default' and override documented sections, views, tokens, and chrome areas instead of replacing the whole public rendering path.

Stable contract points:

  • Theme Studio sections: navigation, hero, features, proof, content-listing, cta, footer.
  • Shared views: capell::theme.page, capell::layout.area, capell::media.svg.
  • Runtime tokens: --foundation-page-bg, --foundation-section-spacing, --foundation-widget-gap.
  • Layout Builder chrome areas: header.
  • Public-output rule: child themes must not expose authoring metadata, editor controls, model IDs, field paths, permissions, or signed editor URLs.

This theme has no schema impact. It relies on core Capell site, page, locale, and theme records instead of declaring package-owned tables.

  • Admin navigation: adds package-owned Filament classes when registered.
  • Permissions: none declared in capell.json.
  • Public routes: none detected in package route files.
  • Database changes: no package migrations declared.
  • Settings: settings classes or settings migrations exist; verify the install flow registers them.
  • Queues or schedules: none detected in standard package paths.
  • Cache tags: theme-foundation.
  • Commands: capell:theme-foundation-demo, capell:theme-foundation-setup.
  • Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.
  • Keep composer.json, composer.local.json, capell.json, docs, screenshots, and tests aligned when the package surface changes.
SymptomLikely causeCheckFix
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Background work does not runQueue worker or scheduled command is not activeCheck package jobs, commands, and host scheduler configurationStart the queue or scheduler, then run the focused command or package test
Public output leaks unexpected stateRender data, cache variation, or authoring boundary has regressedCheck public Blade, cache tags, and public-output safety testsMove data loading out of Blade and rerun the package public-output tests
  1. Install the package: composer require capell-app/theme-foundation.
  2. Run the required setup: php artisan capell:theme-foundation-setup.
  3. Open the related Capell admin surface and verify Foundation Theme appears.