<?php return [
'render' => function($prop) {
// render the component
},
'about' => 'A floating theme switcher button that toggles between light and dark themes',
];
Landing page hero with CTA buttons
3-column feature showcase
Animated statistics display
Customer testimonial carousel
Call-to-action with background
Responsive pricing tiers
Logo grid with animations
Light/dark theme toggle
// Basic component
<?php component('components/example/hero-section'); ?>
// Component with data
<?php component('components/example/stats-section', [
'title' => 'Our Growth',
'stats' => [
['number' => '50K+', 'label' => 'Users'],
['number' => '99.9%', 'label' => 'Uptime'],
['number' => '24/7', 'label' => 'Support']
]
]); ?>
This starter pack includes a light and a dark theme
themes/light/css/style.css
themes/dark/css/style.css
/* Core theme variables */
--bg-color, --bg-secondary, --surface
--text-primary, --text-secondary, --text-muted
--primary, --primary-dark, --primary-light
--border, --border-hover
--shadow-sm, --shadow-md, --shadow-lg