Download the PHP package sirserik/starter-theme without Composer
On this page you can find all versions of the php package sirserik/starter-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sirserik/starter-theme
More information about sirserik/starter-theme
Files in sirserik/starter-theme
Package starter-theme
Short Description Twenty-Twenty-Four-style starter theme for meta/admin-core sites. Layouts, header/footer/modals, error pages, design tokens, Tailwind preset.
License proprietary
Informations about the package starter-theme
meta/starter-theme
«Twenty Twenty-Four» для сайтов на meta/admin-core.
Composer-пакет: layouts, header/footer/modals, error pages, design tokens, Tailwind preset.
Установка
ServiceProvider auto-discovered. Никаких ручных регистраций.
Что даёт
layouts/public.blade.php— публичный shell сайта с SEO/OG/Twitter/canonical/hreflang/JSON-LD slots, accessibility-prefs, дизайн-токенами в<head>.errors/{403,404,419,429,500,503}.blade.php— единый стиль черезerrors/__layout.blade.php, трилингвальные строки прямо в файлах.components/header.blade.php— sticky-header с brand-логотипом, главным меню из admin-coreMenuItem, языкопереключателем и apply-CTA.components/footer.blade.php— brand + контакты (из admin-coreContact) + privacy/terms ссылки.components/modals.blade.php— apply + info формы с honeypot.components/page-blocks.blade.php— generic-dispatcher блоков черезMeta\AdminCore\Blocks\BlockRegistry.resources/css/tokens.css— fallback CSS-переменные.tailwind.preset.js— utility-классы привязаны к CSS-токенам (zero-recompile при смене темы).
Локальный override
Любой view темы переопределяется бесплатно — Laravel view finder берёт сначала локальный, потом package fallback. Положи свой:
— и Laravel автоматически выберет его. vendor:publish нужен только если хочется иметь стартовую копию для редактирования.
Конфигурация
Создаёт config/theme.php:
Все tokens.* автоматически инжектятся в <head> как :root { --theme-<key>: <value> }. Tailwind preset (tailwind.preset.js) маппит их на utility-классы (bg-primary, text-on-primary, rounded-md).
Tailwind preset
Тематизация в <head>
Theme-токены пишутся ThemeServiceProvider::buildTokensCss() в момент рендера layouts/public.blade.php — $themeTokens шарится через View::composer. Это значит:
- Смена
config('theme.tokens.primary')→ следующий рендер уже другой цвет. - Никаких npm/vite пересборок при ребрендинге.
- CSS-переменные используются и в Blade (
style="background: var(--theme-primary)"), и в Tailwind preset.
Зависимости
- PHP
^8.2 - Laravel
^11|^12 meta/admin-core^1.0— дляBlockRegistry,MenuItem,Contact.
Версионирование
Pre-1.0 (0.1.x), API ещё может ломаться. Релиз 1.0 — после двух consumer-сайтов на одном пакете.
License
Proprietary.