Overview
The Velvet Physics Garden documentation provides comprehensive technical guidance for integrating our botanical design system into your projects. Our system combines organic physics simulation with luxurious visual aesthetics.
Core Principles
Our design philosophy centers on three foundational elements: organic harmony, soft body physics, and art nouveau geometry. These principles guide every implementation decision.
Note: This documentation is intended for developers and technical teams integrating Velvet Physics Garden components. For general inquiries, please visit our contact page.
Color Palette
The Velvet Physics Garden color system is built on four primary colors with carefully calibrated variations for different contexts.
| Name | Hex | Usage |
|---|---|---|
| Velvet Red | #800020 | Primary accent, headings |
| Sage Green | #9dc183 | Secondary accent, labels |
| Champagne | #f7e7ce | Text, backgrounds |
| Charcoal | #36454f | Base, backgrounds |
Installation
Integrating Velvet Physics Garden into your project requires including our core stylesheet and JavaScript components.
Quick Start
<link rel="stylesheet" href="velvet-garden.min.css">
<script src="velvet-garden.min.js"></script>
Initialize the botanical physics engine on page load:
VelvetGarden.init({
physics: true,
particles: true,
fabric: true
});
Design System
Typography
We use two complementary typefaces: Playfair Display for headings, providing elegant serif formality, and Montserrat for body text, offering clean modern readability.
font-family: 'Playfair Display', serif;
font-family: 'Montserrat', sans-serif;
Typography Scale
| Element | Size | Weight |
|---|---|---|
| H1 | 5rem | 400 |
| H2 | 3.5rem | 400 |
| H3 | 1.8rem | 400 |
| Body | 1rem | 400 |
| Small | 0.85rem | 500 |
Animations
The Velvet Physics Garden animation system simulates organic physics phenomena including petal falling, fabric draping, and dew drop surface tension.
Petal Falling
.petal {
animation: petalFall linear infinite;
border-radius: 50% 0 50% 50%;
}
Dew Drop Pulse
.dew-drop {
animation: dewPulse 3s ease-in-out infinite;
background: radial-gradient(circle at 30% 30%,
rgba(255,255,255,0.9),
rgba(247,231,206,0.4));
}
Fabric Drape
.fabric-drape {
animation: drapeMove 8s ease-in-out infinite;
filter: blur(2px);
}
API Reference
VelvetGarden.init()
Initializes the Velvet Physics Garden system with configuration options.
| Parameter | Type | Default | Description |
|---|---|---|---|
| physics | boolean | true | Enable soft body physics |
| particles | boolean | true | Enable particle systems |
| fabric | boolean | true | Enable fabric simulation |
| debug | boolean | false | Enable debug mode |
Components
Navigation
The navigation component features a fixed position with glassmorphism effect and smooth hover transitions.
Cards
Card components support hover states with subtle scaling and border accent animations.
Buttons
Button variants include primary (velvet red), secondary (outlined), and champagne for featured actions.