A premium, modern e-commerce platform for silk sarees built with ASP.NET Core 8 MVC, featuring stunning UI/UX with Tailwind CSS v3 and Alpine.js.
- Luxury Maroon-Gold Theme: Rich, elegant design perfect for premium fashion
- Minimal Pastel Theme: Clean, modern aesthetic for contemporary appeal
- Theme Switching: Seamless theme toggle with persistent storage
- Responsive Design: Mobile-first approach with beautiful desktop experience
- Tailwind CSS v3: Utility-first CSS framework with custom design system
- Alpine.js: Lightweight JavaScript framework for interactivity
- Custom Components: Reusable UI components (header, footer, modals, drawers)
- Smooth Animations: CSS transitions, keyframes, and micro-interactions
- Product Catalog: Beautiful product grids with lazy loading
- Shopping Cart: Slide-out cart drawer with real-time updates
- Search System: Advanced search with suggestions and results
- Quick View: Product preview modals for fast browsing
- Wishlist: Save favorite products for later
- User Management: Profile, orders, and admin panel
- Mobile-First: Optimized for all device sizes
- Accessibility: ARIA labels, keyboard navigation, screen reader support
- Performance: Lazy loading, optimized images, smooth scrolling
- SEO Optimized: Meta tags, structured data, semantic HTML
- .NET 8.0 SDK
- Node.js 18+ and npm
- PostgreSQL database
- Visual Studio 2022 or VS Code
git clone <repository-url>
cd SilkSareeEcommerce# Install .NET dependencies
dotnet restore
# Install Node.js dependencies for Tailwind CSS
npm install# Update connection string in appsettings.json
# Run migrations
dotnet ef database update# Development (with watch mode)
npm run dev
# Production build
npm run build:css:proddotnet run- Luxury Theme: Maroon, gold, and warm tones
- Minimal Theme: Pastel, sage, and blush colors
- Semantic Colors: Primary, secondary, accent variants
fade-in,slide-up,slide-downscale-in,bounce-gentle- Smooth transitions and hover effects
- Inter: Modern sans-serif for body text
- Playfair Display: Elegant serif for headings
- Cormorant Garamond: Display font for special text
SilkSareeEcommerce/
βββ Views/
β βββ Shared/
β β βββ _Layout.cshtml # Main layout with theme switching
β β βββ _Header.cshtml # Navigation header
β β βββ _Footer.cshtml # Site footer
β β βββ _CartDrawer.cshtml # Shopping cart drawer
β β βββ _SearchModal.cshtml # Search functionality
β β βββ _QuickViewModal.cshtml # Product quick view
β βββ [Other Views]
βββ wwwroot/
β βββ css/
β β βββ site.css # Base styles
β β βββ tailwind.css # Generated Tailwind CSS
β βββ js/
β βββ site.js # Custom JavaScript
βββ tailwind.config.js # Tailwind configuration
βββ package.json # Node.js dependencies
βββ README.md # This file
- Add color palette to
tailwind.config.js - Update CSS variables in
_Layout.cshtml - Add theme toggle logic in JavaScript
- Create partial view in
Views/Shared/ - Add Tailwind classes for styling
- Include in layout or other views
// In tailwind.config.js
colors: {
custom: {
50: '#fef7f0',
500: '#f2751a',
900: '#7a2e14',
}
}npm run dev # Watch Tailwind CSS
dotnet watch run # Watch .NET appnpm run build:css:prod # Build optimized CSS
dotnet publish -c Release # Publish .NET appdocker build -t silk-sarees .
docker run -p 8080:80 silk-sarees- Mobile:
< 640px- Single column, stacked layout - Tablet:
640px - 1024px- Two column grid - Desktop:
> 1024px- Full layout with sidebars
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Use
lazyclass for images - Enables lazy loading - Optimize Tailwind output - Use
@applyfor repeated patterns - Minimize JavaScript - Use Alpine.js for simple interactions
- Cache static assets - Leverage browser caching
- Ensure
npm installcompleted successfully - Check
tailwind.cssfile exists inwwwroot/css/ - Verify build script ran without errors
- Check browser console for JavaScript errors
- Verify localStorage is enabled
- Ensure theme classes are properly applied
- Test on different screen sizes
- Check Tailwind responsive prefixes
- Verify viewport meta tag
- Fork the repository
- Create feature branch
- Make changes with proper Tailwind classes
- Test responsiveness and theme switching
- Submit pull request
MIT License - see LICENSE file for details
Built with β€οΈ for the Silk Sarees community