Skip to main content

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 in index.html:
index.html
The Typography plugin is included for rich text content from WordPress.

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
Usage:

Glass Button Class

Buttons with glassmorphism effect:
index.html
Usage:

GlassCard Component

A reusable React component that wraps the glass effect:
GlassCard.tsx
Usage:
The hoverEffect prop adds interactive hover animations including lift effect and green glow.

Background Effects

Animated Blobs

Decorative background elements with blur:
BackgroundBlobs.tsx
The .blob class provides the blur effect:

Typography

Font Family

The application uses Inter from Google Fonts:
Configured as the default sans-serif font:

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:
Usage:
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

Prefer Tailwind utilities over custom CSS:
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
Use GlassCard component or glass-panel class instead of recreating the effect:
  • Use brand-green for CTAs and highlights
  • Use brand-dark for backgrounds
  • Use text-glass-muted for secondary text
  • Use text-white for primary text

Design Tokens Reference