Styling Architecture
The VENCOL Front Template uses a combination of:- Tailwind CSS via CDN for utility-first styling
- Custom CSS for glassmorphism effects
- Inline Tailwind configuration for brand customization
Tailwind CSS Setup
CDN Configuration
Tailwind is loaded via CDN inindex.html:
index.html
Custom Configuration
Tailwind is configured inline with brand colors and custom animations:index.html
Color System
Brand Colors
Glass Colors
Semi-transparent colors for glassmorphism effects:Usage Examples
Glassmorphism Design
Glass Panel Class
The core glassmorphism style is defined as a custom CSS class:index.html
Glass Button Class
Buttons with glassmorphism effect:index.html
GlassCard Component
A reusable React component that wraps the glass effect:GlassCard.tsx
The
hoverEffect prop adds interactive hover animations including lift effect and green glow.Background Effects
Animated Blobs
Decorative background elements with blur:BackgroundBlobs.tsx
.blob class provides the blur effect:
Typography
Font Family
The application uses Inter from Google Fonts:Text Styling Patterns
WordPress Content Styling
The Typography plugin provides prose classes for WordPress content:PageDetail.tsx
Custom Animations
Marquee Animation
Infinite scrolling for partner logos:Home.tsx
Hover Effects
Common interactive effects:Responsive Design
Breakpoint Strategy
Tailwind’s default breakpoints are used:Common Patterns
Custom Scrollbar
Custom scrollbar styling for brand consistency:index.html
WordPress Alignment Classes
Support for WordPress block editor alignment:index.html
Styling Best Practices
Use Utility Classes
Use Utility Classes
Prefer Tailwind utilities over custom CSS:
Consistent Spacing
Consistent Spacing
Use Tailwind’s spacing scale for consistency:
- Small gaps:
gap-2,gap-4 - Medium spacing:
p-6,p-8,mb-8 - Large spacing:
py-16,py-24,py-32
Glass Effects
Glass Effects
Use
GlassCard component or glass-panel class instead of recreating the effect:Color Usage
Color Usage
- Use
brand-greenfor CTAs and highlights - Use
brand-darkfor backgrounds - Use
text-glass-mutedfor secondary text - Use
text-whitefor primary text