How yudisain/gravisain works
Gravisain is a hybrid WordPress theme and design system. An administrator configures global design, header/footer rows, and page-specific layout in the Customizer or editor; the theme uses those settings to generate styles and render accessible site pages, with WooCommerce layouts when available. The graph groups startup, configuration, rendering, and integrations. Some subsystems are represented by their exact tree paths but were not sampled; those links are included only where the README or excerpted service registration documents them.
Main entry points: ServiceProvider.php Service registration · index.php Page templates · PageHeader.php Page hero · DynamicCSS.php Dynamic CSS
Components 29
Theme startup
- Application startup
classes/Core/Application.php - Service registration
classes/Core/ServiceProvider.php
Design configuration
- Customizer settings
classes/Customizer/Customizer.php - Page settings
classes/Meta/PageSettings.php - Editor controls
src/meta/index.js - Header builder
classes/Components/HeaderBuilder.php - Footer builder
classes/Components/FooterBuilder.php
Frontend experience
- Page templates
templates/index.php - Header rendering
template-parts/header.php - Footer rendering
template-parts/footer.php - Page hero
classes/Components/PageHeader.php - Breadcrumb navigation
classes/Components/Breadcrumbs.php - Accessible navigation
classes/Components/MenuEnhancements.php - Post sharing and related
template-parts/content/content-single.php
Styles and typography
- Dynamic CSS
classes/CSS/DynamicCSS.php - CSS construction
classes/CSS/Builder.php - CSS file cache
classes/CSS/CSSFileCache.php - Header styles
classes/CSS/Generators/HeaderCSS.php - Google Fonts loader
classes/CSS/GoogleFonts.php - Local font hosting
classes/CSS/LocalFontDownloader.php
Integrations and tools
- WooCommerce support
classes/Integrations/WooCommerce.php - Block patterns
patterns - Theme dashboard
classes/Dashboard/Welcome.php - Settings import/export
classes/Dashboard/ImportExport.php - Demo data endpoint
classes/Rest/DemoDataEndpoint.php
Other components
- Site administrator
- Site visitor
- WordPress runtime
- Google Fonts services
Connections 40
- WordPress runtime → Application startup: starts theme
- Application startup → Service registration: registers services
classes/Core/Application.php - Service registration → Customizer settings: initializes
classes/Core/ServiceProvider.php - Service registration → Page settings: initializes
classes/Core/ServiceProvider.php - Service registration → Header builder: initializes
- Service registration → Footer builder: initializes
- Service registration → Dynamic CSS: initializes
classes/Core/ServiceProvider.php - Service registration → Google Fonts loader: initializes
classes/Core/ServiceProvider.php - Service registration → Local font hosting: initializes
classes/Core/ServiceProvider.php - Service registration → Page hero: initializes
classes/Core/ServiceProvider.php - Service registration → Breadcrumb navigation: initializes
classes/Core/ServiceProvider.php - Service registration → Accessible navigation: initializes
classes/Core/ServiceProvider.php - Service registration → WooCommerce support: initializes
classes/Core/ServiceProvider.php - Service registration → Theme dashboard: initializes
classes/Core/ServiceProvider.php - Service registration → Settings import/export: initializes
classes/Core/ServiceProvider.php - Service registration → Demo data endpoint: initializes
classes/Core/ServiceProvider.php - Site administrator → Customizer settings: configures design
- Site administrator → Page settings: sets page layout
classes/Meta/PageSettings.php - Page settings → Editor controls: enqueues controls
classes/Meta/PageSettings.php - Site visitor → Page templates: requests page
- Page templates → Page hero: checks page title
- Page hero → Page settings: reads title settings
classes/Components/PageHeader.php - Page hero → Breadcrumb navigation: renders navigation
template-parts/page-header/hero.php - Page templates → Post sharing and related: renders post content
template-parts/content/content-single.php - Header rendering → Accessible navigation: enhances navigation
- Customizer settings → Dynamic CSS: sets design options
- Dynamic CSS → CSS construction: builds rules
classes/CSS/DynamicCSS.php - Dynamic CSS → CSS file cache: uses cached CSS
classes/CSS/DynamicCSS.php - Header styles → CSS construction: adds header rules
classes/CSS/Generators/HeaderCSS.php - Header styles → Header builder: checks row state
classes/CSS/Generators/HeaderCSS.php - Google Fonts loader → Google Fonts services: fetches stylesheet
- Site administrator → Local font hosting: enables local fonts
- Local font hosting → Google Fonts services: downloads font files
- Site administrator → Theme dashboard: opens dashboard
- Theme dashboard → Settings import/export: offers settings tools
- Site administrator → Demo data endpoint: requests demo data
- Page templates → Header rendering: renders header
- Page templates → Footer rendering: renders footer
- Site visitor → WooCommerce support: shops with WooCommerce
- Site administrator → Block patterns: uses block patterns