Themes & Customization Guide
Complete guide to customizing your store's appearance and creating unique themes
Themes & Customization Guide
Transform your store's appearance with powerful theming and customization options. This guide covers everything from basic theme selection to advanced customization techniques, helping you create a unique brand experience that converts visitors into customers.
Table of Contents
Theme Selection & Setup
Available Theme Options
#### Pre-built Themes
```javascript
const availableThemes = {
// E-commerce focused themes
ecommerce: {
minimal: {
name: "Minimal Store",
description: "Clean, minimalist design for modern brands",
bestFor: ["Fashion", "Jewelry", "Premium products"],
features: ["Large product images", "Clean typography", "Minimal navigation"]
},
classic: {
name: "Classic Commerce",
description: "Traditional e-commerce layout with proven conversion",
bestFor: ["General retail", "Electronics", "Home goods"],
features: ["Product filters", "Detailed categories", "Trust badges"]
},
modern: {
name: "Modern Boutique",
description: "Contemporary design with bold visuals",
bestFor: ["Fashion", "Lifestyle", "Creative brands"],
features: ["Video backgrounds", "Parallax scrolling", "Social integration"]
}
},
// Industry-specific themes
industry: {
fashion: "Optimized for clothing and accessories",
electronics: "Technical specifications and comparisons",
food: "Appetite-appealing imagery and descriptions",
services: "Service-focused layouts and booking"
}
};
```
Theme Installation Process
#### Setup Steps
```
Theme Installation:
βββ Theme Selection
β βββ Browse available themes
β βββ Preview theme demos
β βββ Check compatibility
β βββ Select preferred theme
βββ Installation
β βββ Install theme files
β βββ Configure basic settings
β βββ Import demo content (optional)
β βββ Activate theme
βββ Initial Customization
β βββ Upload logo and branding
β βββ Set brand colors
β βββ Configure navigation
β βββ Add initial content
βββ Testing & Launch
βββ Test all functionality
βββ Check mobile responsiveness
βββ Verify performance
βββ Go live with new theme
```
Brand Identity & Design
Brand Elements Configuration
#### Logo & Visual Identity
```css
/* Logo configuration */
.site-logo {
max-height: 60px;
width: auto;
display: block;
}
/* Responsive logo sizing */
@media (max-width: 768px) {
.site-logo {
max-height: 45px;
}
}
/* Logo variations */
.logo-light { /* For dark backgrounds */ }
.logo-dark { /* For light backgrounds */ }
.logo-icon { /* Icon-only version */ }
```
#### Color Palette System
```css
/* Brand color variables */
:root {
/* Primary brand colors */
--color-primary: #3b82f6;
--color-primary-light: #60a5fa;
--color-primary-dark: #1d4ed8;
/* Secondary colors */
--color-secondary: #10b981;
--color-accent: #f59e0b;
/* Neutral colors */
--color-neutral-50: #f8fafc;
--color-neutral-100: #f1f5f9;
--color-neutral-900: #0f172a;
/* Semantic colors */
--color-success: #22c55e;
--color-warning: #f59e0b;
--color-error: #ef4444;
}
```
Typography System
#### Font Configuration
```css
/* Typography scale */
:root {
/* Font families */
--font-heading: 'Inter', sans-serif;
--font-body: 'Inter', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
/* Font sizes */
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.25rem;
--text-2xl: 1.5rem;
--text-3xl: 1.875rem;
--text-4xl: 2.25rem;
/* Line heights */
--leading-tight: 1.25;
--leading-normal: 1.5;
--leading-relaxed: 1.625;
}
/* Heading styles */
h1, .text-4xl {
font-size: var(--text-4xl);
font-weight: 700;
line-height: var(--leading-tight);
}
h2, .text-3xl {
font-size: var(--text-3xl);
font-weight: 600;
line-height: var(--leading-tight);
}
/* Body text */
body, .text-base {
font-size: var(--text-base);
line-height: var(--leading-normal);
font-family: var(--font-body);
}
```
Layout Customization
Page Structure Modification
#### Homepage Layout Options
```html
```
#### Product Grid Layouts
```css
/* Grid layout options */
.product-grid {
display: grid;
gap: 2rem;
}
/* 2-column grid (mobile) */
@media (min-width: 640px) {
.product-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* 3-column grid (tablet) */
@media (min-width: 768px) {
.product-grid {
grid-template-columns: repeat(3, 1fr);
}
}
/* 4-column grid (desktop) */
@media (min-width: 1024px) {
.product-grid {
grid-template-columns: repeat(4, 1fr);
}
}
/* Masonry layout option */
.product-grid-masonry {
column-count: 2;
column-gap: 2rem;
}
@media (min-width: 768px) {
.product-grid-masonry {
column-count: 3;
}
}
@media (min-width: 1024px) {
.product-grid-masonry {
column-count: 4;
}
}
```
Navigation Customization
#### Header Navigation Styles
```css
/* Horizontal navigation */
.nav-horizontal {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
}
.nav-horizontal .nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
/* Mega menu */
.nav-mega-menu {
position: relative;
}
.nav-mega-menu .mega-dropdown {
position: absolute;
top: 100%;
left: 0;
width: 100vw;
background: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: none;
}
.nav-mega-menu:hover .mega-dropdown {
display: block;
}
/* Mobile hamburger menu */
.nav-mobile {
display: none;
}
@media (max-width: 768px) {
.nav-horizontal .nav-links {
display: none;
}
.nav-mobile {
display: block;
}
.nav-mobile-menu {
position: fixed;
top: 0;
left: -100%;
width: 80%;
height: 100vh;
background: white;
transition: left 0.3s ease;
}
.nav-mobile-menu.open {
left: 0;
}
}
```
Advanced Styling
Custom CSS Implementation
#### Component Styling
```css
/* Custom button styles */
.btn-custom {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 0.5rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
cursor: pointer;
}
.btn-primary {
background: var(--color-primary);
color: white;
}
.btn-primary:hover {
background: var(--color-primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
/* Custom card styles */
.card-custom {
background: white;
border-radius: 1rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: all 0.3s ease;
}
.card-custom:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
/* Product card enhancements */
.product-card {
position: relative;
overflow: hidden;
}
.product-card .product-image {
aspect-ratio: 1;
overflow: hidden;
}
.product-card .product-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
transform: scale(1.05);
}
.product-card .quick-actions {
position: absolute;
top: 1rem;
right: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.product-card:hover .quick-actions {
opacity: 1;
}
```
#### Animation & Transitions
```css
/* Fade in animation */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.6s ease-out;
}
/* Slide in animations */
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-50px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.slide-in-left {
animation: slideInLeft 0.8s ease-out;
}
/* Loading animations */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.loading-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Hover effects */
.hover-lift {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
```
Theme Customization Tools
#### CSS Custom Properties
```css
/* Customizable theme variables */
:root {
/* Layout */
--container-max-width: 1200px;
--header-height: 80px;
--footer-height: auto;
/* Spacing */
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--spacing-md: 1rem;
--spacing-lg: 2rem;
--spacing-xl: 4rem;
/* Border radius */
--radius-sm: 0.25rem;
--radius-md: 0.5rem;
--radius-lg: 1rem;
--radius-full: 9999px;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
/* Transitions */
--transition-fast: 0.15s ease;
--transition-normal: 0.3s ease;
--transition-slow: 0.5s ease;
}
```
Mobile Optimization
Responsive Design Principles
#### Mobile-First Approach
```css
/* Base styles (mobile) */
.container {
padding: 1rem;
max-width: 100%;
}
.product-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
/* Tablet styles */
@media (min-width: 768px) {
.container {
padding: 2rem;
max-width: 768px;
margin: 0 auto;
}
.product-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
}
/* Desktop styles */
@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
.product-grid {
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
}
/* Large desktop */
@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
.product-grid {
grid-template-columns: repeat(4, 1fr);
}
}
```
#### Touch-Friendly Interface
```css
/* Touch target sizing */
.touch-target {
min-height: 44px;
min-width: 44px;
display: flex;
align-items: center;
justify-content: center;
}
/* Mobile navigation */
.mobile-nav-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
padding: 0.5rem;
cursor: pointer;
}
@media (max-width: 768px) {
.mobile-nav-toggle {
display: block;
}
.desktop-nav {
display: none;
}
}
/* Mobile-optimized forms */
.form-input-mobile {
font-size: 16px; /* Prevents zoom on iOS */
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
width: 100%;
}
/* Swipe gestures for carousels */
.carousel-mobile {
overflow-x: auto;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
}
.carousel-mobile .carousel-item {
scroll-snap-align: start;
flex-shrink: 0;
}
```
Performance Considerations
Optimization Techniques
#### CSS Optimization
```css
/* Critical CSS (above the fold) */
.critical-styles {
/* Include only styles needed for initial render */
}
/* Non-critical CSS (lazy loaded) */
.non-critical-styles {
/* Styles for below-the-fold content */
}
/* Efficient selectors */
/* Good - specific and efficient */
.product-card .price { }
/* Avoid - overly complex selectors */
.container > .row > .col > .product > .details > .price { }
/* Use CSS containment for performance */
.product-card {
contain: layout style paint;
}
/* Optimize animations for performance */
.smooth-animation {
will-change: transform;
transform: translateZ(0); /* Force hardware acceleration */
}
```
#### Image Optimization
```html
src="product-400.jpg"
srcset="
product-400.jpg 400w,
product-800.jpg 800w,
product-1200.jpg 1200w
"
sizes="
(max-width: 640px) 100vw,
(max-width: 1024px) 50vw,
25vw
"
alt="Product Name"
loading="lazy"
>

```
Performance Monitoring
#### Core Web Vitals Optimization
```javascript
// Monitor Core Web Vitals
const performanceMetrics = {
// Largest Contentful Paint (LCP)
lcp: {
target: "< 2.5 seconds",
optimization: [
"Optimize hero images",
"Improve server response time",
"Remove render-blocking resources"
]
},
// First Input Delay (FID)
fid: {
target: "< 100 milliseconds",
optimization: [
"Minimize JavaScript execution time",
"Break up long tasks",
"Use web workers for heavy computations"
]
},
// Cumulative Layout Shift (CLS)
cls: {
target: "< 0.1",
optimization: [
"Set dimensions for images and videos",
"Reserve space for dynamic content",
"Avoid inserting content above existing content"
]
}
};
```
---
*You now have the tools and knowledge to create stunning, high-performing themes for your doin9 store. Remember that great design is not just about aestheticsβit's about creating an experience that guides customers toward making a purchase while reflecting your brand values.*
Design Success Tips:
1. Start with Strategy: Define your brand and target audience first
2. Keep It Simple: Clean, uncluttered designs perform better
3. Prioritize Mobile: Most customers shop on mobile devices
4. Test Everything: A/B test design changes to measure impact
5. Monitor Performance: Beautiful designs must also be fast and functional
*Create a theme that not only looks great but also converts visitors into loyal customers!*

